/* Ad Overlay Styles */

.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.ad-overlay.fade-out {
    animation: fadeOut 0.3s ease;
}

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

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

.ad-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.ad-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ad-content h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 10px;
}

.ad-content p {
    font-size: 1.2rem;
    color: #6B7280;
    margin-bottom: 20px;
}

#countdown {
    font-size: 2rem;
    font-weight: 700;
    color: #F59E0B;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #F59E0B 0%, #FB923C 100%);
    transition: width 1s linear;
}

.skip-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #FB923C 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.skip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Welcome Ad Styles */
.welcome-ad .ad-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #6B7280;
    font-weight: 700;
}

.welcome-ad .ad-close:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg);
}

.ad-banner {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.sponsor-link {
    display: inline-block;
    background: linear-gradient(135deg, #F59E0B 0%, #FB923C 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
}

.sponsor-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
    .ad-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .ad-icon {
        font-size: 3rem;
    }
    
    .ad-content h2 {
        font-size: 1.5rem;
    }
    
    .ad-content p {
        font-size: 1rem;
    }
}
