/* ── Account Page styles ─────────────────────────────────────── */

.account-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.account-header {
  margin-bottom: 1.5rem;
  overflow: hidden; /* clearfix for float */
}

.account-header h2 {
  margin: 0;
}

/* ── Profile card ────────────────────────────────────────────── */

.account-card {
  background: var(--surface, #1a1a2e);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.account-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent, #f0c040);
  color: var(--bg, #0d0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.account-info h3 {
  margin: 0 0 0.15rem;
}

.account-info .muted {
  margin: 0;
  font-size: 0.85rem;
}

/* ── Badges ──────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-google {
  background: #4285f4;
  color: white;
}

.badge-local {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted, #888);
}

/* ── Stats row ───────────────────────────────────────────────── */

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--surface, #1a1a2e);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent, #f0c040);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted, #888);
  margin-top: 0.15rem;
}

/* ── Sections (bands, songs) ─────────────────────────────────── */

.account-section {
  margin-bottom: 1.5rem;
}

.account-section h3 {
  margin: 0 0 0.75rem;
}

/* ── Band cards grid ─────────────────────────────────────────── */

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.account-band-card {
  background: var(--surface, #1a1a2e);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s;
}

.account-band-card:hover {
  border-color: rgba(240, 192, 64, 0.25);
}

.band-card-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.band-card-meta {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.band-card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted, #888);
}

/* ── Song list ───────────────────────────────────────────────── */

.account-song-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-song-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface, #1a1a2e);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.song-row-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-row-band {
  font-size: 0.8rem;
}

.song-row-stage {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.song-row-date {
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .account-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-song-row {
    grid-template-columns: 1fr auto;
  }

  .song-row-band,
  .song-row-date {
    display: none;
  }
}
