/* Cyberpunk / Blade Runner palette */
:root {
  --bg: #0d0d22;
  --bg-card: #0f0f2a;
  --bg-footer: #08081a;
  --neon-blue: #00d4ff;
  --neon-purple: #b945ff;
  --neon-magenta: #ff00ff;
  --neon-pink: #ff2d7c;
  --text: #f0f0f8;
  --muted: #8a8aaa;
  --glow-blue: 0 0 20px rgba(0, 212, 255, 0.4);
  --glow-purple: 0 0 20px rgba(185, 69, 255, 0.4);
}

@font-face {
  font-family: 'KH Interference';
  src: url('fonts/KHInterference-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KH Interference';
  src: url('fonts/KHInterference-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KH Interference';
  src: url('fonts/KHInterference-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Optimus Princeps';
  src: url('fonts/OptimusPrincepsSemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Mode-based visibility */
body.mode-gaming .socials-only { display: none; }
body.mode-socials .gaming-only { display: none; }

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

html {
  background: var(--bg-footer);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Ambient gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(185, 69, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(255, 45, 124, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* All content above the gradient */
body > * {
  position: relative;
  z-index: 1;
}

/* Live Banner */
.live-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, #1a0a2e, #2d1040);
  border-bottom: 1px solid rgba(255, 0, 80, 0.3);
  padding: 8px 0;
  text-align: center;
  animation: bannerPulse 3s ease-in-out infinite;
}

.live-banner.hidden {
  display: none;
}

.live-banner a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff0040;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px #ff0040;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes bannerPulse {
  0%, 100% { border-bottom-color: rgba(255, 0, 80, 0.3); }
  50% { border-bottom-color: rgba(255, 0, 80, 0.6); }
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 40px;
  position: relative;
  z-index: 10;
}

.nav-modes {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: #fff;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.nav-util {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.nav-util svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.nav-util:hover {
  color: var(--neon-blue);
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.05);
}

.nav-util:hover svg {
  opacity: 1;
}

.nav-util.active {
  color: var(--neon-blue);
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
}

.nav-util.active svg {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 40px 40px;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'KH Interference', sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
}

.hero-verus {
  font-weight: 400;
}

.hero h1 .hero-gaming {
  font-weight: 300;
  font-size: 0.75em;
  position: relative;
  top: -0.08em;
}

.tagline {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 16px;
}

.subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

.subtitle a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.subtitle a:hover {
  color: #fff;
}

/* Hero subtitle (mode-aware) */
.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}

.hero-subtitle a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.2s;
}

/* Discord Section (primary CTA) */
.discord-section {
  padding: 40px 40px;
  text-align: center;
}

.discord-section h2 {
  font-family: 'KH Interference', sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 12px;
}

.discord-section p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #5865f2;
  border: 1px solid rgba(88, 101, 242, 0.6);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s;
}

.discord-btn svg {
  width: 22px;
  height: 22px;
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
  background: #4752c4;
}

/* Watch Section (Twitch + YouTube) */
.watch-section {
  padding: 32px 40px;
  text-align: center;
}

.watch-section h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 32px;
}

.watch-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

/* Socials */
.socials {
  padding: 32px 40px;
  text-align: center;
}

.socials h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 32px;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card svg {
  width: 20px;
  height: 20px;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon-purple);
  box-shadow: var(--glow-purple);
}

.social-card.twitch:hover { border-color: #9146ff; box-shadow: 0 0 20px rgba(145, 70, 255, 0.4); }
.social-card.youtube:hover { border-color: #ff0000; box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
.social-card.discord:hover { border-color: #5865f2; box-shadow: 0 0 20px rgba(88, 101, 242, 0.4); }
.social-card.instagram:hover { border-color: #e1306c; box-shadow: 0 0 20px rgba(225, 48, 108, 0.4); }
.social-card.tiktok:hover { border-color: #00f2ea; box-shadow: 0 0 20px rgba(0, 242, 234, 0.4); }
.social-card.x-twitter:hover { border-color: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }

/* Stream Embed */
.stream-section {
  padding: 20px 40px 40px;
  text-align: center;
}

.stream-section.hidden {
  display: none;
}

.stream-section h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-purple);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.stream-section h2::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ff0040;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px #ff0040;
}

.stream-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(185, 69, 255, 0.3);
  box-shadow: 0 0 30px rgba(185, 69, 255, 0.15);
}

.stream-container iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Game Servers */
.servers {
  padding: 40px 40px;
  text-align: center;
}

.servers h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 32px;
}

.server-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px 32px;
  min-width: 260px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 1), 0 0 12px rgba(0, 0, 0, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}

.server-card.palworld-card,
.server-card.rust-card {
  position: relative;
  overflow: hidden;
}

.server-card.palworld-card::before,
.server-card.rust-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.server-card.palworld-card::after,
.server-card.rust-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.7);
}

.server-card.palworld-card::before {
  background-image: url('/images/games/palworld.jpg');
  background-position: center center;
}

.server-card.rust-card::before {
  background-image: url('/images/games/rust.jpg');
  background-position: center bottom;
}

.server-card.palworld-card > *,
.server-card.rust-card > * {
  position: relative;
  z-index: 1;
}

.server-card.palworld-card:hover {
  border-color: rgba(73, 142, 185, 0.4);
  box-shadow: 0 0 20px rgba(73, 142, 185, 0.4);
}

.server-card.rust-card:hover {
  border-color: rgba(196, 69, 42, 0.4);
  box-shadow: 0 0 20px rgba(196, 69, 42, 0.4);
}

.server-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.platform-icons img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
  display: block;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #4a8ff7;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s;
}

.join-btn:hover {
  background: #3a7de6;
  box-shadow: 0 0 12px rgba(74, 143, 247, 0.4);
}

.join-btn.hidden {
  display: none;
}

.server-connect {
  font-size: 12px;
  color: #bbb;
  font-family: monospace;
  margin-bottom: 12px;
}

.server-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #bbb;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
}

.status-dot.online {
  background: #4caf50;
  box-shadow: 0 0 6px #4caf50, 0 1px 4px rgba(0, 0, 0, 0.8);
}

.status-dot.offline {
  background: #555;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.portal-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(185, 69, 255, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: var(--neon-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.portal-btn:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(185, 69, 255, 0.2));
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

/* Footer */
footer {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

footer p {
  margin-bottom: 6px;
}

footer a {
  color: var(--neon-blue);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .top-nav { padding: 12px 20px; }
  .nav-utils { display: none; }
  .nav-link { font-size: 12px; padding: 6px 14px; }
  .hero { padding: 60px 20px 40px; }
  .discord-section, .watch-section, .socials, .servers, .stream-section { padding: 40px 20px; }
  .social-grid, .watch-grid { gap: 10px; }
  .social-card { padding: 12px 18px; font-size: 13px; }
  .discord-btn { padding: 14px 24px; font-size: 14px; }
}
