/* Navbar Styles */
.navbar {
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
  opacity: 0.85;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Search Section */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 500px;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
  color: #334155;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  transform: scale(1.02);
}

.search-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, #ef4444, #dc2626);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.search-icon {
  color: white;
  font-size: 0.9rem;
}

/* Login Button */
.nav-right {
  display: flex;
  align-items: center;
}

.login-button {
  display: inline-block;
  padding: 10px 25px;
  background: #dc2626;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  border: 2px solid #dc2626;
}

.login-button:hover {
  transform: translateY(-2px);
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-center {
    max-width: 280px;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 10px 42px 10px 16px;
  }

  .search-button {
    width: 30px;
    height: 30px;
  }

  .login-button {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 10px;
  }

  .logo {
    margin: 0 auto;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .logo-icon {
    font-size: 1.6rem;
  }

  .nav-center {
    order: 2;
    max-width: 100%;
    width: 100%;
  }

  .search-container {
    max-width: 100%;
  }

  .search-input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .nav-right {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .login-button {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    padding: 0 8px;
    gap: 0.6rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-icon {
    font-size: 1.4rem;
  }

  .search-input {
    padding: 11px 42px 11px 16px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .search-button {
    width: 32px;
    height: 32px;
  }

  .search-icon {
    font-size: 0.85rem;
  }

  .login-button {
    padding: 11px 20px;
    font-size: 0.95rem;
  }
}