/* Countdown Popup Styles */
.countdown-popup-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    height: auto;
    background: transparent;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    transform: translateX(400px);
}

.countdown-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.countdown-popup {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 2.5rem 1.2rem 1.2rem 1.2rem;
    max-width: 300px;
    width: 300px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3),
                0 0 100px rgba(0, 212, 255, 0.2) inset;
    text-align: center;
    pointer-events: auto;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.countdown-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00d4ff;
    color: #00d4ff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.countdown-popup-image {
    width: 100%;
    margin-bottom: 1rem;
}

.countdown-popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.countdown-popup-close:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    transform: rotate(90deg);
}

.countdown-popup-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.countdown-popup-subtitle {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.8rem 0;
    flex-wrap: nowrap;
}

.countdown-item {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    padding: 0.5rem 0.4rem;
    min-width: 55px;
    max-width: 58px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(0, 212, 255, 1), 0 0 50px rgba(0, 212, 255, 0.8);
    }
}

.countdown-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #00d4ff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    font-family: 'Orbitron', monospace;
}

.countdown-label {
    display: block;
    font-size: 0.6rem;
    color: #fff;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.countdown-info {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.countdown-info p {
    color: #fff;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.countdown-info strong {
    color: #00d4ff;
}

.countdown-timezone {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .countdown-popup-overlay {
        bottom: 10px;
        right: 10px;
    }
    
    .countdown-popup {
        padding: 1.2rem 1rem;
        width: 300px;
        max-width: calc(100vw - 20px);
    }
    
    .countdown-popup-title {
        font-size: 1.2rem;
    }
    
    .countdown-timer {
        gap: 0.4rem;
    }
    
    .countdown-item {
        min-width: 55px;
        max-width: 60px;
        padding: 0.5rem 0.4rem;
    }
    
    .countdown-value {
        font-size: 1.3rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .countdown-popup-overlay {
        bottom: 5px;
        right: 5px;
    }
    
    .countdown-popup {
        padding: 1rem 0.8rem;
        width: 280px;
        max-width: calc(100vw - 10px);
    }
    
    .countdown-popup-title {
        font-size: 1.1rem;
    }
    
    .countdown-popup-subtitle {
        font-size: 0.9rem;
    }
    
    .countdown-timer {
        gap: 0.3rem;
        margin: 0.8rem 0;
    }
    
    .countdown-item {
        min-width: 50px;
        max-width: 55px;
        padding: 0.5rem 0.3rem;
        border-radius: 8px;
    }
    
    .countdown-value {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
        margin-top: 0.2rem;
    }
}
