/* ============================================
   CONTAINER DOS ANÚNCIOS
   ============================================ */

.ad-container {
    width: 100%;
}

.ad-placeholder {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.regional-icon{
    width:36px;
    height:36px;
}

/* ============================================
   HERO - Topo da página
   ============================================ */

.hero-ad .ad-placeholder {
    width: 100%;
    height: 150px;
    padding: 0;
}

.hero-ad .ad-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ============================================
   SIDEBAR - IMAGEM PREENCHE 100%
   ============================================ */

.sidebar-ad .ad-placeholder {
    height: 250px;
    max-height: 250px;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 0 !important;     /* ← Remove qualquer padding */
    margin: 0;
}

.sidebar-ad .ad-image {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* ← Cobre todo o espaço */
    object-position: center;    /* ← Centraliza a imagem */
    display: block;
    transition: transform 0.3s ease;
    position: absolute;         /* ← Posiciona absolutamente */
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Alternativa - Usando flexbox */
.sidebar-ad .ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.sidebar-ad .ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ============================================
   CONTEÚDO - Dentro da notícia
   ============================================ */

.content-ad .ad-placeholder {
    height: 120px;
}

.content-ad .ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RODAPÉ
   ============================================ */

.footer-ad .ad-placeholder {
    height: 180px;
}

.footer-ad .ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar-ad .ad-placeholder {
        height: 220px;
        max-height: 220px;
        min-height: 180px;
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
    .hero-ad .ad-placeholder {
        height: 120px;
    }
    
    .sidebar-ad .ad-placeholder {
        height: 180px;
        max-height: 180px;
        min-height: 150px;
    }
    
    .content-ad .ad-placeholder {
        height: 90px;
    }
    
    .footer-ad .ad-placeholder {
        height: 120px;
    }
    
    .sidebar-ad .ad-text {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .sidebar-ad .ad-text i {
        font-size: 1.5rem;
    }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    .sidebar-ad .ad-placeholder {
        height: 150px;
        max-height: 150px;
        min-height: 120px;
    }
}

/* ============================================
   DARK MODE (Opcional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .ad-placeholder {
        background: #2d2d2d;
        border-color: #404040 !important;
    }
    
    .sidebar-ad .ad-text {
        color: #adb5bd;
    }
    
    .sidebar-ad .ad-text i {
        color: #6c757d;
    }
}

/* ============================================
   YOUTUBE EMBED - Estável e Responsivo
   ============================================ */

.youtube-container {
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    clear: both;
    overflow: hidden;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   INSTAGRAM EMBED
   ============================================ */

.instagram-container {
    text-align: center;
    margin: 20px 0;
    clear: both;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.instagram-button:hover {
    transform: scale(1.02);
    opacity: 0.95;
    color: #fff;
    text-decoration: none;
}

.instagram-button i {
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .youtube-wrapper {
        border-radius: 8px;
    }
    
    .instagram-button {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .youtube-wrapper {
        border-radius: 6px;
    }
    
    .instagram-button {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}