/* ===== ANUNCIANTES PREMIUM - MENU LATERAL ===== */

.anunciantes-section {
    left: 0px;
    top: 96px;
    width: 320px;
    max-height: calc(100vh - 86px);
    background: #f8f9fa;
    border-right: 1px solid #e1e4e8;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: left 0.4s ease-in-out;
    position: fixed;
    border-radius: 10px;
}

/* Scrollbar personalizada */
.anunciantes-section::-webkit-scrollbar {
  width: 6px;
}

.anunciantes-section::-webkit-scrollbar-track {
  background: #f0f2f5;
}

.anunciantes-section::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.anunciantes-section::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.container {
  padding: 0;
  width: 100%;
}

.header {
  background: white;
  border-bottom: 1px solid #e1e4e8;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header h1 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.premium-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
}

.anunciantes-grid {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anunciante-card {
  background: white;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #e1e4e8;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
  cursor: pointer;
  opacity: 0;
  display: none;
}

.anunciante-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #667eea;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0px;
  width: 100%;
}

.anunciante-logo {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

.company-info {
  flex: 1;
  min-width: 0;
}

.company-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
}

.company-category {
  font-size: 11px;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 500;
  color: #667eea;
}

.produtos-container {
  margin-bottom: 4px;
  position: relative;
}

.produtos-label {
  font-size: 10px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.produtos-scroll {
  position: relative;
  overflow: hidden;
}

.produtos-wrapper {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
  cursor: grab;
}

.produtos-wrapper:active {
  cursor: grabbing;
}

.produtos-wrapper::-webkit-scrollbar {
  height: 0;
  display: none;
}

.produto-tag {
  background: #f0f2f5;
  color: #4a5568;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.produto-tag:hover {
  background: #e2e8f0;
  border-color: #cbd5e0;
}

.scroll-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 100%;
  background: linear-gradient(to left, white, transparent);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.produtos-container:hover .scroll-indicator.has-scroll {
  opacity: 1;
}

.scroll-arrow {
  color: #667eea;
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 6px;
  padding-top: 0px;
  /* border-top: 1px solid #f0f2f5; */
}

.btn-primary {
  flex: 1;
  background: #667eea;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}

.btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 1px solid #e1e4e8;
  padding: 6px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  font-family: inherit;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #cbd5e0;
}

.contact-info {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 11px;
}

.contact-info.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: 500;
  color: #6c757d;
  min-width: 45px;
}

.contact-value {
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-value a {
  color: #667eea;
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Toggle button para mobile */
.menu-toggle {
  display: none;
  position: fixed;
  left: 10px;
  top: 90px;
  z-index: 100;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: #5a67d8;
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  background: white;
  border-radius: 8px;
  padding: 30px 15px;
  text-align: center;
  border: 1px solid #e1e4e8;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.empty-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2c3e50;
}

.empty-description {
  font-size: 11px;
  color: #6c757d;
  line-height: 1.4;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 150px;
  }
}

.anunciante-card:nth-child(2) {
  animation-delay: 0.05s;
}

.anunciante-card:nth-child(3) {
  animation-delay: 0.1s;
}

.anunciante-card:nth-child(4) {
  animation-delay: 0.15s;
}

/* Mobile e Tablet */
@media (max-width: 1024px) {
  /* .anunciantes-section {
    width: 280px;
  } */
  
  .wrap {
    margin-left: 280px;
  }

  .anunciantes-grid {
    padding: 8px;
    gap: 8px;
    display: grid;
    grid-auto-flow: column;         /* força os itens a ficarem em colunas */
    grid-auto-columns: 100px;
    overflow-x: auto;               /* scroll apenas no eixo X */
    overflow-y: hidden;             /* evita scroll vertical desnecessário */
    -webkit-overflow-scrolling: touch; /* scroll suave no iOS */
    justify-content: start;
  }
  
  .anunciante-card:hover {
    transform: unset;
  }
}

@media (max-width: 768px) {
  .anunciantes-section {
    /* transform: translateX(-100%); */
    transition: transform 0.3s ease;
    width: 100% !important;
    bottom: 0px;
    top: unset;
    flex-direction: row;
    /* background-color: unset; */
  }

  .tittle-destaques {
    font-size: 14px;
    color: #923e1b;
    background-color: unset;
    display: none;
  }

  .anunciante-card {
    width: 100px;
    padding: 4px;
  }

  .anunciante-logo {
    width: 100%;
  }

  .mobile-hidden {
    display: none;
  }

  .anunciantes-grid {
    flex-direction: row;
  }
  
  .anunciantes-section.active {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .wrap {
    margin-left: 0;
  }
  
  .wrap.menu-open {
    margin-left: 280px;
  }
}

@media (max-width: 480px) {
  .anunciantes-section {
    width: 100%;
    max-width: 280px;
  }
  
  .anunciantes-section.active {
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }
  
  .wrap.menu-open {
    margin-left: 0;
    opacity: 0.5;
    pointer-events: none;
  }
}

/* Classes para busca */
.search-match {
  border-color: #007bff !important;
  background: rgba(0,123,255,0.05) !important;
}

.search-hidden {
  opacity: 0.3 !important;
  transform: scale(0.95) !important;
  pointer-events: none !important;
}

.search-term {
  background: #ffd700 !important;
  color: #333 !important;
  padding: 1px 3px !important;
  border-radius: 2px !important;
  font-weight: bold !important;
}