/* ============================================================
   CRYPTO FAUCET PRO - ADS OVERLAY STYLES
============================================================ */

#cfp-ads-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 99999;
}

/* ============================================================
   BASE OVERLAY
============================================================ */

.cfp-ad-overlay {
    position: fixed;
    pointer-events: auto;
    z-index: 99999;
    animation: cfp-ad-fadein 0.5s ease-out;
}

.cfp-ad-overlay.hidden {
    display: none !important;
}

@keyframes cfp-ad-fadein {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   POSITIONS
============================================================ */

.cfp-ad-top-left { top: -2px; left: -2px; }
.cfp-ad-top-center { top: -2px; left: 50%; transform: translateX(-50%); }
.cfp-ad-top-right { top: -2px; right: -2px; }
.cfp-ad-middle-left { top: 50%; left: -2px; transform: translateY(-50%); }
.cfp-ad-middle-center { top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
.cfp-ad-middle-right { top: 50%; right: -2px; transform: translateY(-50%); }
.cfp-ad-bottom-left { bottom: -2px; left: -2px; }
.cfp-ad-bottom-center { bottom: -2px; left: 50%; transform: translateX(-50%); }
.cfp-ad-bottom-right { bottom: -2px; right: -2px; }

/* ============================================================
   POPUP (MIDDLE-CENTER)
============================================================ */

.cfp-ad-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cfp-ad-popup-container {
    position: relative;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 8px;
    padding: 6px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: cfp-popup-entrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cfp-popup-entrance {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   AD CONTENT - BORDURES RÉDUITES
============================================================ */

.cfp-ad-content {
    position: relative;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: inline-block;
    line-height: 0;
}

.cfp-ad-middle-center .cfp-ad-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ============================================================
   SLIDES
============================================================ */

.cfp-ad-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    line-height: 0;
}

.cfp-ad-slide.active {
    display: block;
    opacity: 1;
}

/* ============================================================
   IFRAME & CONTENT
============================================================ */

.cfp-ad-content iframe,
.cfp-ad-slide iframe {
    display: block;
    border: none;
}

.cfp-ad-content img,
.cfp-ad-slide img {
    display: block;
}

/* ============================================================
   CLOSE BUTTON - TAILLE RÉDUITE
============================================================ */

.cfp-ad-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    line-height: 1;
    padding: 0;
}

.cfp-ad-close:hover:not(:disabled) {
    transform: scale(1.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cfp-ad-close:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.8;
}

.cfp-close-countdown {
    font-size: 10px;
    font-weight: 600;
}

.cfp-ad-popup-container .cfp-ad-close {
    top: 6px;
    right: 6px;
}

/* ============================================================
   ROTATION INDICATORS
============================================================ */

.cfp-ad-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    line-height: normal;
}

.cfp-ad-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cfp-ad-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.cfp-ad-indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
    .cfp-ad-top-left, .cfp-ad-top-right { top: 10px; }
    .cfp-ad-top-left, .cfp-ad-bottom-left, .cfp-ad-middle-left { left: 10px; }
    .cfp-ad-top-right, .cfp-ad-bottom-right, .cfp-ad-middle-right { right: 10px; }
    .cfp-ad-bottom-left, .cfp-ad-bottom-right { bottom: 10px; }
    .cfp-ad-popup-container { margin: 10px; padding: 4px; }
}

/* ============================================================
   ANIMATIONS
============================================================ */

.cfp-ad-slide.slide-in-left {
    animation: cfp-slide-left 0.5s ease-out;
}

.cfp-ad-slide.slide-in-right {
    animation: cfp-slide-right 0.5s ease-out;
}

@keyframes cfp-slide-left {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cfp-slide-right {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}