/**
 * Rewarded Ad Component Styles
 * Include this CSS file in your HTML: <link rel="stylesheet" href="/rewarded-ad.css">
 */

.rewarded-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.rewarded-ad-overlay.hidden {
    display: none;
}

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

.rewarded-ad-container {
    background: white;
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.rewarded-ad-header {
    position: relative;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rewarded-ad-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    text-align: center;
}

.rewarded-ad-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10;
}

.rewarded-ad-close-btn:hover {
    background-color: #e5e7eb;
}

.rewarded-ad-close-btn.hidden {
    display: none;
}

.rewarded-ad-close-icon {
    font-size: 24px;
    color: #6b7280;
    line-height: 1;
    font-weight: 300;
}

.rewarded-ad-content {
    padding: 20px 24px 24px;
}

.rewarded-ad-countdown {
    text-align: center;
    margin-bottom: 20px;
}

.rewarded-ad-countdown-text {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.rewarded-ad-countdown-text span {
    font-weight: 700;
    color: #ec4899;
    font-size: 18px;
}

.rewarded-ad-banner-container {
    position: relative;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
}

.rewarded-ad-banner {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rewarded-ad-banner .adsbygoogle {
    width: 100% !important;
    min-height: 250px;
}

.rewarded-ad-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

.rewarded-ad-fallback.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .rewarded-ad-container {
        border-radius: 16px;
        margin: 10px;
    }

    .rewarded-ad-header {
        padding: 20px 20px 12px;
    }

    .rewarded-ad-title {
        font-size: 18px;
    }

    .rewarded-ad-content {
        padding: 16px 20px 20px;
    }

    .rewarded-ad-banner-container,
    .rewarded-ad-banner {
        min-height: 200px;
    }
    
    .rewarded-ad-banner .adsbygoogle {
        min-height: 200px;
    }
}

