@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700;800&family=Orbitron:wght@600;800;900&display=swap');

:root {
  --kazen-cyan: #00f2fe;
  --kazen-blue: #4facfe;
  --kazen-purple: #9b51e0;
  --kazen-pink: #ff2a7a;
  --kazen-gold: #ffd200;
  --bg-main: #050713;
  --bg-glass: rgba(11, 16, 32, 0.78);
  --border-glass: rgba(255, 255, 255, 0.12);
  --font-logo: 'Orbitron', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: #f8fafc;
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #050713;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f2fe, #9b51e0);
  border-radius: 4px;
}

/* Typography */
.font-logo { font-family: var(--font-logo); }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* ==========================================
   1. DİNAMİK ARKA PLAN (ŞELALE AKIŞI)
   ========================================== */
#bg-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #050713;
}

#bg-stream-container {
  position: absolute;
  top: -15%;
  left: -5%;
  width: 110%;
  height: 130%;
  display: flex;
  justify-content: center;
  gap: 28px;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
}

.game-stream-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 270px;
  min-width: 270px;
  flex-shrink: 0;
  will-change: transform;
}

.stream-game-card {
  position: relative;
  width: 100%;
  height: 390px;
  min-height: 390px;
  border-radius: 20px;
  overflow: hidden;
  background: #0d1224;
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 242, 254, 0.2);
  flex-shrink: 0;
}

.stream-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.1);
  display: block;
}

.stream-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 19, 0.95) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.stream-tag {
  font-family: var(--font-logo);
  font-size: 9px;
  color: var(--kazen-cyan);
  letter-spacing: 1.5px;
  font-weight: 800;
}

.stream-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 2px;
}

.stream-rating {
  font-size: 11px;
  font-weight: 700;
  color: #ffd200;
  margin-top: 4px;
}

/* Şeffaf ve Ferah Arka Plan Maskesi */
.stream-dark-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 30%, rgba(5, 7, 19, 0.45) 0%, rgba(5, 7, 19, 0.8) 75%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ==========================================
   2. ÖN PLAN VE LÜKS CAM PANEL TASARIMI
   ========================================== */
#foreground-content {
  position: relative;
  z-index: 10;
}

.glass-nav {
  background: rgba(5, 7, 19, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.6);
  box-shadow: 0 20px 45px -15px rgba(0, 242, 254, 0.35), 0 0 25px rgba(155, 81, 224, 0.2);
}

.text-kazen-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 45%, #9b51e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-kazen-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9b51e0 100%);
  color: #050713;
  font-weight: 800;
  border: none;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
  transition: all 0.25s ease;
}

.btn-kazen-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.85);
  color: #000;
}

.btn-kazen-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.btn-kazen-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #00f2fe;
  color: #00f2fe;
  transform: translateY(-2px);
}

/* Sound Wave Equalizer */
.sound-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  background-color: var(--kazen-cyan);
  margin: 0 1.5px;
  border-radius: 2px;
  animation: bounce-wave 0.8s infinite alternate ease-in-out;
}
.sound-bar:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.sound-bar:nth-child(3) { animation-delay: 0.3s; height: 10px; }
.sound-bar:nth-child(4) { animation-delay: 0.45s; height: 14px; }

@keyframes bounce-wave {
  0% { transform: scaleY(0.3); opacity: 0.4; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

.sound-bar.paused {
  animation-play-state: paused;
  transform: scaleY(0.3);
  opacity: 0.4;
}

/* Live Community Chat Simulator Drawer */
#chat-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
