/* index.html page styles (extracted v4.2) */
:root {
  --red-bright: var(--red);
}

/* HEADER */
header {
  position: relative;
  text-align: center;
  padding: 72px 24px 56px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}
header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,16,46,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.maple { font-size: 2rem; margin-bottom: 16px; display: block; }
header h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
}
.hero-img {
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  margin: 0 auto 20px;
  display: block;
}
.explore-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  transition: all 0.18s ease;
}
.explore-link:hover { border-color: var(--red); color: var(--text); }

/* ON THIS DAY */
.on-this-day { max-width: 600px; margin: 24px auto 0; padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); text-align: left; display: none; }
.on-this-day-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; font-size: 0.82rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; }
.on-this-day-header svg { flex-shrink: 0; }
.otd-empty { color: var(--muted); font-size: 0.82rem; font-style: italic; }
.otd-event { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.otd-event:first-child { border-top: none; padding-top: 0; }
a.otd-event { text-decoration: none; color: inherit; cursor: pointer; transition: background 0.15s ease; }
a.otd-event:hover { background: rgba(255,255,255,0.05); }
a.otd-event:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.otd-view { color: var(--gold); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.otd-year { font-weight: 700; font-size: 0.85rem; color: var(--red); min-width: 42px; flex-shrink: 0; }
.otd-desc { font-size: 0.82rem; color: var(--text); line-height: 1.5; }
.otd-desc .otd-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 1px 6px; border-radius: 4px; margin-right: 4px; vertical-align: 1px; }
.otd-tag-release { background: var(--gold); color: #000; }
.otd-tag-show { background: var(--red); color: #fff; }
.otd-tag-milestone { background: rgba(255,255,255,0.15); color: var(--text); }

/* STATS (overrides for index) */
.stats-row { padding: 24px 16px; }
.stat { min-width: 80px; }

/* SONG SEARCH */
.song-search-autocomplete { position: relative; max-width: 480px; margin: 24px auto 20px; }
.song-search-input { width: 100%; padding: 12px 16px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--text); font-size: 0.95rem; font-family: 'Poppins', sans-serif; outline: none; transition: border-color 0.2s; }
.song-search-input:focus { border-color: #fff; }
.song-search-input::placeholder { color: var(--muted2); }
.song-search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; max-height: 260px; overflow-y: auto; z-index: 50; display: none; margin-top: 4px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.song-search-dropdown.open { display: block; }
.song-search-option { padding: 10px 16px; cursor: pointer; font-size: 0.82rem; color: var(--muted); transition: background 0.1s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.song-search-option:last-child { border-bottom: none; }
.song-search-option:hover, .song-search-option.active { background: rgba(255,255,255,0.06); color: var(--text); }
.song-search-option .opt-song { color: var(--text); font-weight: 600; }
.song-search-option .opt-album { color: var(--muted2); font-size: 0.72rem; margin-left: 6px; }
.song-search-option .opt-lyric { color: var(--muted2); font-size: 0.72rem; display: block; margin-top: 2px; font-style: italic; }
.search-category-label { padding: 6px 16px 4px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid rgba(255,255,255,0.04); }
.song-search-input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.show-detail-overlay { display:none; position:fixed; inset:0; z-index:2500; background:rgba(0,0,0,0.75); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); align-items:center; justify-content:center; font-family:'Poppins',sans-serif; }
.show-detail-overlay.active { display:flex; }
.show-detail-card { background:var(--bg2); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:24px 28px; max-width:400px; width:90%; position:relative; box-shadow:0 12px 40px rgba(0,0,0,0.6); }
.show-detail-close { position:absolute; top:12px; right:16px; background:none; border:none; color:var(--muted); font-size:1.4rem; cursor:pointer; line-height:1; }
.show-detail-close:hover { color:#fff; }
.sd-date { color:var(--gold); font-weight:600; font-size:0.95rem; margin-bottom:4px; }
.sd-venue { color:#fff; font-weight:600; font-size:1.15rem; margin-bottom:2px; }
.sd-city { color:var(--muted); font-size:0.85rem; margin-bottom:8px; }
.sd-tour { color:var(--red); font-size:0.8rem; font-weight:500; margin-bottom:4px; }
.sd-songs { color:var(--muted); font-size:0.78rem; margin-bottom:12px; }
.sd-setlist { color:var(--muted2); font-size:0.75rem; line-height:1.6; margin-bottom:14px; max-height:200px; overflow-y:auto; }
.sd-setlist ol { padding-left:20px; margin:0; }
.sd-setlist li { padding:1px 0; }
.sd-actions { display:flex; flex-direction:column; gap:8px; }
.sd-actions button, .sd-actions a { display:block; width:100%; padding:10px 16px; border-radius:6px; font-family:'Poppins',sans-serif; font-size:0.8rem; font-weight:600; text-align:center; cursor:pointer; text-decoration:none; transition:background 0.15s; }
.sd-play { background:var(--gold); color:var(--bg); border:none; }
.sd-play:hover { background:#d4af4a; }
.sd-download { background:transparent; color:var(--gold); border:1px solid rgba(204,162,60,0.3); }
.sd-download:hover { background:rgba(204,162,60,0.1); }
.sd-setlist-link { background:transparent; color:var(--muted); border:1px solid rgba(255,255,255,0.1); }
.sd-setlist-link:hover { background:rgba(255,255,255,0.05); }
.sd-iwt { display:block; width:100%; margin-top:4px; padding:8px 10px; background:transparent; border:1px solid var(--gold); color:var(--gold); font-family:'Poppins',sans-serif; font-size:0.75rem; font-weight:600; border-radius:6px; cursor:pointer; transition:all 0.15s; }
.sd-iwt:hover { background:rgba(204,162,60,0.15); }
.sd-iwt.active { background:var(--gold); color:var(--bg); }

/* SETLIST OVERLAY */
.setlist-overlay { display:none; position:fixed; inset:0; z-index:2600; background:rgba(0,0,0,0.7); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); align-items:center; justify-content:center; font-family:'Poppins',sans-serif; }
.setlist-overlay.active { display:flex; }
.setlist-card { background:var(--bg); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:24px 28px; max-width:420px; width:90%; position:relative; box-shadow:0 12px 40px rgba(0,0,0,0.6); }
.setlist-close { position:absolute; top:12px; right:16px; background:none; border:none; color:var(--muted); font-size:1.4rem; cursor:pointer; line-height:1; }
.setlist-close:hover { color:#fff; }
.setlist-date { color:var(--gold); font-weight:600; font-size:0.95rem; margin-bottom:4px; }
.setlist-venue { color:#fff; font-weight:600; font-size:1.15rem; margin-bottom:2px; }
.setlist-city { color:var(--muted); font-size:0.85rem; margin-bottom:4px; }
.setlist-tour { color:var(--red); font-size:0.8rem; font-weight:500; margin-bottom:12px; }
.setlist-songs-wrap { max-height:55vh; overflow-y:auto; margin-bottom:12px; }
.setlist-songs-wrap::-webkit-scrollbar { width:4px; }
.setlist-songs-wrap::-webkit-scrollbar-track { background:transparent; }
.setlist-songs-wrap::-webkit-scrollbar-thumb { background:var(--bg3); border-radius:2px; }
.setlist-set-header { color:var(--gold); font-size:0.65rem; font-weight:600; text-transform:uppercase; letter-spacing:0.8px; margin:12px 0 6px; padding-bottom:4px; border-bottom:1px solid rgba(204,162,60,0.2); }
.setlist-set-header:first-child { margin-top:0; }
.setlist-song { font-size:0.82rem; color:#fff; padding:3px 0; display:flex; align-items:baseline; gap:6px; }
.setlist-song-num { color:var(--muted); font-size:0.65rem; min-width:18px; text-align:right; flex-shrink:0; }
.setlist-song-name { flex:1; }
.setlist-song-cover { color:var(--muted); font-size:0.7rem; font-style:italic; }
.setlist-song-tape { opacity:0.5; }
.setlist-song-tape-label { color:var(--muted); font-size:0.65rem; }
.setlist-count { font-size:0.72rem; color:var(--muted); margin-bottom:12px; }
.setlist-actions { display:flex; flex-direction:column; gap:8px; }
.setlist-actions button, .setlist-actions a { display:block; width:100%; padding:10px 16px; border-radius:6px; font-family:'Poppins',sans-serif; font-size:0.8rem; font-weight:600; text-align:center; cursor:pointer; text-decoration:none; transition:background 0.15s; }
.setlist-play-btn { background:var(--gold); color:var(--bg); border:none; }
.setlist-play-btn:hover { background:#d4af4a; }
.setlist-close-btn { background:transparent; color:var(--muted); border:1px solid rgba(255,255,255,0.1); }
.setlist-close-btn:hover { background:rgba(255,255,255,0.05); }
.setlist-credit { text-align:center; margin-top:8px; font-size:0.6rem; }
.setlist-credit a { color:var(--muted); text-decoration:none; }
.setlist-credit a:hover { color:var(--gold); text-decoration:underline; }
.setlist-empty { color:var(--muted); font-size:0.82rem; font-style:italic; }

/* NAV GROUPS */
.nav-groups { max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
.nav-group { margin-top: 28px; }
.nav-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nav-card { display: flex; flex-direction: column; justify-content: center; gap: 3px; text-align: center; padding: 16px 18px; min-height: 64px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; text-decoration: none; transition: border-color 0.18s ease, background 0.18s ease; }
.nav-card:hover { border-color: var(--red); background: rgba(200, 16, 46, 0.07); }
.nav-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-card-name { font-size: 0.88rem; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.nav-card-sub { font-size: 0.72rem; font-style: italic; color: var(--gold); }
.nav-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.nav-card-cta { grid-column: 1 / -1; background: var(--red); border-color: var(--red); }
.nav-card-cta:hover { background: #a00d24; border-color: #a00d24; }
.nav-card-cta .nav-card-name { color: #fff; }
.nav-card-cta .nav-card-sub { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 500px) {
  .nav-cards { gap: 10px; }
  .nav-card { padding: 14px 12px; min-height: 56px; }
  .nav-card-name { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
