/* Search Section - Adds proper spacing */
.search-section {
  padding: 1.5rem 1rem;
  margin: 0 auto;
  max-width: 1200px;
}

/* Search Box Container */
.search-box-container {
  padding: 0 1rem;
  margin: 0 auto;
}

/* Main Search Box - Premium Styling */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 60px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  height: 64px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.search-box:focus-within {
  box-shadow: 0 8px 35px rgba(74, 144, 226, 0.2);
  border-color: rgba(74, 144, 226, 0.5);
}

/* Search Icon - Premium Look */
.search-icon {
  padding: 0 22px;
  color: #7d7d7d;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.search-box:focus-within .search-icon {
  color: #4a90e2;
}

/* Search Input Field - Enhanced */
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-size: 1.05rem;
  color: #333;
  font-weight: 400;
  height: 100%;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.search-input::placeholder {
  color: #a0a0a0;
  opacity: 1;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Voice Search Button - Premium */
.voice-search-btn {
  background: transparent;
  border: none;
  padding: 0 22px;
  cursor: pointer;
  color: #7d7d7d;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.voice-search-btn:hover {
  color: #4a90e2;
}

.voice-search-btn::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* Microphone Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.voice-search-btn:hover i {
  animation: pulse 1.5s infinite;
}

/* Focus Animation */
@keyframes subtleGlow {
  0% { box-shadow: 0 5px 30px rgba(74, 144, 226, 0.1); }
  50% { box-shadow: 0 5px 30px rgba(74, 144, 226, 0.2); }
  100% { box-shadow: 0 5px 30px rgba(74, 144, 226, 0.1); }
}

.search-box:focus-within {
  animation: subtleGlow 3s infinite ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .search-section {
    padding: 1.2rem 0.8rem;
  }
  
  .search-box {
    height: 58px;
    border-radius: 50px;
  }
  
  .search-icon,
  .voice-search-btn {
    padding: 0 18px;
  }
}

@media (max-width: 768px) {
  .search-box {
    height: 54px;
  }
  
  .search-input {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .search-section {
    padding: 1rem 0.5rem;
  }
  
  .search-box {
    height: 50px;
    border-radius: 45px;
  }
  
  .search-icon,
  .voice-search-btn {
    padding: 0 15px;
    font-size: 1.2rem;
  }
  
  .search-input::placeholder {
    font-size: 0.9rem;
  }
  
  .voice-search-btn::after {
    height: 50%;
  }
}