/* Yuzo Koshiro Fan Site — Electric Midnight Visual Identity */
/* Fonts: Audiowide 400 (headings), Inter (body) */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Inter:wght@400;500;600&display=swap');

/* ── Custom properties ── */
:root {
  --bg:             #040b14;
  --bg-card:        #071220;
  --bg-alt:         #091828;
  --bg-overlay:     rgba(4,11,20,0.96);
  --text:           #d8e8f8;
  --text-muted:     #5a7a9a;
  --accent:         #d500f9;
  --accent-dim:     #8800a0;
  --accent-glow:    rgba(213,0,249,0.18);
  --accent-glow-lg: rgba(213,0,249,0.35);
  --border:         #0e2035;
  --border-accent:  #d500f9;
  --font-heading:   'Audiowide', 'Courier New', monospace;
  --font-body:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --nav-height:     56px;
  --container-max:  1100px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  background: var(--bg);
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }

p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 600; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* ── Navigation ── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(4,11,20,0.95);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-brand:hover { text-decoration: none; opacity: 0.85; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link {
  display: block;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-link.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  border-radius: 3px;
  margin-left: auto;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    gap: 0.15rem;
  }
  .nav-list.open { display: flex; }
  .nav-link.active { border-bottom: none; border-left: 3px solid var(--accent); border-radius: 0; }
}

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.6rem;
  color: var(--text);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #040b14 0%, #0a0620 50%, #040b14 100%);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(213,0,249,0.03) 40px,
      rgba(213,0,249,0.03) 41px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(213,0,249,0.03) 40px,
      rgba(213,0,249,0.03) 41px
    );
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
  filter: sepia(0.4) brightness(0.7);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dim), transparent);
}

.timeline-entry {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow-lg);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.timeline-entry h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ── Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 400;
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:hover td { background: var(--bg-alt); }

.data-table .era-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--accent);
}

/* ── Catalogue filters ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-btn {
  padding: 0.3rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--accent-dim); color: var(--text); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--bg-alt); }

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item:hover { border-color: var(--accent-dim); box-shadow: 0 0 12px var(--accent-glow); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(transparent, rgba(4,11,20,0.92));
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Flagship article ── */
.flagship-article {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.flagship-article:last-child { border-bottom: none; }

.flagship-article h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.fa-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Video embeds ── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}

.video-card-body { padding: 0.75rem 1rem; }

.video-card-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.video-card-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ── Music page ── */
.era-group {
  margin-bottom: 2.5rem;
}

.era-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.music-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.music-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}

.music-card-body { padding: 0.75rem 1rem; }

.music-card-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.music-card-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ── Quote / interview ── */
.quote-block {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 4px 4px 0;
}

.quote-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.quote-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.interview-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.interview-entry:last-child { border-bottom: none; }

.interview-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Resources ── */
.resource-list {
  list-style: none;
}

.resource-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.resource-list li:last-child { border-bottom: none; }

.resource-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
}

.resource-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── People ── */
.person-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.person-section:last-child { border-bottom: none; }

.person-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dim); color: #fff; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.btn-secondary:hover { background: var(--bg-alt); text-decoration: none; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Placeholder (missing image) ── */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
}

/* ── Easter egg ── */
#streets-egg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4,11,20,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

#streets-egg.active {
  opacity: 1;
  pointer-events: all;
}

.egg-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(213,0,249,0.08) 60px,
      rgba(213,0,249,0.08) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(213,0,249,0.08) 60px,
      rgba(213,0,249,0.08) 61px
    );
  animation: egg-grid-pulse 1s ease-in-out infinite alternate;
}

@keyframes egg-grid-pulse {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

.egg-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.egg-flash {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 6vw, 3rem);
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent), 0 0 60px var(--accent-glow-lg);
  margin-bottom: 0.5rem;
  animation: egg-neon-flicker 0.15s infinite;
}

@keyframes egg-neon-flicker {
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0.85; }
  55%  { opacity: 1; }
  95%  { opacity: 1; }
  100% { opacity: 0.9; }
}

.egg-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.egg-close-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ── Utility ── */
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-md { margin-bottom: 1.5rem; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-accent {
  background: rgba(213,0,249,0.12);
  border-color: var(--accent-dim);
  color: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .music-grid { grid-template-columns: 1fr; }
}

/* ── Footer ── */
footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
