/**
 * Styles pour le détecteur d'Ad Blocker
 */

/* Modal de blocage */
#adblock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: var(--main-font), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.adblock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.adblock-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: adblockModalSlideIn 0.3s ease-out;
}

@keyframes adblockModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.adblock-header-elle {
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.adblock-header-elle h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.adblock-body {
    padding: 30px;
    text-align: center;
}

.adblock-body p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.adblock-instructions {
    border-radius: 8px;
    text-align: left;
}

.adblock-instructions h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.adblock-instructions ol {
    padding-left: 20px;
    margin: 0;
}

.adblock-instructions li {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.adblock-footer {
    padding: 0px 30px 20px 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-reload, .btn-back {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-reload {
    background: var(--pink-color);
    color: white;
    flex: 1;
}


/* Effet de flou sur le contenu principal */
body.adblock-detected > *:not(#adblock-modal) {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .adblock-modal-content {
        margin: 10px;
        max-width: none;
    }
    
    .adblock-header h2 {
        font-size: 20px;
    }
    
    .adblock-body {
        padding: 20px;
    }
    
    .adblock-footer {
        flex-direction: column;
        padding: 20px;
    }
    
    .btn-reload, .btn-back {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Styles pour les éléments bait (invisibles) */
.ad, .ads, .advertisement, .adsbox, .doubleclick, .googleads {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Animation de chargement */
.adblock-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF5660;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message d'avertissement discret */
.adblock-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff9800;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} 