/* ================================================
   User pages — common 2-column layout
   Sidebar (220px) + content area
   ================================================ */

.user-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* 2-column shell: sidebar + content */
.user-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 110px);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  /* no overflow:hidden — allows sticky sidebar */
}

/* Shared sidebar */
.sidebar {
  background: #fff;
  border-right: 0.5px solid rgba(0,0,0,0.08);
  padding: 14px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  align-self: start;
}

.sb-section-label {
  font-size: 10px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px 2px;
  display: block;
}

.sb-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
}

.sb-link:hover { background: #f5f4f0; color: #1a1a1a; text-decoration: none; }
.sb-link.active { color: #534AB7; background: #EEEDFE; font-weight: 500; }
.sb-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.sb-badge {
  margin-left: auto;
  font-size: 10px;
  background: #534AB7;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 500;
}

.sb-divider {
  border: none;
  border-top: 0.5px solid rgba(0,0,0,0.07);
  margin: 6px 0;
}

/* Main content column */
.user-content {
  background: var(--bg);
  border-left: 0.5px solid var(--border);
  padding: 28px 32px;
  overflow-y: auto;
}

/* Page title row */
.user-content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--border);
}

.user-content-ava {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--purple-light);
}

.user-content-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 3px;
}

.user-content-meta {
  font-size: 13px;
  color: var(--text-3);
}

.user-content-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Section heading */
.user-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.user-section-hd h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

.user-section-hd a {
  font-size: 13px;
  color: var(--purple);
  text-decoration: none;
}

.user-section-hd a:hover { text-decoration: underline; }

/* Item grid — for films, books, places */
.user-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.user-item-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}

.user-item-card:hover {
  box-shadow: 0 0 0 1px var(--border-strong);
  text-decoration: none;
  color: inherit;
}

.user-item-type {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.user-item-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--text);
}

.user-item-card p {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
}

.user-item-date {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
}

/* Activity list — for reviews, checkins */
.user-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}

.user-activity-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border);
  align-items: flex-start;
}

.user-activity-item:last-child { border-bottom: none; }

.user-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.user-activity-body { flex: 1; min-width: 0; }

.user-activity-body p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--text);
}

.user-activity-body a { color: var(--purple); text-decoration: none; }
.user-activity-body a:hover { text-decoration: underline; }

.user-activity-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Empty state */
.user-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}

.user-empty-icon { font-size: 36px; margin-bottom: 14px; }
.user-empty h3 { font-size: 15px; font-weight: 500; color: var(--text); margin: 0 0 6px; }
.user-empty p { font-size: 13px; margin: 0; }

/* Stars */
.user-stars { color: var(--gold, #f59e0b); font-size: 12px; margin-top: 4px; }

/* ── Mobile ── */
@media (max-width: 860px) {
  .user-shell {
    grid-template-columns: 1fr;
  }
  .ex-sidebar,
  .sidebar {
    display: none;
  }
  .user-content {
    padding: 20px 16px;
  }
}
