/* assets/css/sidebar-interno.css
/* ==========================================================================
   SIDEBAR PRINCIPAL
   ========================================================================== */
.sidebar-primary {
  max-width: 320px;
  margin: 0 auto;
  padding: 1rem;
}
.sidebar-primary .sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   WIDGETS GERAIS
   ========================================================================== */
.widget {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.widget:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   TÍTULO DO WIDGET
   ========================================================================== */
.widget-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0;
  padding: .75rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}

/* ==========================================================================
   FORMULÁRIO DE BUSCA
   ========================================================================== */
.widget-search .search-form {
  display: flex;
  border-top: none;
}
.search-field {
  flex: 1;
  padding: .5rem .75rem;
  border: none;
  font-size: 1rem;
}
.search-submit {
  background: var(--color-link);
  color: #fff;
  border: none;
  padding: 0 .75rem;
  cursor: pointer;
  transition: background .3s ease;
}
.search-submit:hover {
  background: var(--color-link-hover);
}

/* ==========================================================================
   ÚLTIMAS NOTÍCIAS (GRID DE MINI-CARDS)
   ========================================================================== */
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-item {
  display: flex;
  align-items: center;
  margin: .75rem 0;
}
.recent-item:first-child {
  margin-top: 0;
}
.recent-item:last-child {
  margin-bottom: 0;
}
.sidebar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: .75rem;
  flex-shrink: 0;
}
.recent-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  transition: color .3s ease;
}
.recent-link:hover .recent-title {
  color: var(--color-link);
}
.recent-title {
  font-size: .95rem;
  line-height: 1.3;
}

/* ==========================================================================
   POPULARES (LISTAS SIMPLES)
   ========================================================================== */
.popular-list,
.list-links {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
}
.popular-list li,
.list-links li {
  margin: .5rem 0;
}
.popular-list li a,
.list-links li a {
  text-decoration: none;
  color: var(--color-text);
  transition: color .3s ease;
}
.popular-list li a:hover,
.list-links li a:hover {
  color: var(--color-link);
}

/* ==========================================================================  
   PUBLICIDADE (blocos de ad responsivos e sem cortes)  
   ========================================================================== */
.widget_ad .ad-slot {
  display: block !important;
  width: 100% !important;
  margin: 1.5rem 0 !important;
  text-align: center;
  /* altura fluida conforme o criativo: não forçar min-height */
  min-height: auto !important;
  /* permitir que anúncios maiores se ajustem ou transbordem naturalmente */
  overflow: visible !important;
  /* remover padding fixo, deixe o criativo controlar seu próprio espaçamento */
  padding: 0 !important;
}

/* ==========================================================================  
   RESPONSIVIDADE DA SIDEBAR  
   ========================================================================== */
@media (max-width: 768px) {
  .sidebar-primary {
    max-width: 100%;
    padding: 1rem;
    gap: 1rem;
  }

  /* ajuste de espaçamento dos ads em mobile */
  .widget_ad .ad-slot {
    margin: 1rem 0 !important;
  }

  .widget-title {
    font-size: 1.1rem;
    padding: .5rem .75rem;
  }

  .sidebar-thumb {
    width: 40px;
    height: 40px;
    margin-right: .5rem;
  }
}

