/**
 * No-Hero Page Styles
 * Bu dosya hero bölümü olmayan sayfalar için otomatik CSS'leri içerir
 */

/* Hero bölümünü gizle */
.hero-bg {
  display: none !important;
}

/* No-hero sayfalarında navbar padding ayarı */
body.no-hero .navbar-container {
  padding: 0 6vw !important;
}

/* Navbar ile content arasında boşluk için - otomatik padding */
body.no-hero {
  padding-top: 100px; /* Navbar yüksekliği */
}

/* Responsive navbar padding'i */
@media (max-width: 991px) {
  body.no-hero {
    padding-top: 90px;
  }
}

@media (max-width: 767px) {
  body.no-hero {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  body.no-hero {
    padding-top: 70px;
  }
}

/* Eğer sayfa kendi container'ına sahipse, margin ayarlaması */
.container.fiyat-sayfa {
  margin-top: 20px; /* Navbar ile arasına ek boşluk */
}

/* Live Search Responsive Table CSS */
.live-search-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px auto;
  position: relative;
  z-index: 10;
  border-radius: 16px;
  overflow: visible;
  background: transparent;
  min-height: 40px;
}

#search-results {
  position: relative;
  z-index: 100;
  margin-top: 8px;
}

#search-results table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 4px 24px rgba(184, 155, 140, 0.2);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
  table-layout: fixed;
  word-wrap: break-word;
}

#search-results th {
  background: #b89b8c;
  color: #fff;
  font-size: 1.08rem;
  padding: 14px 18px;
  font-weight: 600;
  text-align: left;
  border: none;
}

#search-results td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
  color: #6d4c3d;
  transition: background-color 0.2s ease;
  word-break: break-word;
}

.search-table-row {
  cursor: pointer;
}

.search-table-row:hover td,
#search-results tr:hover td {
  background-color: #f8f5f2;
}

#search-results tr.selected td {
  background-color: #f8f5f2;
  font-weight: bold;
}

#search-results .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#search-results .close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Live Search Responsive Ayarları */
@media (max-width: 768px) {
  .live-search-container {
    padding: 0 8px;
  }
  
  #search-results table {
    font-size: 0.9rem;
    border-radius: 8px;
  }
  
  #search-results th {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
  
  #search-results td {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  .live-search-container {
    padding: 0 4px;
  }
  
  #search-results table {
    font-size: 0.8rem;
    border-radius: 6px;
  }
  
  #search-results th {
    font-size: 0.75rem;
    padding: 8px 6px;
  }
  
  #search-results td {
    font-size: 0.75rem;
    padding: 8px 6px;
  }
}

@media (max-width: 360px) {
  .live-search-container {
    padding: 0 2px;
  }
  
  #search-results table {
    font-size: 0.75rem;
  }
  
  #search-results th {
    font-size: 0.7rem;
    padding: 6px 4px;
  }
  
  #search-results td {
    font-size: 0.7rem;
    padding: 6px 4px;
  }
}
