/* Goal Celebration Styles */
.goal-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, #00ff87 0%, #37003c 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    min-width: 300px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.goal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.goal-icon {
    font-size: 2.5rem;
    animation: goalBounce 0.6s ease-out;
}

.goal-text {
    text-align: left;
}

.goal-team {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.goal-score {
    font-size: 1.4rem;
    margin: 5px 0;
    color: #00ff87;
    font-weight: 800;
}

.goal-time {
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
}

/* Goal celebration animation for match cards */
.goal-celebration {
    animation: goalCelebration 2s ease-out;
    position: relative;
    overflow: hidden;
}

/* Confetti pieces */
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    animation: confettiFall 2s ease-out forwards;
    z-index: 100;
}

/* Animations */
@keyframes goalBounce {
    0% { transform: scale(0.3) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

@keyframes goalCelebration {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 135, 0.7); }
    25% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 135, 0.7); }
    50% { transform: scale(1.02); box-shadow: 0 0 60px rgba(0, 255, 135, 0.5); }
    75% { transform: scale(1.03); box-shadow: 0 0 30px rgba(0, 255, 135, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 135, 0); }
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* Enhanced score animations for goals */
.score.goal-scored {
    animation: goalScoreFlash 1s ease-out;
    color: #00ff87 !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.8);
}

@keyframes goalScoreFlash {
    0% { 
        transform: scale(1);
        background-color: transparent;
    }
    25% { 
        transform: scale(1.3);
        background-color: rgba(0, 255, 135, 0.3);
        border-radius: 50%;
    }
    50% { 
        transform: scale(1.5);
        background-color: rgba(0, 255, 135, 0.5);
    }
    75% { 
        transform: scale(1.2);
        background-color: rgba(0, 255, 135, 0.2);
    }
    100% { 
        transform: scale(1);
        background-color: transparent;
    }
}

/* Live match pulse effect */
.live-status {
    position: relative;
}

.live-status::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.3); }
    100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .goal-notification {
        min-width: 280px;
        padding: 12px 20px;
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .goal-content {
        gap: 12px;
    }
    
    .goal-icon {
        font-size: 2rem;
    }
    
    .goal-team {
        font-size: 1.1rem;
    }
    
    .goal-score {
        font-size: 1.2rem;
    }
    
    .confetti-piece {
        width: 6px;
        height: 6px;
    }
}

/* Update indicator enhancement for goal mode */
.live-update-indicator.goal-mode {
    background: linear-gradient(45deg, #ff6b6b, #00ff87);
    animation: goalModeIndicator 1s ease-in-out infinite alternate;
}

@keyframes goalModeIndicator {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}