/* ============================================================
   SHATTERED REALITY — styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red:        #CC1111;
  --red-hi:     #E82020;
  --red-glow:   rgba(204, 17, 17, 0.35);
  --red-subtle: rgba(204, 17, 17, 0.08);
  --bg:         #080808;
  --bg2:        #0c0c0c;
  --bg3:        #121212;
  --fg:         #F0F0F0;
  --fg-dim:     rgba(240, 240, 240, 0.55);
  --fg-faint:   rgba(240, 240, 240, 0.12);
  --nav-h:      68px;
  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition:
    background   0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(204, 17, 17, 0.18);
}

/* Logo */
.nav-logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(204, 17, 17, 0.3));
  transition: filter 0.3s ease;
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 16px rgba(204, 17, 17, 0.65));
}

/* Nav list */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.nav-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1c1c1c;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* -- Active state -- */
.nav-item.active .nav-label { color: var(--fg); }
.nav-item.active .nav-dot {
  background: var(--red);
  box-shadow: 0 0 7px var(--red), 0 0 14px var(--red-glow);
}

/* -- Disabled state -- */
.nav-item.disabled {
  pointer-events: none;
}
.nav-item.disabled .nav-label { color: rgba(240, 240, 240, 0.2); }
.nav-item.disabled .nav-dot   { background: #161616; }

/* -- Hover (non-disabled, non-active) -- */
.nav-item:not(.disabled):not(.active) .nav-label { color: var(--fg-dim); }
.nav-item:not(.disabled):not(.active):hover .nav-label { color: var(--fg); }
.nav-item:not(.disabled):not(.active):hover .nav-dot {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}


/* ============================================================
   BANNER
   ============================================================ */
.banner {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.banner-img-wrap {
  position: absolute;
  inset: 0;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.banner-img-char {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.18;
  width: 60%;
  left: auto;
  right: 0;
  mix-blend-mode: luminosity;
}

/* Radial darkening overlay */
.banner-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 90% 90% at center, transparent 0%, rgba(8, 8, 8, 0.5) 100%);
}

/* Top fade (nav area) */
.banner-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.9) 0%, transparent 100%);
}

/* Bottom fade into page */
.banner-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  z-index: 2;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* Release date badge */
.banner-release {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 105px;
  opacity: 0;
  animation: fadeUp 0.85s ease 0.45s forwards;
}

.rel-line {
  flex: 0 0 55px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red));
}
.rel-line-right {
  background: linear-gradient(to left, transparent, var(--red));
}

.rel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.rel-small {
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.rel-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.38em;
  color: var(--fg);
  text-shadow:
    0 0 20px var(--red-glow),
    0 0 45px rgba(204, 17, 17, 0.18);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: fadeUp 0.85s ease 1s forwards;
}

.scroll-hint.hidden {
  opacity: 0 !important;
  animation: none;
}

.scroll-label {
  font-size: 0.56rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.28);
}

.scroll-track {
  width: 1px;
  height: 48px;
  background: rgba(240, 240, 240, 0.1);
  position: relative;
  overflow: hidden;
}

.scroll-ball {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: scrollBall 1.65s ease-in-out infinite;
}

/* ===== BANNER CORRUPTION CRACK ===== */
.banner-crack {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 4;
  pointer-events: none;
}

.banner-crack svg {
  width: 100%;
  height: 100%;
  display: block;
}

.crack-main {
  animation: crackFlicker 5s ease-in-out infinite;
}

.crack-glow {
  animation: crackFlicker 5s ease-in-out infinite;
  animation-delay: 0.1s;
}

.crack-vein {
  animation: crackFlicker 5s ease-in-out infinite;
}
.crack-vein.v1 { animation-delay: 0.15s; }
.crack-vein.v2 { animation-delay: 0.3s;  }
.crack-vein.v3 { animation-delay: 0.05s; }
.crack-vein.v4 { animation-delay: 0.4s;  }
.crack-vein.v5 { animation-delay: 0.2s;  }
.crack-vein.v6 { animation-delay: 0.35s; }

@keyframes crackFlicker {
  0%   { opacity: 1;    }
  3%   { opacity: 0.45; }
  5%   { opacity: 0.95; }
  18%  { opacity: 1;    }
  44%  { opacity: 0.9;  }
  45%  { opacity: 0.25; }
  46%  { opacity: 1;    }
  72%  { opacity: 0.95; }
  73%  { opacity: 0.5;  }
  74%  { opacity: 1;    }
  100% { opacity: 1;    }
}

@keyframes scrollBall {
  0%   { top: -5px;  opacity: 1; }
  70%  { top: 48px;  opacity: 0.3; }
  100% { top: 48px;  opacity: 0; }
}

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


/* ============================================================
   COMMON SECTION STYLES
   ============================================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.8rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--fg);
}

.title-bar {
  width: 36px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  margin-top: 8px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 4.5rem 2rem;
  background: var(--bg2);
  border: 1px solid rgba(240, 240, 240, 0.055);
  border-radius: 2px;
  transition: border-color 0.35s ease;
}
.news-empty:hover { border-color: rgba(204, 17, 17, 0.18); }

.news-empty-bracket {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  color: rgba(240, 240, 240, 0.055);
  line-height: 1;
  user-select: none;
}

.news-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.news-empty-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.32em;
  color: rgba(240, 240, 240, 0.16);
}

.news-empty-sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.1);
}


/* ============================================================
   CHARACTERS SECTION
   ============================================================ */
.chars-section {
  padding: 6rem 0 8rem 0;
}

/* Carousel wrapper */
.chars-carousel {
  position: relative;
  display: flex;
  align-items: center;
}

/* Arrow buttons */
.char-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(204, 17, 17, 0.35);
  color: #f0f0f0;
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
}
.char-arrow:hover {
  background: rgba(204, 17, 17, 0.18);
  border-color: rgba(204, 17, 17, 0.7);
  color: #fff;
}
.char-arrow-prev { left: 1rem; }
.char-arrow-next { right: 1rem; }

/* Dot indicators */
.chars-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}
.chars-dot {
  width: 28px;
  height: 4px;
  background: rgba(240, 240, 240, 0.18);
  border: none;
  cursor: pointer;
  clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
  transition: background 0.2s;
  padding: 0;
}
.chars-dot.active {
  background: #CC1111;
}

/* Character card (full width) */
.char-card {
  position: relative;
  display: none;
  flex: 1;
  align-items: stretch;
  min-height: 540px;
  overflow: hidden;
  background: var(--bg2);
  border-top:    1px solid rgba(204, 17, 17, 0.12);
  border-bottom: 1px solid rgba(204, 17, 17, 0.12);
}
.char-card.active {
  display: flex;
  animation: cardFadeIn 0.35s ease;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- John Doe card overrides ---- */
.char-bg-radial-john {
  background: radial-gradient(ellipse 55% 90% at 22% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 65%);
}
.john-render-bg {
  position: absolute;
  inset: 0;
  background-image: url('Assets/johnrender.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left bottom;
  opacity: 0.1;
  mix-blend-mode: luminosity;
}
.char-img-glow-john {
  background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 65%);
}
.char-name-john { color: var(--fg); }
.char-name-tag-john {
  background: #7C3AED;
}
.details-btn-link-john {
  color: #9B6FEF;
  border-color: rgba(124,58,237,0.4);
}
.details-btn-link-john:hover {
  background: rgba(124,58,237,0.12);
  color: #B89EF4;
}

/* ---- Abstract background ---- */
.char-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.char-bg-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 22% 100%, rgba(204, 17, 17, 0.09) 0%, transparent 65%);
}

.char-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 240, 240, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 240, 240, 0.018) 1px, transparent 1px);
  background-size: 50px 50px;
}

.char-shard {
  position: absolute;
}

.char-shard-a {
  width: 280px;
  height: 380px;
  background: rgba(204, 17, 17, 0.038);
  clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
  top: 0;
  left: 40px;
}

.char-shard-b {
  width: 200px;
  height: 240px;
  background: rgba(204, 17, 17, 0.022);
  clip-path: polygon(0% 15%, 100% 0%, 100% 85%, 0% 100%);
  bottom: 0;
  left: 130px;
}

.char-shard-c {
  width: 120px;
  height: 540px;
  background: rgba(240, 240, 240, 0.012);
  clip-path: polygon(28% 0%, 72% 0%, 100% 100%, 0% 100%);
  top: 0;
  right: 42%;
}

.char-shard-d {
  width: 60px;
  height: 200px;
  background: rgba(204, 17, 17, 0.025);
  clip-path: polygon(0% 0%, 100% 20%, 80% 100%, 20% 80%);
  top: 60px;
  right: 38%;
  opacity: 0.6;
}

/* ---- Image column ---- */
.char-img-col {
  position: relative;
  flex: 0 0 43%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem 1.5rem;
  z-index: 1;
}

.char-img-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(204, 17, 17, 0.2) 0%, transparent 65%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.char-img {
  position: relative;
  z-index: 1;
  height: 460px;
  width: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 38px rgba(0, 0, 0, 0.92))
    drop-shadow(0 0 16px rgba(204, 17, 17, 0.12));
  transition:
    transform 0.5s var(--ease-out),
    filter   0.5s var(--ease-out);
  transform-origin: bottom center;
}

.char-img:hover {
  transform: translateY(-12px) scale(1.03);
  filter:
    drop-shadow(0 28px 50px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 28px rgba(204, 17, 17, 0.3));
}

.char-credit {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.18);
}
.char-credit strong {
  color: rgba(240, 240, 240, 0.4);
  font-weight: 600;
}

/* ---- Info column ---- */
.char-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 4rem 3.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.char-role-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.char-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.8rem;
  letter-spacing: 0.04em;
  line-height: 0.93;
  color: var(--fg);
  margin-bottom: 12px;
}

.char-name-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 11px;
  margin-bottom: 20px;
}

.char-desc {
  font-size: 0.87rem;
  line-height: 1.82;
  color: var(--fg-dim);
  max-width: 490px;
  margin-bottom: 2.2rem;
}

.char-attrs {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

.attr {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.attr-key {
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.attr-val {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--fg);
}

.attr-div {
  width: 1px;
  height: 32px;
  background: rgba(240, 240, 240, 0.1);
}

/* ---- Tooltip + Details button ---- */
.tooltip-wrap {
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.details-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 28px;
  color: rgba(240, 240, 240, 0.3);
  border: 1px solid rgba(204, 17, 17, 0.22);
  background: rgba(204, 17, 17, 0.06);
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;        /* button itself non-interactive */
  user-select: none;
}

/* Parent wrapper still receives hover */
.tooltip-box {
  position: absolute;
  bottom: calc(100% + 11px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  white-space: nowrap;
  background: #111;
  border: 1px solid var(--red);
  box-shadow: 0 0 18px rgba(204, 17, 17, 0.28), 0 6px 24px rgba(0, 0, 0, 0.85);
  color: var(--fg-dim);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 7px 16px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--red);
}

.tooltip-wrap:hover .tooltip-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(204, 17, 17, 0.12);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg2);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(204, 17, 17, 0.25));
  opacity: 0.85;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.footer-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(204, 17, 17, 0.5));
}

.footer-logo-maxster {
  height: 44px;
}

.footer-logo-div {
  width: 1px;
  height: 36px;
  background: rgba(240, 240, 240, 0.1);
}

.footer-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.22);
}

.footer-sep {
  color: var(--red);
  opacity: 0.5;
}

/* Maxster corner decoration */
.maxster-corner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

.maxster-corner .corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(204, 17, 17, 0.55);
  border-style: solid;
  transition: border-color 0.3s ease;
}
.maxster-corner:hover .corner { border-color: rgba(204, 17, 17, 0.9); }

.maxster-corner .c-tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.maxster-corner .c-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.maxster-corner .c-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.maxster-corner .c-br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

/* View Details — active link state */
.details-btn-link {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 28px;
  color: var(--fg);
  border: 1px solid var(--red);
  background: rgba(204, 17, 17, 0.12);
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.details-btn-link:hover {
  background: rgba(204, 17, 17, 0.25);
  box-shadow: 0 0 18px rgba(204, 17, 17, 0.35);
}
