/* --- VARIABLES (Müşteri verisi gelince burayı update edeceğiz) --- */
:root {
    --max-container-width: 100%; /* Şimdilik full width */
    --breakpoint-tablet: 1024px;
    --breakpoint-mobile: 768px;
    
    /* Cravis Neon & Exonbet DNA */
    --bg-deep-night: #050a11;
    --bg-navy-gradient: linear-gradient(135deg, #050a11 0%, #0a192f 100%);
    --neon-cyan: #00f3ff;
    --pure-white: #ffffff;
    --dark-petrol: #023c4a;
    --glass-bg: rgba(10, 25, 47, 0.45);
    --glass-border: rgba(0, 243, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Daha sonra custom font ekleyebiliriz */
}

body {
    background: var(--bg-deep-night);
    color: var(--pure-white);
    overflow-x: hidden;
}

/* Container artık grid-row kullanmıyor, sadece 2 sütun */
.cravis-container {
    max-width: var(--max-container-width);
    margin: 0 auto;
    height: 100vh;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 15px;
    padding: 15px;
    background: var(--bg-navy-gradient);
}

/* YENİ EKLENEN SOL SÜTUN KAPSAYICISI */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
    height: 100%;
}

/* Video alanı artık flex olarak esniyor */
.broadcast-section {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--dark-petrol);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.05);
    min-height: 0;
}

/* Ticker grid'den kurtuldu, video altında sabit kaldı */
.ticker-section {
    display: flex;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dark-petrol);
    height: 50px;
    min-height: 50px;
    flex-shrink: 0;
}

/* Sağ panel boydan boya uzuyor */
.analytics-section {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

/* --- BROADCAST SECTION --- */
.broadcast-section {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--dark-petrol);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.05);
    min-height: 0;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.countdown-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- ANALYTICS SECTION (Glassmorphism) --- */
.analytics-section {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0; 
    overflow: hidden;
}

.neon-heading {
    color: var(--pure-white);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--dark-petrol);
    padding-bottom: 10px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 16px;
    border-left: 3px solid var(--neon-cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--dark-petrol);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.neon-cyan-text {
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.big-number {
    font-size: 2.5rem;
    color: var(--pure-white);
    text-shadow: 0 0 15px var(--neon-cyan);
}

/* --- TICKER SECTION --- */
.ticker-section {
    grid-column: 1 / 2; 
    grid-row: 2 / 3;
    display: flex;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dark-petrol);
    height: 50px; 
    min-height: 50px;
    flex-shrink: 0;
}

.ticker-label {
    background: var(--neon-cyan);
    color: #000;
    font-weight: bold;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 5px 0 15px rgba(0,243,255,0.4);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-move {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    padding: 0 30px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- RESPONSIVE / MOBILE --- */
@media (max-width: 768px) {
    .cravis-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 50px;
        height: auto;
    }
    .broadcast-section {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        height: 250px; /* Mobile video height */
    }
    .analytics-section {
    grid-row: 1 / 3; 
    
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0; 
    overflow: hidden; 
}
    .ticker-section {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
}
/* --- NEW ANIMATED ANALYTICS ELEMENTS --- */

/* Live Alert Box */
.live-alert {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-cyan);
    font-weight: bold;
    letter-spacing: 1px;
}

.pulsing-glow {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 243, 255, 0.2); }
    100% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.8); }
}

/* Possession Bar */
.possession-bar {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
}

.home-poss {
    background: var(--neon-cyan);
    color: var(--bg-deep-night);
    transition: width 0.5s ease;
}

.away-poss {
    background: var(--dark-petrol);
    color: var(--pure-white);
    transition: width 0.5s ease;
}

/* Momentum Chart (Equalizer) */
.momentum-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 10px;
}

.momentum-chart .bar {
    flex: 1;
    background: var(--neon-cyan);
    border-radius: 4px 4px 0 0;
    animation: bounceBar 1.5s infinite alternate ease-in-out;
    opacity: 0.8;
}

/* Çubuklara farklı gecikmeler vererek dalga efekti yaratıyoruz */
.momentum-chart .bar-1 { height: 40%; animation-delay: 0.1s; }
.momentum-chart .bar-2 { height: 60%; animation-delay: 0.2s; }
.momentum-chart .bar-3 { height: 90%; animation-delay: 0.3s; background: #fff; box-shadow: 0 0 10px #fff; }
.momentum-chart .bar-4 { height: 50%; animation-delay: 0.4s; }
.momentum-chart .bar-5 { height: 70%; animation-delay: 0.5s; }
.momentum-chart .bar-6 { height: 30%; animation-delay: 0.6s; }
.momentum-chart .bar-7 { height: 80%; animation-delay: 0.7s; }

@keyframes bounceBar {
    0% { transform: scaleY(0.8); }
    100% { transform: scaleY(1.2); }
}
/* --- FUTURISTIC TACTICAL MAP --- */
/* --- FUTURISTIC TACTICAL MAP --- */
.tactical-map-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 150px;
    margin-top: 20px;
    background: rgba(2, 60, 74, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#neonTactics {
    z-index: 2;
    width: 100%;
    height: 100%;
}


/* --- 3D CYBER GRID (Derinlik Katmanı) --- */
.cyber-grid {
    position: absolute;
    bottom: -20%;
    left: -50%;
    width: 200%;
    height: 120%;
    
    /* Classic digital analiz grid yapısı (Neon yeşil/turkuaz karışımı) */
    background-image: 
        linear-gradient(rgba(0, 255, 170, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    
    /* 3D Derinlik (Perspective) ve zemine yatırma (rotateX) */
    transform: perspective(250px) rotateX(65deg);
    z-index: 1;
    pointer-events: none; /* Mouse etkileşimlerini engellemek için */
    
    /* Ufuk çizgisine doğru karanlıkta kaybolma efekti (Masking) */
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 80%);
    
    /* Grid'in yavaşça oyuncuya doğru akması animasyonu */
    animation: gridFlow 2s linear infinite;
}

@keyframes gridFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; /* background-size ile aynı olmalı ki sonsuz döngü hissi versin */ }
}
/* YouTube Player Cravis Neon Style */
#player {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.3); /* O meşhur Cyan border */
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15); /* Hafif cyan glow */
    pointer-events: none; /* Müşterinin videoya tıklayıp YouTube'a gitmesini veya durdurmasını engeller */
}
.analytics-section {
    min-width: 280px; /* Panelin büzüşmesini engeller */
    max-width: 400px; /* Panelin aşırı genişleyip videoyu itmesini engeller */
}
.neon-heading {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Yazı çok uzunsa sonuna ... koyar, paneli patlatmaz */
}