/* Event Countdown Timer Styles */

.upcoming-events-section {
    border-radius: 8px;
    border: 1px solid #49a5f0;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.upcoming-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.1); */
    z-index: 1;
}

.upcoming-events-section > * {
    position: relative;
    z-index: 2;
}

.upcoming-events-header {
    text-align: center;
    margin-bottom: 15px;
}

.upcoming-events-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-countdown {
    text-align: center;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

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

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

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Expired event styles */
.event-countdown.expired {
    opacity: 0.8;
}

.event-expired {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .upcoming-events-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .countdown-display {
        gap: 10px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .event-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .upcoming-events-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .event-title {
        font-size: 0.95rem;
    }
}

/* Animation for countdown numbers */
.countdown-number {
    transition: transform 0.2s ease;
}

.countdown-number:hover {
    transform: scale(1.05);
}

/* Hide countdown container by default */
#event-countdown-container {
    display: none;
}

/* Dark theme support */
/* @media (prefers-color-scheme: dark) {
    .upcoming-events-section {
        background: linear-gradient(135deg, #2d3748, #4a5568);
    }
    
    .upcoming-events-section::before {
        background: rgba(0, 0, 0, 0.2);
    }
} */

/* High contrast mode support */
/* @media (prefers-contrast: high) {
    .upcoming-events-section {
        background: #000;
        border: 2px solid #fff;
    }
    
    .countdown-number,
    .countdown-label,
    .event-title,
    .upcoming-events-header h3 {
        color: #fff;
        text-shadow: none;
    }
} */

/* Reduced motion support */
/* @media (prefers-reduced-motion: reduce) {
    .countdown-number {
        transition: none;
    }
    
    .countdown-number:hover {
        transform: none;
    }
} */
