/**
 * Public user profile — UserProfile.tsx
 * Scoped to #user-profile-page
 */

#user-profile-page {
  --up-bg: #f1f5f9;
  --up-card: #ffffff;
  --up-text: #0f172a;
  --up-text-sub: #374151;
  --up-text-muted: #6b7280;
  --up-border: #e2e8f0;
  --up-border-light: #f1f5f9;
  --up-blue: #1d4ed8;
  --up-blue-light: #eff6ff;
  --up-green: #059669;
  --up-green-light: #ecfdf5;
  --up-amber: #d97706;
  --up-amber-light: #fef3c7;
  --up-red: #dc2626;
  --up-tabs-sticky: var(--ui-topbar-h, 3rem);
  --up-header-bar-h: 2.75rem;
  --up-layout-gap: 1.25rem;
  --up-aside-about: 16.75rem;
  --up-aside-content: 15rem;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  background: var(--up-bg);
  color: var(--up-text);
  font-family: Inter, system-ui, sans-serif;
}

body.eidoc-public.eidoc-route-user-profile #page-component.eidoc-main-user-profile,
body.eidoc-public.eidoc-route-user-profile #page-component.eidoc-main-with-sidebar.eidoc-main-user-profile {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.eidoc-public.eidoc-route-user-profile #page-component.eidoc-main-user-profile > #user-profile-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ── Cover ── */
.user-profile-cover {
  height: 12.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f3a 0%, #1d4ed8 40%, #7c3aed 100%);
}

.user-profile-cover::before,
.user-profile-cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.user-profile-cover::before {
  top: -2.5rem;
  right: -2.5rem;
  width: 12.5rem;
  height: 12.5rem;
  background: rgba(255, 255, 255, 0.04);
}

.user-profile-cover::after {
  bottom: -1.25rem;
  left: 7.5rem;
  width: 8.75rem;
  height: 8.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.user-profile-cover__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.user-profile-cover__edit {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* ── Profile bar ── */
.user-profile-bar {
  background: var(--up-card);
}

.user-profile-bar__inner {
  padding: 0 1.5rem;
  max-width: none;
  margin: 0;
}

.user-profile-bar__avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -3.25rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.user-profile-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.625rem;
  padding-bottom: 1rem;
}

.user-profile-bar__avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 4px solid var(--up-card);
  object-fit: cover;
  background: var(--up-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-profile-bar__avatar-edit {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: var(--up-blue);
  border: 2px solid var(--up-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  font-size: 0.625rem;
}

.user-profile-bar__info {
  flex: 1;
  min-width: 12.5rem;
}

.user-profile-bar__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--up-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-profile-bar__name .fa-badge-check,
.user-profile-bar__verified {
  color: var(--up-blue);
}

.user-profile-bar__handle {
  font-size: 0.8125rem;
  color: var(--up-text-muted);
  margin-top: 0.125rem;
}

.user-profile-bar__role {
  font-size: 0.8125rem;
  color: var(--up-text-muted);
  margin-top: 0.125rem;
}

.user-profile-bar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.user-profile-bar__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5625rem;
  border-radius: 0.625rem;
}

.user-profile-bar__badge--blue {
  background: var(--up-blue-light);
  color: var(--up-blue);
}

.user-profile-bar__badge--amber {
  background: var(--up-amber-light);
  color: var(--up-amber);
}

.user-profile-bar__badge--green {
  background: var(--up-green-light);
  color: var(--up-green);
}

.user-profile-bar__badge--violet {
  background: #f5f3ff;
  color: #7c3aed;
}

.user-profile-bar__actions {
  display: flex;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.user-profile-bar__actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.user-profile-bar__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--up-blue);
  color: #fff;
  cursor: pointer;
}

.user-profile-bar__btn-primary--outline {
  background: var(--up-blue-light);
  color: var(--up-blue);
}

.user-profile-bar__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--up-border);
  background: var(--up-card);
  color: var(--up-text-sub);
  cursor: pointer;
  text-decoration: none;
}

.user-profile-bar__btn-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--up-border);
  background: var(--up-card);
  color: var(--up-text-muted);
  cursor: pointer;
  display: inline-flex;
}

/* Stats row */
.user-profile-stats {
  display: flex;
  flex-wrap: nowrap;
  border-top: 1px solid var(--up-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.user-profile-stats__item {
  padding: 0.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 5.5rem;
  transition: background 0.15s ease;
}

.user-profile-stats__item:hover {
  background: var(--up-bg);
}

.user-profile-stats__val {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--up-text);
  line-height: 1.2;
}

.user-profile-stats__val--accent {
  color: var(--up-blue);
}

.user-profile-stats__label {
  font-size: 0.6875rem;
  color: var(--up-text-muted);
  margin-top: 0.0625rem;
}

/* ── Sticky tabs (UserProfile.tsx) ── */
.user-profile-tabs {
  position: sticky;
  top: var(--up-tabs-sticky);
  z-index: 15;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: var(--up-card);
  border-bottom: 1px solid var(--up-border);
}

.user-profile-tabs__inner {
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  max-width: none;
  margin: 0;
  min-height: 2.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.user-profile-tabs__inner::-webkit-scrollbar {
  display: none;
}

#user-profile-page .user-profile-tabs__btn {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.2;
  padding: 0.75rem 1rem;
  margin: 0 0 -1px;
  min-height: 0;
  height: auto;
  border: none;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--up-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#user-profile-page .user-profile-tabs__btn:hover {
  color: var(--up-text-sub);
}

#user-profile-page .user-profile-tabs__btn--active,
#user-profile-page .user-profile-tabs__btn[aria-selected="true"] {
  font-weight: 600;
  color: var(--up-blue) !important;
  border-bottom-color: var(--up-blue) !important;
}

/* ── Body ── */
.user-profile-body {
  padding: 1.5rem 1.5rem 3.75rem;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.user-profile-layout {
  display: flex;
  gap: var(--up-layout-gap);
  align-items: flex-start;
}

.user-profile-layout__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-profile-layout__aside {
  width: var(--up-aside-about);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.user-profile-layout__aside--content {
  width: var(--up-aside-content);
}

.user-profile-layout__aside .user-profile-card__body {
  padding: 1rem;
}

@media (max-width: 1023px) {
  .user-profile-layout__aside {
    display: none;
  }

  .user-profile-layout {
    flex-direction: column;
  }
}

.user-profile-card {
  background: var(--up-card);
  border-radius: 0.75rem;
  border: 1px solid var(--up-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.user-profile-card__body {
  padding: 1.25rem;
}

.user-profile-card__body--compact {
  padding: 0.875rem;
}

.user-profile-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--up-text-muted);
  margin: 0 0 0.625rem;
}

.user-profile-about__text {
  font-size: 0.875rem;
  color: var(--up-text-sub);
  line-height: 1.8;
  margin: 0;
}

.user-profile-about__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--up-text-muted);
}

.user-profile-about__meta a,
.user-profile-about__link {
  color: var(--up-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
}

.user-profile-about__meta > span,
.user-profile-about__meta > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
}

/* Recent posts list (about tab) */
.user-profile-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--up-border);
}

.user-profile-recent__title {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
  color: var(--up-text);
}

.user-profile-recent__title i {
  color: var(--up-blue);
}

.user-profile-recent__link {
  font-size: 0.75rem;
  color: var(--up-blue);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.user-profile-recent__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6875rem 1.25rem;
  border-bottom: 1px solid var(--up-border-light);
  text-decoration: none;
  color: inherit;
}

.user-profile-recent__item:hover {
  background: var(--up-bg);
}

.user-profile-recent__item:last-child {
  border-bottom: none;
}

.user-profile-recent__item i.fa-file-alt {
  color: var(--up-blue);
  margin-top: 0.125rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.user-profile-recent__type {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.0625rem 0.4375rem;
  border-radius: 0.5rem;
  background: var(--up-blue-light);
  color: var(--up-blue);
}

.user-profile-recent__item-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--up-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

/* Skills chips */
.user-profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.user-profile-skills__chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.625rem;
  background: var(--up-bg);
  color: var(--up-text-sub);
  border: 1px solid var(--up-border);
}

/* Contacts in sidebar */
.user-profile-contacts__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  gap: 0.5rem;
}

.user-profile-contacts__row a {
  color: var(--up-blue);
  font-weight: 500;
  text-decoration: none;
}

/* Content tab filters */
.user-profile-filters {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}

.user-profile-filters__pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: 1.25rem;
  line-height: 1.25;
  border: 1px solid var(--up-border);
  background: var(--up-card);
  color: var(--up-text-sub);
  cursor: pointer;
}

.user-profile-filters__pill--active {
  border-color: var(--up-blue);
  background: var(--up-blue-light);
  color: var(--up-blue);
}

.user-profile-filters__count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--up-text-muted);
}

/* Feed sort — content tab (reuse profile-sort but restyle) */
#user-profile-page .profile-sort-bar {
  display: flex;
  overflow-x: auto;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--up-card);
  border: 1px solid var(--up-border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

#user-profile-page .profile-sort-btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--up-text-sub);
  cursor: pointer;
}

#user-profile-page .profile-sort-btn.bg-primary,
#user-profile-page .profile-sort-btn[class*="bg-primary"] {
  border-color: var(--up-blue) !important;
  background: var(--up-blue-light) !important;
  color: var(--up-blue) !important;
  box-shadow: none !important;
}

/* Post cards in profile feed */
#user-profile-page .user-profile-feed .ds-card {
  border-radius: 0.75rem !important;
  border: 1px solid var(--up-border) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

#user-profile-page .user-profile-feed .space-y-6 > * + * {
  margin-top: 0.75rem !important;
}

/* Communities tab */
.user-profile-communities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-profile-community {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
}

.user-profile-community__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: var(--up-blue);
}

.user-profile-community__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--up-text);
}

.user-profile-community__role {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--up-bg);
  color: var(--up-text-muted);
}

.user-profile-community__meta {
  font-size: 0.75rem;
  color: var(--up-text-muted);
  margin-top: 0.25rem;
}

.user-profile-community__open {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--up-border);
  background: var(--up-card);
  color: var(--up-text-sub);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Contacts tab content (mobile / when no sidebar) */
.user-profile-contacts-panel .user-profile-contacts__row {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--up-border-light);
}

/* Hide old mobile tab pills when using new tabs */
#user-profile-page .profile-info-tabs {
  display: none !important;
}

/* Pinned post */
#user-profile-page .user-profile-pinned .ds-card {
  border-radius: 0.75rem !important;
}

/* Empty */
#user-profile-page .user-profile-empty {
  border: 1px dashed var(--up-border);
  border-radius: 0.75rem;
  background: var(--up-card);
}

/* Achievements list (about sidebar) */
.user-profile-achievements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-profile-achievements__item {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.user-profile-achievements__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8125rem;
}

.user-profile-achievements__icon--blue {
  background: rgba(29, 78, 216, 0.1);
  color: var(--up-blue);
}

.user-profile-achievements__icon--amber {
  background: rgba(217, 119, 6, 0.12);
  color: var(--up-amber);
}

.user-profile-achievements__icon--green {
  background: rgba(5, 150, 105, 0.12);
  color: var(--up-green);
}

.user-profile-achievements__icon--violet {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.user-profile-achievements__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--up-text);
}

.user-profile-achievements__desc {
  font-size: 0.6875rem;
  color: var(--up-text-muted);
  margin-top: 0.0625rem;
}

.user-profile-community__desc {
  font-size: 0.8125rem;
  color: var(--up-text-muted);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.5;
}

.user-profile-community__role--mod {
  background: var(--up-amber-light);
  color: var(--up-amber);
}

.user-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
}

.user-profile-tags__chip {
  font-size: 0.6875rem;
  padding: 0.1875rem 0.5625rem;
  border-radius: 0.625rem;
  background: var(--up-bg);
  color: var(--up-text-muted);
  border: 1px solid var(--up-border);
}

/* Content tab post cards — UserProfile PostCard */
.user-profile-content-post {
  background: var(--up-card);
  border-radius: 0.75rem;
  border: 1px solid var(--up-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.user-profile-content-post__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
}

.user-profile-content-post__votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding-top: 0.125rem;
  flex-shrink: 0;
}

.user-profile-content-post__vote-btn {
  padding: 0.3125rem;
  border: none;
  background: transparent;
  color: var(--up-text-muted);
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
}

.user-profile-content-post__vote-btn.is-active.is-up {
  background: var(--up-blue-light);
  color: var(--up-blue);
}

.user-profile-content-post__vote-btn.is-active.is-down {
  background: #fef2f2;
  color: var(--up-red);
}

.user-profile-content-post__score {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--up-text);
  min-width: 1.25rem;
  text-align: center;
}

.user-profile-content-post__body {
  flex: 1;
  min-width: 0;
}

.user-profile-content-post__meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.user-profile-content-post__type,
.user-profile-recent__type.user-profile-type-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5625rem;
  border-radius: 0.625rem;
  background: var(--up-blue-light);
  color: var(--up-blue);
}

.user-profile-type-badge--article {
  background: var(--up-blue-light);
  color: var(--up-blue);
}

.user-profile-type-badge--regulation {
  background: var(--up-green-light);
  color: var(--up-green);
}

.user-profile-type-badge--case {
  background: #f5f3ff;
  color: #7c3aed;
}

.user-profile-type-badge--question {
  background: var(--up-amber-light);
  color: var(--up-amber);
}

.user-profile-type-badge--template {
  background: #f0fdfa;
  color: #0d9488;
}

.user-profile-type-badge--default {
  background: var(--up-bg);
  color: var(--up-text-muted);
}

.user-profile-content-post__time {
  font-size: 0.6875rem;
  color: var(--up-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
}

.user-profile-content-post__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--up-text);
  line-height: 1.35;
  margin: 0 0 0.4375rem;
  text-decoration: none;
}

.user-profile-content-post__title:hover {
  color: var(--up-blue);
}

.user-profile-content-post__preview {
  font-size: 0.8125rem;
  color: var(--up-text-muted);
  margin: 0 0 0.625rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-profile-content-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
  margin-bottom: 0.625rem;
}

.user-profile-content-post__tag {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.625rem;
  background: var(--up-bg);
  color: var(--up-text-muted);
  border: 1px solid var(--up-border);
}

.user-profile-content-post__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-profile-content-post__stat {
  font-size: 0.75rem;
  color: var(--up-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.user-profile-content-post__icon-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--up-text-muted);
  border-radius: 0.375rem;
  cursor: pointer;
}

.user-profile-content-post__icon-btn:hover {
  color: var(--up-blue);
  background: var(--up-blue-light);
}

#user-profile-page .user-profile-feed--cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#user-profile-page .user-profile-feed__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Фильтры контента — не DaisyUI boxed tabs из style.css */
#user-profile-page .user-profile-filters[role="group"],
#user-profile-page .user-profile-filters {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#user-profile-page .user-profile-filters__pill {
  border-radius: 1.25rem !important;
  background: var(--up-card) !important;
  box-shadow: none !important;
}

#user-profile-page .user-profile-advanced-sort.profile-sort-bar {
  margin-bottom: 1rem;
}

/* Activity sidebar (content tab) */
.user-profile-activity__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--up-border-light);
}

.user-profile-activity__row--last,
.user-profile-activity__row:last-child {
  border-bottom: none;
}

.user-profile-activity__val {
  font-weight: 600;
  color: var(--up-text);
}

/* Legacy header wrapper hidden pieces */
#user-profile-page .profile-page-root > .container.mx-auto.max-w-6xl:first-of-type {
  display: none;
}

@media (max-width: 767px) {
  .user-profile-bar__inner,
  .user-profile-tabs__inner,
  .user-profile-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .user-profile-bar__avatar {
    width: 5rem;
    height: 5rem;
  }

  .user-profile-bar__row {
    flex-direction: column;
    align-items: stretch;
  }

  .user-profile-bar__info {
    text-align: center;
  }

  .user-profile-bar__name {
    justify-content: center;
  }

  .user-profile-bar__badges {
    justify-content: center;
  }

  .user-profile-bar__actions,
  .user-profile-bar__actions-group {
    justify-content: center;
    width: 100%;
  }

  .user-profile-stats {
    flex-wrap: wrap;
  }
}
