/* Frontend Styling for Countdown Popup Modal */

/* Download Trigger Button */
.upc-trigger-download-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upc-trigger-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4) !important;
}

.upc-trigger-download-btn:active {
    transform: translateY(1px);
}

/* Modal Overlay */
#upc-download-modal.upc-modal-overlay {
    /* Setup is handled in inline styles for immediate hiding, but transition overrides here */
}

/* Modal Box styling */
.upc-modal-box {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Spinner and Countdown layout */
.upc-countdown-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner border */
.upc-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(79, 70, 229, 0.1) !important;
    border-top: 4px solid #4f46e5 !important;
    border-radius: 50%;
    animation: upc-spin-modal 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-sizing: border-box;
}

@keyframes upc-spin-modal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Close Button Hover */
.upc-modal-close {
    transition: color 0.15s ease, transform 0.15s ease !important;
}

.upc-modal-close:hover {
    color: #ef4444 !important;
    transform: scale(1.1);
}

/* Final Download Button Gradient */
.upc-final-download-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.upc-final-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

.upc-final-download-btn:active {
    transform: translateY(1px) !important;
}

/* Ad Box Pulsing animation */
.upc-ad-placeholder-box {
    animation: upc-pulse-ad 2s infinite ease-in-out;
}

@keyframes upc-pulse-ad {
    0% { opacity: 0.9; }
    50% { opacity: 0.7; }
    100% { opacity: 0.9; }
}
