/* ============================================
   ESTILOS PARA BANNERS GOOGLE ADSENSE
   ============================================ */

/* Seção wrapper para os banners */
.adsense-section {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

/* Container principal do banner */
.adsense-container {
  margin: 32px auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

/* Espaçamento específico por posição */
.adsense-top {
  margin-top: 40px;
  margin-bottom: 48px;
}

.adsense-sidebar {
  position: sticky;
  top: 100px;
  margin: 0;
  padding: 20px;
}

.adsense-infeed {
  margin: 48px auto;
}

.adsense-footer {
  margin-top: 64px;
  margin-bottom: 32px;
}

/* Placeholder de Teste */
.adsense-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #adb5bd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.adsense-placeholder:hover {
  border-color: #6c757d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.adsense-placeholder-content {
  text-align: center;
  padding: 20px;
  color: #495057;
}

.adsense-placeholder-content svg {
  color: #6c757d;
  margin-bottom: 12px;
}

.adsense-placeholder-content p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.adsense-placeholder-content strong {
  font-size: 16px;
  color: #212529;
}

.adsense-info {
  font-size: 12px !important;
  color: #6c757d !important;
}

.adsense-placeholder-content small {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: #fff3cd;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Container do Anúncio Real */
.adsense-ad {
  width: 100%;
  text-align: center;
}

.adsense-ad ins {
  display: inline-block;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet e menores */
@media (max-width: 992px) {
  .adsense-sidebar {
    display: none; /* Ocultar sidebar em tablets */
  }

  .adsense-top,
  .adsense-infeed,
  .adsense-footer {
    margin-left: 16px;
    margin-right: 16px;
  }

  /* Ajustar banners horizontais grandes */
  .adsense-horizontal .adsense-placeholder {
    max-width: 100%;
    height: auto;
    min-height: 90px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .adsense-container {
    margin: 24px auto;
  }

  .adsense-top {
    margin-top: 24px;
    margin-bottom: 32px;
  }

  .adsense-infeed {
    margin: 32px auto;
  }

  .adsense-footer {
    margin-top: 40px;
    margin-bottom: 24px;
  }

  /* Forçar banners a ocuparem largura total em mobile */
  .adsense-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100px;
  }

  .adsense-placeholder-content {
    padding: 16px;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .adsense-container {
    margin: 16px auto;
  }

  .adsense-placeholder-content svg {
    width: 32px;
    height: 32px;
  }

  .adsense-placeholder-content p {
    font-size: 12px;
  }

  .adsense-placeholder-content strong {
    font-size: 14px;
  }
}

/* ============================================
   LAYOUT GRID COM SIDEBAR
   ============================================ */

/* Container para layout com sidebar (apenas desktop) */
@media (min-width: 993px) {
  .content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    align-items: start;
  }

  .main-content-area {
    grid-column: 1;
  }

  .sidebar-ad-area {
    grid-column: 2;
  }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

/* Classe helper para esconder em mobile */
.adsense-desktop-only {
  display: block;
}

@media (max-width: 992px) {
  .adsense-desktop-only {
    display: none;
  }
}

/* Classe helper para mostrar apenas em mobile */
.adsense-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .adsense-mobile-only {
    display: block;
  }
}

/* Separador visual antes/depois dos anúncios */
.adsense-separator {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dee2e6, transparent);
  margin: 24px auto;
}
