/* Match Countdown Styles */
.match-countdown {
    margin-top: 8px;
    padding: 0;
}

.countdown-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.countdown-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.countdown-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.countdown-local-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #6c757d;
    padding-top: 4px;
    border-top: 1px solid #e9ecef;
}

.countdown-local-time i {
    font-size: 0.6rem;
    opacity: 0.7;
}

.countdown-live {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .countdown-wrapper {
        padding: 6px 8px;
    }
    
    .countdown-main {
        gap: 6px;
    }
    
    .countdown-unit {
        min-width: 30px;
    }
    
    .countdown-number {
        font-size: 0.95rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-local-time {
        font-size: 0.65rem;
    }
}

/* Special styling for home page countdown */
.home-countdown .countdown-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.home-countdown .countdown-number {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.home-countdown .countdown-label {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.home-countdown .countdown-local-time {
    color: rgba(255,255,255,0.8);
    border-top-color: rgba(255,255,255,0.2);
}

/* Enhanced visual for urgent countdown (less than 1 hour) */
.countdown-urgent .countdown-wrapper {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    animation: gentle-glow 3s ease-in-out infinite alternate;
}

.countdown-urgent .countdown-number {
    color: #856404;
}

@keyframes gentle-glow {
    from { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
    to { box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3); }
}

/* Very urgent (less than 15 minutes) */
.countdown-critical .countdown-wrapper {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    animation: critical-pulse 2s ease-in-out infinite;
}

.countdown-critical .countdown-number {
    color: #721c24;
}

@keyframes critical-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}