/* ====== ADS STYLES ====== */

.ad-wrapper {
    position: relative;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.ad-label-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    z-index: 20;
    backdrop-filter: blur(10px);
}

/* Native Ad Card in Feed */
.native-ad-card {
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.native-ad-content {
    max-width: 90%;
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.native-ad-slot {
    min-height: 200px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.native-ad-actions .btn-primary {
    width: auto;
    padding: 12px 24px;
    margin-top: 0;
}

/* Rewarded Ad Modal */
.rewarded-ad-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.rewarded-header {
    text-align: center;
    margin-bottom: 20px;
}

.rewarded-icon {
    font-size: 60px;
    margin-bottom: 12px;
    animation: mascotBounce 1.5s ease-in-out infinite;
}

.rewarded-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.rewarded-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.rewarded-header b {
    color: var(--coin-gold);
    font-size: 16px;
}

.ad-countdown {
    text-align: center;
    margin: 20px 0;
}

.countdown-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 8px;
    box-shadow: var(--shadow-md);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ad-countdown p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.rewarded-ad-container {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 20px;
    min-height: 250px;
    overflow: hidden;
}

.btn-locked {
    opacity: 0.7;
}

/* Video Ad Overlay */
.video-ad-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-ad-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px;
    max-width: 350px;
    width: 100%;
    position: relative;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.ad-header .ad-label {
    position: static;
    background: var(--pastel-yellow);
    color: var(--text-primary);
}

#skip-ad-timer {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
}

.video-ad-slot {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 16px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.skip-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    color: var(--text-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-family: inherit;
    cursor: not-allowed;
    font-size: 14px;
    transition: var(--transition-normal);
}

.skip-btn.active {
    cursor: pointer;
    color: var(--primary);
    border-color: var(--primary);
}

.skip-btn.active:hover {
    background: var(--primary);
    color: white;
}