/* Download Page Enhancements */
.download-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

.download-card {
    backdrop-filter: blur(10px);
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.countdown-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.countdown-circle svg {
    transform: rotate(-90deg);
}

.countdown-circle .circle-bg {
    fill: none;
    stroke: #374151;
    stroke-width: 8;
}

.countdown-circle .circle-progress {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1s ease-in-out;
}

.download-btn {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.download-btn:active {
    transform: translateY(0);
}

.security-badge {
    background: linear-gradient(45deg, #10b981, #059669);
    animation: pulse 2s infinite;
}

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

.related-product:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .download-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .countdown-circle {
        width: 120px;
        height: 120px;
    }
    
    .download-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Dark theme enhancements */
.dark-theme {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
}

/* Security overlay (anti-screenshot) */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(
        45deg,
        transparent 49%,
        rgba(255,255,255,0.01) 50%,
        transparent 51%
    );
    background-size: 10px 10px;
    animation: security-scan 10s linear infinite;
}

@keyframes security-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Pause overlay styles */
#pause-overlay {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Paused countdown indicator */
.countdown-paused {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        border-color: #fbbf24;
        background-color: rgba(217, 119, 6, 0.1);
    }
    50% {
        border-color: #f59e0b;
        background-color: rgba(217, 119, 6, 0.2);
    }
}

/* Warning icon animation */
.warning-pulse {
    animation: warning-pulse 1.5s infinite;
}

@keyframes warning-pulse {
    0%, 100% {
        transform: scale(1);
        color: #fbbf24;
    }
    50% {
        transform: scale(1.1);
        color: #f59e0b;
    }
}
