/* ============================================================
   Cubic Roleplay — styles.css
   GTA V HUD aesthetic: sharp corners, scanline texture,
   electric cyan/magenta on deep navy-black. No pill buttons.
   ============================================================ */

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

:root {
  --bg:       #080810;
  --bg-2:     #0e0e1a;
  --panel:    #121220;
  --ink:      #e8e8f0;
  --muted:    #7a7a96;
  --magenta:  #ff2b8f;
  --cyan:     #00d4ff;
  --yellow:   #f5c518;
  --tebex:    #f26822;
  --line:     rgba(255,255,255,0.07);
  --line-2:   rgba(255,255,255,0.12);
  --maxw:     980px;

  /* Diagonal clip — shared by all primary CTA buttons */
  --clip-btn: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scanline overlay — subtle GTA loading screen texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   NAV
   ============================================================ */
/* ============================================================
   FIXED FLOATING NAV — invisible bar, button only
   ============================================================ */
.floatnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  padding: 18px 28px;
  pointer-events: none; /* let clicks through the empty space */
}
.floatnav .nav-link {
  pointer-events: all; /* only the link itself is clickable */
}

/* Sharp nav link — no pill */
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ============================================================
   HERO — Interactive canvas + parallax
   ============================================================ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  /* GTA background image — subtle, behind all overlays */
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Dark vignette over the bg image so text stays readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.72);
  z-index: 0;
  pointer-events: none;
}

/* Angled background glow */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,43,143,0.10) 0%, transparent 45%),
    linear-gradient(225deg, rgba(0,212,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Canvas sits above vignette, below colour overlays */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Parallax grid bg */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 24px;
  text-align: center;
}

/* Logo with parallax */
.logo {
  width: min(180px, 50%);
  height: auto;
  will-change: transform;
  filter: drop-shadow(0 0 28px rgba(0, 212, 255, 0.25));
  display: block;
  margin: 0 auto;
}

.tagline {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  margin-top: 10px;
  color: var(--ink);
}

.tagline-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px auto 0;
}
.tagline-rule span {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}
.tagline-rule em {
  font-style: normal;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
}

.subtag {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.cta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

/* ============================================================
   CTA BUTTONS — unified diagonal design
   ============================================================ */

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: transform 0.15s, background 0.2s, color 0.2s, filter 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
}
.cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Discord — blurple */
.cta-discord {
  background: #5865F2;
  color: #fff;
}
.cta-discord:hover {
  background: #4752c4;
  filter: drop-shadow(0 4px 16px rgba(88,101,242,0.5));
}

/* Tebex — orange */
.cta-tebex {
  background: var(--tebex);
  color: #fff;
}
.cta-tebex:hover {
  background: #d95d1e;
  filter: drop-shadow(0 4px 16px rgba(242,104,34,0.5));
}

/* Ghost / Watch Live — cyan outline, diagonal */
.cta-ghost {
  background: transparent;
  color: var(--cyan);
  /* Outline achieved with inset box-shadow — clip-path clips border, so we fake it */
  box-shadow: inset 0 0 0 1px rgba(0,212,255,0.45);
  padding: 12px 26px; /* 1px less to compensate shadow */
}
.cta-ghost:hover {
  background: rgba(0,212,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(0,212,255,0.9);
  filter: drop-shadow(0 4px 16px rgba(0,212,255,0.2));
}

/* Keep legacy classes so final-cta discord image button still works */
.discord-btn {
  display: inline-block;
  transition: transform 0.15s, filter 0.15s;
}
.discord-btn img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
}
.discord-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 20px rgba(88,101,242,0.45));
}

/* Ghost button for non-CTA uses (back link, etc.) */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid rgba(0,212,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ghost-btn:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.06);
  color: var(--cyan);
}
.ghost-btn.back {
  color: var(--muted);
  border-color: var(--line-2);
  font-size: 0.8rem;
}
.ghost-btn.back:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.join-note {
  display: none;
}
.join-note strong { color: var(--ink); }

/* ============================================================
   FEATURE STRIP
   ============================================================ */
.feature-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.feature-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feature-item {
  padding: 14px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.feature-item:last-child { border-right: none; }
.feature-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.feature-value {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cyan);
}

/* ============================================================
   MAIN SECTIONS
   ============================================================ */
main { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px; }

.intro { margin-bottom: 70px; }

.section-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  display: block;
  opacity: 0.8;
}

h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

h2.ruled {
  padding-left: 16px;
  border-left: 3px solid var(--magenta);
}

.intro p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  line-height: 1.75;
}
.intro strong { color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  margin-bottom: 10px;
  padding: 0 22px;
  transition: border-left-color 0.2s;
}
.faq-item[open] {
  border-left-color: var(--cyan);
}
.faq-item summary {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 16px 30px 16px 0;
  list-style: none;
  position: relative;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  color: var(--cyan);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  padding-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item strong { color: var(--ink); }

/* Smooth open/close animation wrapper */
.faq-inner {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease;
}
.faq-item[open] .faq-inner {
  max-height: 300px;
  opacity: 1;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  margin-top: 70px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--magenta);
  padding: 56px 24px;
}
.final-cta h2 {
  display: block;
  padding-left: 0;
  border-left: none;
  margin-bottom: 12px;
}
.final-cta p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* ============================================================
   STREAMERS PAGE — cleaned up
   ============================================================ */
.streamers-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.streamers-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.streamers-head-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.streamers-logo {
  width: min(56px, 14%);
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.25));
}

.streamers-head-text {
  text-align: left;
}

.streamers-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--ink);
  margin-bottom: 2px;
  display: block;
  padding-left: 0;
  border-left: none;
  line-height: 1.1;
}

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

.streamers-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

/* Refresh button icon spin */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.refresh-btn svg { width: 14px; height: 14px; }
.refresh-btn.spinning .refresh-icon {
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.platform-filters {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.platform-filters-inner {
  display: inline-flex;
  border: 1px solid var(--line-2);
}
.filter-chip {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  padding: 8px 22px;
  cursor: pointer;
  border: none;
  border-right: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.filter-chip:last-child { border-right: none; }
.filter-chip.active,
.filter-chip:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.04);
}
.filter-chip.active { color: var(--cyan); }

.stream-status {
  text-align: center;
  color: var(--muted);
  padding: 40px 24px;
  font-size: 0.9rem;
}

.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 80px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.stream-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 2px solid transparent;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-bottom-color 0.2s, transform 0.2s;
}
.stream-card:hover {
  transform: translateY(-3px);
  border-bottom-color: var(--cyan);
}
.thumb-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--magenta);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 3px 8px;
  text-transform: uppercase;
}
.platform-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-tag img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}
.viewers {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
}
.card-body { padding: 14px 16px; }
.card-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-streamer {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 5px;
}

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

/* ============================================================
   ACCENT COLOUR HELPER
   ============================================================ */
.accent { color: var(--cyan); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .topnav { padding: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-btn { justify-content: center; }
  .feature-strip-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--line); }
  .feature-item:last-child { border-bottom: none; }
  .platform-filters { padding: 0 16px 20px; }
  .platform-filters-inner { display: flex; flex-wrap: wrap; border: none; gap: 6px; }
  .filter-chip { border: 1px solid var(--line-2); }
  .streamers-nav { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .logo, .hero-bg, .hero-canvas { transition: none !important; transform: none !important; animation: none !important; }
}
/* ============================================================
   SERVER STATUS STRIP
   ============================================================ */
.status-strip {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  padding: 0;
}

.status-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Online/offline dot + label */
.status-dot-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 110px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.status-dot.dot-online {
  background: #00e676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.7);
  animation: pulse-green 2s ease-in-out infinite;
}

.status-dot.dot-offline {
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(255, 43, 143, 0.7);
}

.status-dot.dot-unknown {
  background: var(--muted);
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 230, 118, 0.5); }
  50%       { box-shadow: 0 0 14px rgba(0, 230, 118, 0.9); }
}

.status-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.status-label.label-online  { color: #00e676; }
.status-label.label-offline { color: var(--magenta); }

/* Individual stat cells */
.status-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.status-stat-label {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
}

.status-stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 1px;
}

/* ============================================================
   STAFF ALERT BANNER
   ============================================================ */
.status-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: linear-gradient(90deg, #1a0008, #200010);
  border-bottom: 2px solid var(--magenta);
  box-shadow: 0 4px 32px rgba(255, 43, 143, 0.25);
  animation: alert-slide-down 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes alert-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.status-alert[hidden] { display: none; }

.status-alert-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-alert-icon {
  font-size: 1.1rem;
  color: var(--magenta);
  flex-shrink: 0;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.status-alert-body {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
}

.status-alert-author {
  color: var(--magenta);
  font-weight: 600;
  margin-right: 4px;
}

.status-alert-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color 0.2s;
  line-height: 1;
}

.status-alert-close:hover { color: var(--ink); }

/* Push floatnav down when alert is visible */
.status-alert:not([hidden]) ~ .floatnav,
body:has(.status-alert:not([hidden])) .floatnav {
  top: 48px;
}

@media (max-width: 600px) {
  .status-strip-inner {
    gap: 18px;
    padding: 12px 16px;
  }
  .status-stat-value {
    font-size: 0.85rem;
  }
}