/* Modern Arama Çubuğu Stilleri */
.modern-search-wrapper {
  position: relative;
  margin: 0 0.75rem;
  display: flex;
  align-items: center;
}

.modern-search-container {
  position: relative;
  width: 100%;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 0.6rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e9ecef;
  min-width: 350px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.search-input-group:hover {
  border-color: #dee2e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.search-input-group:focus-within {
  background: white;
  border-color: #dc3545;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.15);
  transform: translateY(-1px);
}

.search-icon {
  color: #adb5bd;
  margin-right: 0.85rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-input-group:focus-within .search-icon {
  color: #dc3545;
  transform: scale(1.1);
}

.modern-search-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
  color: #212529;
  padding: 0.35rem 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.modern-search-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.search-spinner {
  margin-left: 0.5rem;
  color: #dc3545;
  flex-shrink: 0;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Arama Sonuçları Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  max-height: 520px;
  overflow: hidden;
  z-index: 1050;
  animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-results-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f3f5;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

.results-count {
  display: none;
}

.detailed-search-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.80rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #f8f9fa;
  letter-spacing: 0.01em;
}

.detailed-search-link:hover {
  color: #dc3545;
  background: #fff5f6;
}

.detailed-search-link i {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.detailed-search-link:hover i {
  transform: translateX(2px);
}

.search-results-list {
  max-height: 450px;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

/* Sonuç İtem */
.search-result-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.4rem;
  position: relative;
  border: 1px solid transparent;
}

.search-result-item:hover {
  background: #fafbfc;
  border-color: #e9ecef;
  transform: translateY(-1px);
}

.result-image {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
  flex-shrink: 0;
  border: 1px solid #f1f3f5;
}

.search-result-item:hover .result-image {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.result-content {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
}

.result-title {
  font-weight: 500;
  font-size: 0.90rem;
  color: #212529;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.result-author {
  font-size: 0.80rem;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.result-arrow {
  color: #adb5bd;
  margin-left: auto;
  padding-left: 1rem;
  opacity: 0;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.search-result-item:hover .result-arrow {
  opacity: 1;
  color: #6c757d;
}

/* Boş Sonuç */
.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #868e96;
}

.no-results i {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  color: #e9ecef;
  opacity: 0.6;
}

.no-results p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.no-results p:first-of-type {
  font-weight: 600;
  color: #495057;
  font-size: 1.05rem;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.loading-state i {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 1rem;
  display: inline-block;
}

.loading-state p {
  margin: 0;
  color: #868e96;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Scrollbar Özelleştirmesi */
.search-results-list::-webkit-scrollbar {
  width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* Responsive */
@media (max-width: 991px) {
  .modern-search-wrapper {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .search-input-group {
    min-width: 250px;
  }
  
  .modern-search-input {
    font-size: 0.85rem;
  }
}

/* Öneri Etiketleri */
.suggestion-badge {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #ffffff;
  color: #495057;
  border-radius: 16px;
  font-size: 0.80rem;
  margin: 0.25rem 0.3rem 0.25rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #dee2e6;
  font-weight: 400;
}

.suggestion-badge:hover {
  background: #212529;
  color: white;
  border-color: #212529;
  transform: translateY(-1px);
}

.suggestions-wrapper {
  padding: 1rem 1.25rem;
  background: #fafbfc;
  border-bottom: 1px solid #e9ecef;
}

.suggestions-label {
  font-size: 0.80rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Klavye Navigasyon Vurgusu */
.search-result-item.keyboard-active {
  background: #f8f9fa;
  border-color: #dc3545;
}

/* Responsive Ayarlamalar */
@media (max-width: 1400px) {
  .search-input-group {
    min-width: 320px;
  }
}

@media (max-width: 1200px) {
  .search-input-group {
    min-width: 280px;
  }
  
  .modern-search-input {
    font-size: 0.85rem;
  }
  
  .result-title {
    font-size: 0.88rem;
  }
}

