/* Estilos gerais do banner rotativo */
.banner-rotativo-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.banner-rotativo-container:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.banner-wrapper {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    opacity: 1;
}

.banner-image.fade-out {
    opacity: 0;
}

.banner-image.fade-in {
    opacity: 1;
}

.banner-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.banner-link:hover .banner-image {
    transform: scale(1.02);
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.banner-rotativo-container:hover .banner-info {
    opacity: 1;
}

.banner-timer {
    font-weight: 600;
    background: rgba(0, 115, 170, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 55px;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tamanhos específicos */
.banner-size-300x250 {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.banner-size-728x90 {
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.banner-size-1170x250 {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

/* Estado vazio */
.banner-empty {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #d1d9e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}

.empty-state {
    color: #6c757d;
}

.empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.banner-rotativo-container {
    animation: slideIn 0.5s ease-out;
}

/* Efeito de loading */
.banner-loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsivo */
@media (max-width: 768px) {
    .banner-size-728x90,
    .banner-size-1170x250 {
        max-width: 100%;
    }
    
    .banner-info {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .banner-timer {
        font-size: 10px;
        padding: 3px 8px;
        min-width: 45px;
    }
}

/* Efeito de hover sofisticado */
.banner-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-link:hover::after {
    opacity: 1;
}