/**
 * Estilos para espaços de anúncios Google AdSense
 */

/* Previne overflow horizontal */
body {
    overflow-x: hidden;
}

/* Container principal responsivo */
.main-container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Espaços de anúncios laterais */
#ad-left, #ad-right {
    width: 160px;
    height: 600px;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#ad-left:hover, #ad-right:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.08));
}

/* Espaço de anúncio inferior */
#ad-bottom {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.2);
    min-height: 90px;
    transition: all 0.3s ease;
}

#ad-bottom:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.08));
}

/* Modo escuro */
.dark #ad-left, .dark #ad-right, .dark #ad-bottom {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.dark #ad-left:hover, .dark #ad-right:hover, .dark #ad-bottom:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 197, 253, 0.15));
}

/* Responsividade para anúncios - Grid já controla a visibilidade */
@media (max-width: 1535px) {
    /* Em telas menores que 2XL (1536px), o grid já esconde as colunas laterais */
    .grid-cols-\\[160px_1fr_160px\\] {
        grid-template-columns: 1fr;
    }
}

/* Placeholder text styling */
.ad-placeholder-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Animação sutil para os placeholders */
@keyframes pulse-ad {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.ad-placeholder {
    animation: pulse-ad 3s ease-in-out infinite;
}

/* Estilos para quando os anúncios reais forem inseridos */
.google-ad {
    border: none !important;
    background: transparent !important;
}

.google-ad:hover {
    transform: none !important;
    border: none !important;
    background: transparent !important;
}

/* Ajustes para diferentes tamanhos de anúncios */
.ad-skyscraper {
    width: 160px;
    height: 600px;
}

.ad-leaderboard {
    width: 728px;
    height: 90px;
}

.ad-mobile-banner {
    width: 320px;
    height: 50px;
}

.ad-large-rectangle {
    width: 336px;
    height: 280px;
}

/* Estilos para ads móveis centrais */
#ad-mobile-1 {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.2);
    min-height: 100px;
    transition: all 0.3s ease;
    border-radius: 12px;
}

#ad-mobile-2 {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.2);
    min-height: 250px;
    transition: all 0.3s ease;
    border-radius: 12px;
}

#ad-mobile-1:hover, #ad-mobile-2:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.08));
}

/* Modo escuro para ads móveis */
.dark #ad-mobile-1, .dark #ad-mobile-2 {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.dark #ad-mobile-1:hover, .dark #ad-mobile-2:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(147, 197, 253, 0.15));
}

/* Media queries para anúncios responsivos */
@media (max-width: 768px) {
    #ad-bottom {
        height: 60px;
    }
    
    #ad-bottom .text-center span:last-child {
        display: none;
    }
    
    #ad-bottom .text-center::after {
        content: "(320x50)";
        margin-left: 8px;
    }
}

/* Integração com o tema do app */
.ad-container {
    border-radius: 12px;
    overflow: hidden;
}

/* Efeitos visuais sutis */
.ad-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.dark .ad-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
} 