/* Popup Ad Styles */

.popup-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-ad-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.popup-ad-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.popup-ad-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-ad-close:not(:disabled):hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.popup-ad-close:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.popup-ad-body {
    padding: 1.5rem;
}

.popup-ad-action {
    margin-top: 1.5rem;
    text-align: center;
}

.popup-ad-visit {
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.popup-ad-timer {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--warning);
}

.timer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-info strong {
    color: var(--warning);
    font-size: 1.25rem;
}

.timer-progress {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), var(--success));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-ad-content {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .popup-ad-header,
    .popup-ad-body {
        padding: 1rem;
    }
    
    .timer-info {
        flex-direction: column;
        text-align: center;
    }
}
