/* ============================================================
   home.css — Styles KHUSUS homepage (index.html)
   style.css sudah dimuat duluan — file ini hanya tambahan.
   Tidak ada duplikat dengan style.css.
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #0d1220 0%, #131929 60%, #0b0e14 100%);
  padding: 40px 20px 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 0.4px;
}
.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  margin: 0 6px 10px;
  transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.hero-search-btn {
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin: 0 6px 10px;
  transition: background 0.2s, color 0.2s;
}
.hero-search-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* ── HOME LAYOUT ────────────────────────────────────────────── */
.home-main {
  padding: 8px 16px 80px;
  max-width: 940px;
  margin: 0 auto;
}
.home-section { margin-bottom: 36px; }

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ── ARTIST CARDS ───────────────────────────────────────────── */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.artist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.artist-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  border-color: rgba(76,141,255,.4);
}
.artist-initial {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}
.artist-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── SONG CARDS ─────────────────────────────────────────────── */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.song-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.song-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  border-color: rgba(76,141,255,.4);
}
.song-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-card-band {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── ALPHABET ROW ───────────────────────────────────────────── */
.alpha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.alpha-btn {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-width: 42px;
  text-align: center;
}
.alpha-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ════════════════════════════════════════════════════════════
   LIGHT MODE — homepage elements
   ════════════════════════════════════════════════════════════ */

body.light-mode .hero {
  background: linear-gradient(160deg, #eef2ff 0%, #e8edf8 100%);
  border-bottom-color: var(--light-border);
}
body.light-mode .hero-sub { color: var(--light-text-muted); }
body.light-mode .hero-search-btn {
  background: var(--light-bg-card);
  border-color: var(--light-border);
  color: var(--light-text);
}
body.light-mode .hero-search-btn:hover { background: var(--light-bg-hover); }

body.light-mode .section-title {
  color: var(--light-text);
  border-bottom-color: var(--light-border);
}

body.light-mode .artist-card,
body.light-mode .song-card,
body.light-mode .alpha-btn {
  background: var(--light-bg-card);
  border-color: var(--light-border);
  color: var(--light-text);
}
body.light-mode .artist-card:hover,
body.light-mode .song-card:hover {
  background: var(--light-bg-hover);
  border-color: var(--accent);
}
body.light-mode .alpha-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
body.light-mode .artist-initial { color: #1d4ed8; }
body.light-mode .artist-name    { color: var(--light-text); }
body.light-mode .artist-count   { color: var(--light-text-muted); }
body.light-mode .song-card-title{ color: var(--light-text); }
body.light-mode .song-card-band { color: var(--light-text-muted); }
body.light-mode .alpha-btn      { color: var(--light-text); }

body.light-mode .site-footer {
  color: var(--light-text-muted);
  border-top-color: var(--light-border);
}
