/* ====================================
   ADVERTISEMENT COMPONENTS
   (Estilos para os espaços de publicidade)
   ==================================== */

.premium-ad-space {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-ad-space:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.premium-ad-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-ad-banner:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.ad-content {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.ad-content.horizontal {
    padding: 1.5rem 2rem;
}

.ad-premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
}

.ad-placeholder.horizontal {
    flex-direction: row;
    gap: 2rem;
    text-align: left;
}

.ad-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.ad-placeholder.horizontal i {
    font-size: 3rem;
    margin-bottom: 0;
}

.ad-placeholder h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.ad-placeholder p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.ad-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ad-info {
    flex: 1;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-light.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ad-content {
        padding: 1.5rem;
    }
    
    .ad-content.horizontal {
        padding: 1rem 1.5rem;
    }
    
    .ad-placeholder.horizontal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .ad-placeholder i {
        font-size: 2rem;
    }
    
    .ad-placeholder.horizontal i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .ad-price {
        font-size: 1rem;
    }
    
    .ad-placeholder h5 {
        font-size: 1rem;
    }
    
    .ad-placeholder p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .premium-ad-space {
        margin-bottom: 1rem !important;
    }
    
    .ad-content {
        padding: 1rem;
    }
    
    .ad-content.horizontal {
        padding: 1rem;
    }
}


/* ====================================
   VARIANTE PARA SIDEBAR (FUNDO CLARO)
   Sobrescreve as cores brancas quando o
   componente de anúncio está dentro da
   .blog-sidebar, cujo fundo é branco.
   ==================================== */

.blog-sidebar .premium-ad-space,
.blog-sidebar .premium-ad-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #adb5bd;
}

.blog-sidebar .premium-ad-space:hover,
.blog-sidebar .premium-ad-banner:hover {
    border-color: var(--accent-color, #e63946);
    background: linear-gradient(135deg, #fff 0%, #f1f3f5 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-sidebar .ad-placeholder {
    color: var(--text-dark, #333333);
}

.blog-sidebar .ad-placeholder i {
    color: var(--accent-color, #e63946);
}

.blog-sidebar .ad-placeholder h5 {
    color: var(--primary-color, #1a1a2e);
}

.blog-sidebar .ad-placeholder p {
    color: var(--text-muted, #6c757d);
}

.blog-sidebar .ad-price {
    color: var(--accent-color, #e63946);
}

.blog-sidebar .ad-premium-badge {
    background: var(--accent-color, #e63946);
    color: #fff;
}

/* Botão adaptado para fundo claro na sidebar */
.blog-sidebar .btn-outline-light {
    border-color: var(--accent-color, #e63946);
    color: var(--accent-color, #e63946);
    background: transparent;
}

.blog-sidebar .btn-outline-light:hover {
    background: var(--accent-color, #e63946);
    border-color: var(--accent-color, #e63946);
    color: #fff;
    transform: translateY(-1px);
}

/* Anúncio dinâmico de hospedagem na sidebar */
.sidebar-ad-hospedagem {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: #fff;
}

.sidebar-ad-hospedagem:hover {
    border-color: var(--accent-color, #e63946);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.sidebar-ad-hospedagem .ad-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.sidebar-ad-hospedagem .ad-thumb-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-ad-hospedagem .ad-thumb-placeholder i {
    font-size: 3rem;
    color: #adb5bd;
}

.sidebar-ad-hospedagem .ad-body {
    padding: 1rem;
}

.sidebar-ad-hospedagem .ad-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color, #e63946);
    margin-bottom: 0.25rem;
}

.sidebar-ad-hospedagem .ad-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color, #1a1a2e);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.sidebar-ad-hospedagem .ad-excerpt {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-ad-hospedagem .ad-cta {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color, #e63946);
}

.sidebar-ad-hospedagem .ad-cta i {
    transition: transform 0.2s ease;
}

.sidebar-ad-hospedagem:hover .ad-cta i {
    transform: translateX(4px);
}

/* ====================================
   SQUARE AD CARDS (HOME PAGE)
   ==================================== */

.home-ad-cards {
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ad-square-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ad-square-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.2) !important;
    border-color: var(--accent-color);
}

.ad-square-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ad-square-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: background 0.3s ease;
}

.ad-square-card:hover .ad-square-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.9) 100%);
}

.ad-square-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ad-square-cta {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ad-square-card:hover .ad-square-cta {
    opacity: 1;
    transform: translateY(0);
}

.ad-badge-small {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.ad-square-card.placeholder {
    border: 2px dashed #ddd;
    background: #f8f9fa;
}

.ad-square-card.placeholder .ad-square-overlay {
    background: transparent;
    justify-content: center;
}

@media (max-width: 768px) {
    .ad-square-title {
        font-size: 1.1rem;
    }
    .ad-square-cta {
        opacity: 1;
        transform: translateY(0);
    }
}
