/* ─────────────────────────────────────────────
   THEFOOTBALL.LIVE - Sound & Notification Styles
   ───────────────────────────────────────────── */

/* ─── Goal Flash Animation ─── */
.goal-flash {
    animation: goalFlash 0.6s ease;
}

@keyframes goalFlash {
    0%, 100% { 
        background-color: transparent; 
    }
    20% { 
        background-color: rgba(255, 215, 0, 0.15); 
    }
    40% { 
        background-color: rgba(255, 215, 0, 0.05); 
    }
}

/* ─── Goal Notification ─── */
.goal-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 2px solid #FFD700;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90%;
}

.goal-notification .goal-icon {
    font-size: 28px;
    animation: bounceGoal 0.6s ease;
}

.goal-notification .goal-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.goal-notification .goal-team {
    font-size: 13px;
    color: var(--text-secondary);
}

.goal-notification .goal-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.goal-notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

/* ─── Animations ─── */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
}

@keyframes bounceGoal {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    30% { 
        transform: scale(1.4) rotate(-15deg); 
    }
    60% { 
        transform: scale(0.9) rotate(5deg); 
    }
    80% { 
        transform: scale(1.1) rotate(-5deg); 
    }
}

/* ─── Sound Toggle Button ─── */
.nav-sound-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-sound-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-sound-btn.muted {
    opacity: 0.5;
}

.nav-sound-btn.muted:hover {
    opacity: 1;
}

/* ─── Sound Notification on Match Card ─── */
.match-card.goal-scored {
    border-left: 3px solid #FFD700;
    transition: border-color 0.3s;
}

/* ─── Mobile Sound ─── */
@media (max-width: 768px) {
    .goal-notification {
        top: 10px;
        padding: 10px 16px;
        gap: 10px;
        max-width: 95%;
    }
    
    .goal-notification .goal-icon {
        font-size: 24px;
    }
    
    .goal-notification .goal-text {
        font-size: 14px;
    }
    
    .goal-notification .goal-team {
        font-size: 12px;
    }
}

/* ─── Dark Theme Overrides ─── */
[data-theme="night"] .goal-notification {
    background: #1A1A1A;
    border-color: #FFD700;
}

[data-theme="night"] .goal-notification .goal-text {
    color: #FFFFFF;
}

/* ─── Light Theme Overrides ─── */
[data-theme="day"] .goal-notification {
    background: #FFFFFF;
    border-color: #FFB300;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="day"] .goal-notification .goal-text {
    color: #1A1A1A;
}