/* Estilos para contenedores de anuncios */
.ad-container {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    margin-top: 0px;
}

.ad-placeholder {
    position: relative;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B5CF6;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ad-placeholder:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.ad-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.ad-content {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #8B5CF6;
    font-weight: 600;
}

/* Tamaños específicos para diferentes anuncios */
.ad-placeholder[data-ad-size="728x90"] {
    width: 728px;
    height: 90px;
}

.ad-placeholder[data-ad-size="300x250"] {
    width: 300px;
    height: 250px;
}

.ad-placeholder[data-ad-size="300x600"] {
    width: 300px;
    height: 600px;
}

.ad-placeholder[data-ad-size="320x100"] {
    width: 320px;
    height: 100px;
}

/* Anuncios responsivos */
@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
        padding: 10px;
    }
    
    .ad-placeholder[data-ad-size="728x90"] {
        width: 100%;
        max-width: 320px;
        height: 100px;
    }
    
    .ad-placeholder[data-ad-size="300x250"] {
        width: 100%;
        max-width: 300px;
        height: 250px;
    }
    
    .ad-placeholder[data-ad-size="300x600"] {
        width: 100%;
        max-width: 300px;
        height: 250px; /* Reducido en móvil */
    }
    
    .ad-label {
        left: 10px;
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .ad-content {
        font-size: 14px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ad-container {
        margin: 15px 0;
    }
    
    .ad-placeholder {
        border-width: 1px;
    }
    
    .ad-content {
        font-size: 12px;
        padding: 10px;
    }
}

/* Efectos de carga para anuncios */
.ad-placeholder.loading {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilos para cuando los anuncios están cargados */
.ad-placeholder.loaded {
    border-style: solid;
    border-color: rgba(139, 92, 246, 0.6);
}

/* Ocultar anuncios en ciertas condiciones */
.ad-container.hidden {
    display: none;
}

/* Anuncios en modo premium (sin anuncios) */
body.premium .ad-container {
    display: none;
}