/* Countdown Timer Styles */

.countdown-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: countdownFadeIn 0.8s ease-out;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.countdown-content {
    position: relative;
    z-index: 2;
}

.countdown-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.countdown-title i {
    margin-right: 0.5rem;
    color: #ffd700;
    animation: pulse 2s infinite;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    min-width: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.time-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.time-number.time-update {
    transform: scale(1.1);
    color: #ffd700;
}

.time-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.time-separator {
    font-size: 2rem;
    color: white;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: blink 2s infinite;
}

.countdown-message {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.countdown-message i {
    color: #ffd700;
    margin-right: 0.5rem;
}

/* Expired countdown styles */
.countdown-expired {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.countdown-expired .countdown-title {
    font-size: 2.5rem;
    animation: celebration 1s ease-out;
}

.countdown-expired .countdown-message {
    font-size: 1.4rem;
    animation: bounce 1s ease-out;
}

/* Admin countdown controls */
.countdown-admin-controls {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-admin-controls h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.countdown-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.countdown-form-group {
    flex: 1;
    min-width: 200px;
}

.countdown-form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.countdown-form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.countdown-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.countdown-form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.countdown-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.countdown-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.countdown-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.countdown-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* Animations */
@keyframes countdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

@keyframes celebration {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .countdown-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-display {
        gap: 0.5rem;
    }
    
    .time-unit {
        padding: 1rem 0.5rem;
        min-width: 70px;
    }
    
    .time-number {
        font-size: 2rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .time-separator {
        font-size: 1.5rem;
    }
    
    .countdown-message {
        font-size: 1rem;
    }
    
    .countdown-form {
        flex-direction: column;
    }
    
    .countdown-form-group {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .time-separator {
        display: none;
    }
    
    .time-unit {
        min-width: 120px;
    }
}