/* ---- DASHBOARD LAYOUT ---- */

.dash-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ---- SIDEBAR ---- */
.dash-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-warm);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  flex-shrink: 0;
}

.dash-brand {
  margin-bottom: 3rem;
}

.dash-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.dash-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}

.dash-nav-link:hover {
  background: rgba(201,168,76,0.06);
  color: var(--cream);
}

.dash-nav-link.active {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
}

.nav-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

.dash-artist-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.artist-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.artist-chip-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
}

.artist-chip-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 0.1rem;
}

/* ---- MAIN ---- */
.dash-main {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 2.5rem 4rem;
  max-width: 1100px;
}

/* ---- TOPBAR ---- */
.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.dash-topbar-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.dash-topbar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.dash-topbar-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding-bottom: 0.25rem;
}

.dash-topbar-meta::before {
  content: '●';
  color: #3ddc84;
  margin-right: 0.4rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* ---- STAT CARDS ---- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
}

.stat-card--gold {
  border-color: rgba(201,168,76,0.3);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(201,168,76,0.05) 100%);
}

.stat-card-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.stat-card-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.stat-card--gold .stat-card-value {
  color: var(--gold);
}

.stat-card-sub {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ---- TWO-COLUMN GRID ---- */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---- PANELS ---- */
.dash-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
}

.panel-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  border: 1px solid rgba(139,26,43,0.35);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
}

.empty-state {
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
}

/* ---- LEADERBOARD ---- */
.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-radius: 3px;
  transition: background 0.15s;
}

.leaderboard-row:hover {
  background: rgba(255,255,255,0.025);
}

.leaderboard-row--top {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
}

.lb-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--fg-muted);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.leaderboard-row--top .lb-rank {
  color: var(--gold);
}

.lb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139,26,43,0.5);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.lb-info {
  flex: 1;
  min-width: 0;
}

.lb-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-handle {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.05rem;
}

.lb-points {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  white-space: nowrap;
}

.lb-pts-label {
  font-size: 0.65rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ---- ACTIVITY FEED ---- */
.activity-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 3px;
  border-bottom: 1px solid rgba(201,168,76,0.05);
}

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

.activity-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.activity-body {
  flex: 1;
  font-size: 0.87rem;
  line-height: 1.4;
  min-width: 0;
}

.activity-name {
  font-weight: 500;
  color: var(--cream);
}

.activity-label {
  color: var(--fg-muted);
}

.activity-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}

.activity-points {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-warm);
}

.activity-time {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.7;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dash-body {
    flex-direction: column;
  }
  .dash-sidebar {
    width: 100%;
    min-height: auto;
    padding: 1.25rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dash-brand {
    margin-bottom: 0;
  }
  .dash-nav {
    flex-direction: row;
    gap: 0.1rem;
  }
  .dash-artist-chip {
    padding: 0;
    border-top: none;
    margin-top: 0;
  }
  .artist-chip-sub {
    display: none;
  }
  .dash-main {
    padding: 1.5rem;
  }
  .dash-stats {
    grid-template-columns: 1fr;
  }
  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
