/**
 * Sistema de Rotação de Publicidades
 * Estilo para rotação automática de múltiplas publicidades na mesma posição
 */

/* Container principal de rotação */
.ad-rotation-container {
    position: relative;
    width: 100%;
    margin: 20px auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Label "Publicidade" - OCULTA */
.ad-rotation-container .ad-label {
    display: none;
}

/* Item individual de publicidade */
.ad-rotation-container .ad-item {
    display: none;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ad-rotation-container .ad-item.active {
    display: block;
    opacity: 1;
}

/* Imagem da publicidade */
.ad-rotation-container .ad-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.ad-rotation-container .ad-image:hover {
    transform: scale(1.01);
}

/* Link de texto (quando não há imagem) */
.ad-rotation-container .ad-text-link {
    display: block;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ad-rotation-container .ad-text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Controles de navegação */
.ad-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.ad-prev,
.ad-next {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-prev:hover,
.ad-next:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.ad-prev:active,
.ad-next:active {
    transform: scale(0.95);
}

/* Dots de navegação */
.ad-dots {
    display: flex;
    gap: 8px;
}

.ad-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ced4da;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-dot:hover {
    background: #6c757d;
    transform: scale(1.2);
}

.ad-dot.active {
    background: #007bff;
    width: 24px;
    border-radius: 5px;
}

/* Classes de posição específicas */
.ad-970x250 {
    max-width: 970px;
}

.ad-300x250 {
    max-width: 300px;
}

.ad-320x50 {
    max-width: 320px;
}

.ad-between-posts {
    max-width: 728px;
}

/* Publicidade Mobile Sticky */
.ad-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
}

@media (min-width: 769px) {
    .ad-mobile-sticky {
        display: none;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .ad-rotation-container {
        padding: 10px;
        margin: 15px 0;
    }
    
    .ad-prev,
    .ad-next {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .ad-dot {
        width: 8px;
        height: 8px;
    }
    
    .ad-dot.active {
        width: 20px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-rotation-container .ad-item.active {
    animation: fadeIn 0.5s ease-in-out;
}

