/* Modern Header Tasarımı */

/* Üst Bar */
.top-header-bar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  padding: 0.6rem 0;
  font-size: 0.85rem;
}

.top-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-links a {
  color: #6c757d;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-links a:hover {
  color: #dc3545;
  transform: translateY(-1px);
}

.top-links a i {
  font-size: 0.9rem;
}

.top-user-section {
  display: flex;
  align-items: center;
}

.top-user-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.25s ease;
  font-weight: 500;
}

.top-user-link:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.top-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dc3545;
}

/* Ana Navbar */
.main-navbar {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
  /*position: sticky;*/
  top: 0;
  z-index: 1040;
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.navbar-brand {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

/* Geniş Arama Çubuğu */
.main-search-wrapper {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
}

.main-search-wrapper .search-input-group {
  min-width: 100%;
  padding: 0.75rem 1.5rem;
}

.main-search-wrapper .modern-search-input {
  font-size: 0.95rem;
  padding: 0.4rem 0;
}

.main-search-wrapper .search-input-group:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-search-wrapper .search-input-group:focus-within {
  border-color: #dc3545;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.2);
  transform: translateY(-2px);
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #71006b;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
  white-space: nowrap;
}

.action-button:hover {
  background: #bb2d3b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

.action-button i {
  font-size: 1.1rem;
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #f8f9fa;
  color: #495057;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.action-icon:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

.action-icon i {
  font-size: 1.2rem;
}

.cart-icon-wrapper {
  background: linear-gradient(65deg, #dc3545 0%, #8f0788 100%);
  color: white;
}

.cart-icon-wrapper:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ffc107;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobil Toggle */
#mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #495057;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

#mobile-menu-toggle:hover {
  color: #dc3545;
}

/* Responsive */
@media (max-width: 991px) {
  .mobilgizle {
    display: none !important;
  }
  
  .mobilgoster {
    display: block !important;
  }
  
  #mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-content {
    justify-content: space-between;
  }
  
  .navbar-brand img {
    height: 38px;
  }
}

@media (min-width: 992px) {
  .mobilgoster {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .main-search-wrapper {
    max-width: 500px;
  }
  
  .action-button span {
    display: none;
  }
  
  .action-button {
    width: 45px;
    height: 45px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (max-width: 1400px) {
  .main-search-wrapper {
    max-width: 550px;
  }
  
  .navbar-content {
    gap: 1rem;
  }
}

/* Alt Navbar Düzenlemeleri */
.nobelaltnav {
  background: white;
 /*border-top: 1px solid #e9ecef;*/
  padding: 0.5rem 0;
}

.nobelaltnav .nav-link {
  color: #495057;
  font-weight: 500;
  padding: 0.65rem 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.nobelaltnav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: #dc3545;
  transition: transform 0.3s ease;
  border-radius: 2px 2px 0 0;
}

.nobelaltnav .nav-link:hover {
  color: #dc3545;
}

.nobelaltnav .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nobelaltnav .nav-link.kirmiziyan {
  color: #dc3545;
  font-weight: 600;
}

/* Gölge efekti - scroll sırasında */
.main-navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

