/* =========================================
   SPIDER-VERSE CENTRAL
   Main Design System
   Theme: Cinematic Black + Spider Red
   ========================================= */

:root {
  --bg: #080808;
  --bg-soft: #101010;
  --card: #151515;
  --card-hover: #1c1113;
  --red: #e32636;
  --red-bright: #ff3045;
  --red-dark: #8f101d;
  --white: #f5f5f5;
  --muted: #a5a5a5;
  --border: rgba(255, 48, 69, 0.2);
  --glow: rgba(227, 38, 54, 0.18);
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --container: 1180px;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, #21090d 0%, transparent 42%),
    var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: white;
  background: var(--red);
}

/* BACKGROUND EFFECTS */

.web-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(30deg, transparent 48.8%, #b51d2c 49%, transparent 49.3%),
    linear-gradient(150deg, transparent 48.8%, #b51d2c 49%, transparent 49.3%),
    linear-gradient(90deg, transparent 49.4%, #b51d2c 49.6%, transparent 49.9%);
  background-size: 145px 145px;
  mask-image: radial-gradient(ellipse at center, black, transparent 78%);
}

.background-glow {
  position: fixed;
  top: 15%;
  left: 50%;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--glow);
  filter: blur(100px);
  transform: translateX(-50%);
}

/* Keep page content above background layers */

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* HEADER */

.site-header {
  width: 100%;
  min-height: 76px;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(8, 8, 8, 0.94);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand-icon {
  color: var(--red-bright);
  font-size: 27px;
  text-shadow: 0 0 12px var(--red);
}

.brand-red {
  color: var(--red-bright);
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.nav-link {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #c9c9c9;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(227, 38, 54, 0.12);
  border-color: var(--border);
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  color: white;
  background: #171717;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
}

/* GENERAL BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--red);
  border-radius: 5px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 0 18px rgba(227, 38, 54, 0.2);
}

.btn-primary:hover {
  background: #ff3045;
  border-color: #ff3045;
}

.btn-outline {
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(227, 38, 54, 0.15);
}

/* HOMEPAGE HERO */

.hero {
  width: min(var(--container), 90%);
  min-height: 590px;
  margin: 0 auto;
  padding: 75px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 35px;
}

.hero-content {
  max-width: 650px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--red-bright);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
}

.hero-red {
  color: var(--red-bright);
  text-shadow: 0 0 22px rgba(227, 38, 54, 0.3);
}

.hero-description {
  max-width: 560px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 35px;
  color: #aaa;
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e32636;
  box-shadow: 0 0 10px var(--red);
}

/* HERO GRAPHIC */

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(255, 48, 69, 0.35);
  border-radius: 50%;
}

.ring-one {
  width: 290px;
  height: 290px;
}

.ring-two {
  width: 220px;
  height: 220px;
}

.ring-three {
  width: 150px;
  height: 150px;
}

.hero-spider {
  position: relative;
  z-index: 2;
  color: var(--red-bright);
  font-size: 105px;
  text-shadow: 0 0 35px rgba(227, 38, 54, 0.65);
  animation: spider-float 4s ease-in-out infinite;
}

.hero-symbol {
  position: absolute;
  right: 12%;
  bottom: 10%;
  color: rgba(227, 38, 54, 0.65);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 4px;
}

@keyframes spider-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* SECTIONS */

.section {
  width: min(var(--container), 90%);
  margin: 0 auto;
  padding: 65px 0;
}

.hub-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 9px;
  font-family: var(--font-heading);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 800;
}

.section-heading p {
  color: var(--muted);
}

.text-red {
  color: var(--red-bright);
}

/* HUB CARDS */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.hub-card {
  position: relative;
  min-height: 205px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #191919, #101010);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: var(--red);
}

.hub-number {
  color: rgba(255, 48, 69, 0.7);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
}

.hub-icon {
  display: block;
  margin: 14px 0;
  color: var(--red-bright);
  font-size: 30px;
}

.hub-card h3 {
  margin-bottom: 7px;
  font-family: var(--font-heading);
  font-size: 15px;
}

.hub-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
}

.card-link {
  color: var(--red-bright);
  font-size: 14px;
  font-weight: 700;
}

.card-link:hover {
  color: white;
}

/* FEATURED SECTION */

.featured-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 35px;
  padding: 35px;
  background: linear-gradient(110deg, #1b0b0e, #101010);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.featured-content h2 {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: clamp(23px, 3vw, 35px);
}

.featured-content p {
  margin-bottom: 22px;
  color: var(--muted);
}

.featured-art {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--red-bright);
  font-size: 75px;
  background:
    radial-gradient(circle, rgba(227, 38, 54, 0.2), transparent 65%);
}

/* INNER PAGE HERO */

.page-hero {
  width: min(900px, 90%);
  margin: 0 auto;
  padding: 75px 0 45px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
}

/* INFO CARDS */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.info-card {
  padding: 23px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.info-label {
  display: block;
  margin-bottom: 9px;
  color: var(--red-bright);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.5px;
}

.info-card h3 {
  margin-bottom: 7px;
  font-family: var(--font-heading);
  font-size: 17px;
}

.info-card p {
  color: var(--muted);
  font-size: 15px;
}

/* COUNTDOWN */

.countdown-section {
  padding: 30px;
  background: linear-gradient(120deg, #200b0f, #111);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.countdown-section h2 {
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
}

.countdown-box {
  min-width: 85px;
  padding: 15px 12px;
  background: #090909;
  border: 1px solid rgba(255, 48, 69, 0.35);
  border-radius: 7px;
}

.countdown-box strong {
  display: block;
  color: var(--red-bright);
  font-family: var(--font-heading);
  font-size: 29px;
}

.countdown-box span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

/* NEWS */

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 22px;
}

.news-status {
  color: var(--muted);
  font-size: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.news-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 17px;
}

.news-card p {
  color: var(--muted);
  font-size: 15px;
}

.news-card a {
  display: inline-block;
  margin-top: 15px;
  color: var(--red-bright);
  font-weight: 700;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 35px 20px;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}

.news-disclaimer,
.theory-note,
.gallery-note {
  margin-top: 22px;
  padding: 17px 20px;
  color: var(--muted);
  background: rgba(227, 38, 54, 0.07);
  border-left: 3px solid var(--red);
  font-size: 14px;
}

/* CHARACTER CARDS */

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.character-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.character-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.character-art {
  min-height: 145px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 43px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
}

.character-red {
  background: linear-gradient(135deg, #66101b, #1b080b);
}

.character-purple {
  background: linear-gradient(135deg, #49205d, #160d20);
}

.character-blue {
  background: linear-gradient(135deg, #123b70, #081321);
}

.character-dark {
  background: linear-gradient(135deg, #343434, #090909);
}

.character-gold {
  background: linear-gradient(135deg, #72531a, #211707);
}

.character-green {
  background: linear-gradient(135deg, #14513b, #071b13);
}

.character-info {
  padding: 20px;
}

.character-info h3 {
  margin-bottom: 7px;
  font-family: var(--font-heading);
  font-size: 17px;
}

.character-info p {
  color: var(--muted);
  font-size: 15px;
}

/* FAN THEORIES */

.theory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.theory-card {
  padding: 23px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.theory-card h3 {
  margin: 13px 0 9px;
  font-family: var(--font-heading);
  font-size: 17px;
}

.theory-card p {
  color: var(--muted);
  font-size: 15px;
}

.theory-tag {
  display: inline-block;
  padding: 5px 10px;
  color: #ffb7bf;
  background: rgba(227, 38, 54, 0.13);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theory-status {
  display: block;
  margin-top: 14px;
  color: var(--red-bright);
  font-size: 13px;
  font-weight: 700;
}

/* MOVIE CARDS */

.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: transform 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
}

.movie-art {
  min-height: 165px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 3px 15px #000;
}

.movie-art-red {
  background: linear-gradient(135deg, #7d101d, #190609);
}

.movie-art-dark {
  background: linear-gradient(135deg, #343434, #080808);
}

.movie-art-purple {
  background: linear-gradient(135deg, #552268, #16091d);
}

.movie-art-blue {
  background: linear-gradient(135deg, #164b80, #07121f);
}

.movie-art-gold {
  background: linear-gradient(135deg, #76571c, #211707);
}

.movie-info {
  padding: 20px;
}

.movie-info h3 {
  margin-bottom: 7px;
  font-family: var(--font-heading);
  font-size: 17px;
}

.movie-info p {
  color: var(--muted);
  font-size: 15px;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.gallery-art {
  min-height: 210px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 3px 18px #000;
}

.gallery-art-one {
  background:
    radial-gradient(circle at center, #7c1725, transparent 60%),
    linear-gradient(135deg, #26070c, #080808);
}

.gallery-art-two {
  background:
    radial-gradient(circle at center, #3d285d, transparent 60%),
    linear-gradient(135deg, #160d20, #080808);
}

.gallery-art-three {
  background:
    radial-gradient(circle at center, #164c75, transparent 60%),
    linear-gradient(135deg, #071827, #080808);
}

.gallery-art-four {
  background:
    radial-gradient(circle at center, #5d191f, transparent 60%),
    linear-gradient(135deg, #25080c, #080808);
}

.gallery-caption {
  padding: 15px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ABOUT PAGE */

.about-panel,
.disclaimer-panel {
  padding: 27px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.about-panel h2,
.disclaimer-panel h2 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 21px;
}

.about-panel p,
.disclaimer-panel p {
  margin-bottom: 12px;
  color: var(--muted);
}

.disclaimer-panel {
  border-left: 3px solid var(--red);
}

/* FOOTER */

.site-footer {
  margin-top: 55px;
  padding: 35px 5%;
  background: #080808;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  margin-bottom: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
}

.site-footer p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
}

.copyright {
  margin-top: 17px;
  color: #777;
  font-size: 12px;
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

/* RESPONSIVE TABLET */

@media (max-width: 1000px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-navigation {
    gap: 3px;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 14px;
  }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 500px;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 700px) {
  .site-header {
    min-height: 65px;
    padding: 12px 5%;
  }

  .brand {
    font-size: 16px;
  }

  .brand-icon {
    font-size: 23px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-navigation {
    display: none;
    width: 100%;
    padding: 12px 0 5px;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .main-navigation.open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    background: #111;
  }

  .hero {
    min-height: auto;
    padding: 65px 0 45px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-status {
    justify-content: center;
  }

  .hero-visual {
    min-height: 270px;
  }

  .ring-one {
    width: 220px;
    height: 220px;
  }

  .ring-two {
    width: 165px;
    height: 165px;
  }

  .ring-three {
    width: 110px;
    height: 110px;
  }

  .hero-spider {
    font-size: 75px;
  }

  .section {
    padding: 45px 0;
  }

  .featured-section {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .info-grid,
  .news-grid,
  .character-grid,
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    padding-top: 55px;
  }
}

/* SMALL PHONES */

@media (max-width: 460px) {
  body {
    font-size: 16px;
  }

  .hub-grid,
  .info-grid,
  .news-grid,
  .character-grid,
  .theory-grid,
  .movie-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    min-height: auto;
  }

  .countdown-section {
    padding: 20px 12px;
  }

  .countdown-box {
    min-width: 68px;
    padding: 12px 8px;
  }

  .countdown-box strong {
    font-size: 23px;
  }

  .news-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-description {
    font-size: 17px;
  }
}

/* REDUCE ANIMATION FOR USERS WHO PREFER IT */

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