/* =======================================================
   KMB CANLI MAÇ — FUTBOL SAHASI VE SİMÜLASYON ANİMASYONLARI
   (PITCH.CSS)
======================================================= */

.pitch-container {
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at center, #1e3a29 0%, #102419 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0,0,0,0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    user-select: none;
}

/* Saha Çim Çizgileri */
.football-pitch {
    width: 100%;
    height: 380px;
    position: relative;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 40px,
        rgba(0, 0, 0, 0.03) 40px,
        rgba(0, 0, 0, 0.03) 80px
    );
}

/* SVG Saha Çizgileri Katmanı */
.pitch-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Top Elemanı */
.pitch-ball {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #d1d5db 60%, #4b5563 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    z-index: 20;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.pitch-ball::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    opacity: 0.6;
}

/* Hücum ve Oyuncu Belirteçleri */
.pitch-player {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 15;
    transition: all 0.8s ease;
}

/* Hücum Yönü Vurgusu (Attack Waves) */
.attack-wave-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
}

.attack-wave-overlay.home-attack {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(239, 68, 68, 0.25) 100%);
}

.attack-wave-overlay.away-attack {
    left: 0;
    background: linear-gradient(270deg, transparent 0%, rgba(59, 130, 246, 0.25) 100%);
}

.attack-wave-overlay.active {
    opacity: 1;
    animation: attackPulse 1.2s infinite alternate ease-in-out;
}

@keyframes attackPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* Tehlikeli Atak Vurgusu */
.danger-box-highlight {
    position: absolute;
    width: 14%;
    height: 48%;
    top: 26%;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 8;
    transition: opacity 0.3s ease;
}

.danger-box-highlight.active {
    opacity: 1;
    animation: dangerBoxFlash 0.8s infinite alternate;
}

@keyframes dangerBoxFlash {
    0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
    100% { box-shadow: 0 0 35px rgba(239, 68, 68, 0.9); }
}

/* Saha Durum Başlığı (Action HUD) */
.pitch-action-hud {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 25;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    color: #fff;
    transition: all 0.3s ease;
}

.action-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* =======================================================
   BÜYÜK GOL KUTLAMA OVERLAY (GOAL EXPLOSION)
======================================================= */
.goal-celebration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.goal-celebration-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.goal-banner-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00e676, #00b0ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goalTextShake 0.6s infinite alternate;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 230, 118, 0.4);
}

@keyframes goalTextShake {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.goal-banner-team {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.goal-banner-player {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .football-pitch {
        height: 280px;
    }
    .goal-banner-title {
        font-size: 2.25rem;
    }
    .goal-banner-team {
        font-size: 1.1rem;
    }
}
