/* ====================================================
   STYLES POUR LES EMPLACEMENTS PUBLICITAIRES
   ==================================================== */

/* Container général pour les publicités */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 10px;
    background: rgba(19, 26, 43, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    min-height: 100px;
    position: relative;
}

/* Label "Publicité" */
.ad-label {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* Différents formats de publicité */

/* Banner horizontal (728x90 ou responsive) */
.ad-banner {
    min-height: 90px;
    max-width: 728px;
}

/* Large rectangle (336x280) */
.ad-large-rectangle {
    min-height: 280px;
    max-width: 336px;
}

/* Medium rectangle (300x250) */
.ad-medium-rectangle {
    min-height: 250px;
    max-width: 300px;
}

/* Leaderboard (728x90) */
.ad-leaderboard {
    min-height: 90px;
    max-width: 728px;
    width: 100%;
}

/* Wide skyscraper (160x600) - pour sidebar */
.ad-skyscraper {
    min-height: 600px;
    max-width: 160px;
}

/* Responsive ad */
.ad-responsive {
    width: 100%;
    min-height: 100px;
}

/* Placeholder pour quand la pub n'est pas chargée */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Animation au hover */
.ad-container:hover {
    background: rgba(19, 26, 43, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
    transition: all 0.3s ease;
}

/* Positionnement spécifique pour les pages */

/* Sur la page d'accueil (index.html) */
.index-page .ad-hero {
    margin: 30px auto;
    max-width: 728px;
}

.index-page .ad-footer {
    margin: 40px auto;
    max-width: 728px;
}

/* Sur le dashboard */
.dashboard-page .ad-top {
    margin: 15px 0;
}

.dashboard-page .ad-sidebar {
    position: sticky;
    top: 20px;
    margin: 20px 0;
}

/* Sur la page de jeu */
.game-page .ad-game-info {
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ad-banner,
    .ad-leaderboard {
        min-height: 50px;
        max-width: 100%;
    }

    .ad-large-rectangle,
    .ad-medium-rectangle {
        max-width: 100%;
    }

    .ad-skyscraper {
        display: none; /* Masquer les skyscrapers sur mobile */
    }

    .ad-label {
        font-size: 9px;
    }
}

/* Mode sombre/clair adaptatif */
@media (prefers-color-scheme: light) {
    .ad-container {
        background: rgba(241, 245, 249, 0.5);
        border-color: rgba(226, 232, 240, 0.5);
    }

    .ad-label {
        color: #64748b;
    }

    .ad-placeholder {
        color: #94a3b8;
    }
}
