/**
 * RevBid Ads - Frontend Styles
 * v3.0.0
 */

/* Base ad container - prevents CLS and availableWidth=0 */
.revbid-ad-container,
.adsense-overlay-container,
[data-revbid-slot] {
    display: block;
    width: 100%;
    min-width: 300px;
    min-height: 250px;
    margin: 20px auto;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.revbid-ad-container:empty::before {
    content: "RevBid Ad";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cbd5e1;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.revbid-fallback-container {
    display: none;
    width: 100%;
    min-width: 300px;
    min-height: 250px;
}

.revbid-fallback-container.show,
.revbid-fallback-container.revbid-show,
.fallback-container.show {
    display: block;
}

/* Auto inserted ads - subtle label */
.revbid-auto-insert {
    border: 1px dashed #e2e8f0;
}
.revbid-auto-insert::after {
    content: "Advertisement - RevBid";
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rewarded Overlay - RevBid Branded */
.revbid-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.revbid-overlay.show {
    display: flex;
    opacity: 1;
}

.revbid-rewarded-inner {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.revbid-rewarded-header {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revbid-timer {
    font-size: 48px;
    font-weight: 800;
    color: #4f46e5;
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
}

.revbid-skip-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

.revbid-skip-btn.show {
    display: inline-block;
}

.revbid-skip-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.revbid-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16,185,129,0.3);
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999999;
    font-weight: 600;
    min-width: 200px;
}

.revbid-notification.show {
    transform: translateX(0);
}

.revbid-notification small {
    display: block;
    font-weight: 400;
    opacity: 0.9;
    font-size: 12px;
    margin-top: 4px;
}

/* Sticky Footer - RevBid */
.revbid-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 99998;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.revbid-sticky.hidden {
    transform: translateY(100%);
}

.revbid-sticky-close {
    position: absolute;
    top: -12px;
    right: 12px;
    background: #0f172a;
    color: white;
    border: 2px solid white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.revbid-sticky .revbid-ad-container {
    margin: 0;
    min-height: 90px;
    background: transparent;
}

.revbid-watch-again {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99,102,241,0.4);
    z-index: 99997;
    display: none;
    animation: revbid-pulse 2s infinite;
}

.revbid-watch-again.show {
    display: block;
}

@keyframes revbid-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .revbid-ad-container {
        min-width: 300px;
        min-height: 250px;
        margin: 16px auto;
    }
    .revbid-sticky {
        min-height: 60px;
    }
}
