/* GLOBAL — variables, reset, body, starfield, nav, section system */

:root {
  --black:       #02040a;
  --amber:       #c8922a;
  --amber-light: #e8b84b;
  --amber-glow:  rgba(200,146,42,0.25);
  --amber-faint: rgba(200,146,42,0.08);
  --white:       #f0ead6;
  --dim:         #6a7a8a;
  --panel-bg:    rgba(5,10,22,0.97);
  --nav-h:       60px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Crimson Pro', Georgia, serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#starfield {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.grain {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

#topNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(2,4,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,146,42,0.12);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.4em;
  color: var(--amber-light);
  text-shadow:
    0 0 8px rgba(232,184,75,0.9),
    0 0 20px rgba(200,146,42,0.7),
    0 0 45px rgba(200,146,42,0.4),
    0 0 80px rgba(200,100,20,0.2);
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-btn {
  background: none;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--dim);
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 18px; right: 18px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-btn:hover { color: var(--white); }
.nav-btn.active { color: var(--amber-light); }
.nav-btn.active::after { transform: scaleX(1); }

#app {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100vw;
  height: 100vh;
  padding-top: var(--nav-h);
}

.section {
  display: none;
  width: 100%;
  height: calc(100vh - var(--nav-h));
}
.section.active { display: flex; }

#section-sinopse,
#section-characters,
#section-media {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,146,42,0.3) transparent;
}
#section-sinopse::-webkit-scrollbar,
#section-characters::-webkit-scrollbar,
#section-media::-webkit-scrollbar { width: 4px; }
#section-sinopse::-webkit-scrollbar-thumb,
#section-characters::-webkit-scrollbar-thumb,
#section-media::-webkit-scrollbar-thumb { background: rgba(200,146,42,0.3); }

.content-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px 80px;
}

.content-header { margin-bottom: 40px; }

.content-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--amber);
  opacity: 0.7;
}
.content-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--amber-light);
  letter-spacing: 0.15em;
  margin-top: 8px;
  text-shadow: 0 0 40px var(--amber-glow);
}
.content-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(200,146,42,0.4), transparent);
  margin-top: 16px;
}

#musicToggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: rgba(2,4,10,0.8);
  border: 1px solid rgba(200,146,42,0.3);
  color: var(--amber);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
#musicToggle:hover {
  border-color: var(--amber);
  background: rgba(200,146,42,0.1);
}
#musicToggle.muted {
  color: var(--dim);
  border-color: rgba(100,100,100,0.3);
}
