﻿/* ========================================
   MODERN SEARCH SECTION - REDESIGNED
   ======================================== */
.search-section-new {
  padding: calc(var(--space-section-lg) + 1rem) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e0e7ff 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.search-container-new {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header */
.search-header-new {
  text-align: center;
  margin-bottom: calc(var(--space-section-lg) + 0.4rem);
  position: relative;
}

.search-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: none !important;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    box-shadow: none !important;
  }
  50% {
    transform: scale(1.05);
    box-shadow: none !important;
  }
}

.search-main-icon {
  font-size: 2rem;
  color: white;
}

.search-title-new {
  font-size: 3rem !important;
  font-weight: 800 !important;
  color: #1e293b;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.search-subtitle-new {
  font-size: 1.25rem !important;
  color: #64748b;
  margin: 0;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Form */
.search-form-new {
  margin-bottom: var(--space-section-lg);
}

.search-wrapper-new {
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

.search-input-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

.search-input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: none !important;
  transform: translateY(-2px);
  outline: none !important;
}

.search-input-wrapper:focus-within::before {
  left: 100%;
}

.search-input-icon {
  padding: 0 1.25rem;
  color: #3b82f6;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within .search-input-icon {
  color: #1d4ed8;
  transform: scale(1.1);
}

.search-input-new {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1.5rem 1rem;
  font-size: 1.15rem;
  color: #1e293b;
  outline: none !important;
  font-weight: 500;
}

.search-input-new:focus {
  outline: none !important;
  box-shadow: none !important;
}

.search-input-new::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-button-new {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

.search-button-new::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.search-button-new:hover::before {
  width: 300px;
  height: 300px;
}

.search-button-new:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}

.search-button-new i {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.search-button-new:hover i {
  transform: translateX(4px);
}

.search-button-new span,
.search-button-new i {
  position: relative;
  z-index: 1;
}

/* Suggestions */
.search-suggestions-new {
  margin-top: var(--space-section);
}

.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
}

.suggestions-header i {
  color: #f59e0b;
  font-size: 1.25rem;
}

.suggestion-tags-new {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.suggestion-tag-new {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: #ffffff;
  color: #3b82f6;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

.suggestion-tag-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.suggestion-tag-new i,
.suggestion-tag-new span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.suggestion-tag-new i {
  font-size: 1.1rem;
}

.suggestion-tag-new:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: none !important;
}

.suggestion-tag-new:hover::before {
  opacity: 1;
}

.suggestion-tag-new:hover i,
.suggestion-tag-new:hover span {
  color: white;
}

/* Decorative Elements */
.search-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
  animation: float 6s ease-in-out infinite;
}

.decoration-circle-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.decoration-circle-2 {
  width: 150px;
  height: 150px;
  bottom: 15%;
  right: 8%;
  animation-delay: 2s;
}

.decoration-circle-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-10px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .search-section-new {
    padding: 3.5rem 0;
  }
  
  .search-icon-wrapper {
    width: 70px;
    height: 70px;
  }
  
  .search-main-icon {
    font-size: 1.75rem;
  }
  
  .search-title-new {
    font-size: 2.5rem !important;
  }
  
  .search-subtitle-new {
    font-size: 1.125rem !important;
  }
  
  .search-input-wrapper {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 16px;
  }
  
  .search-input-icon {
    padding: 0;
  }
  
  .search-input-new {
    padding: 1.25rem;
    text-align: center;
  }
  
  .search-button-new {
    width: 100%;
    justify-content: center;
    padding: 1.25rem 2rem;
    border-radius: 12px;
  }
  
  .suggestion-tags-new {
    gap: 0.75rem;
  }
  
  .suggestion-tag-new {
    font-size: 0.875rem;
    padding: 0.875rem 1.5rem;
  }
  
  .decoration-circle {
    display: none;
  }
}

@media (max-width: 480px) {
  .search-title-new {
    font-size: 2rem !important;
  }
  
  .search-subtitle-new {
    font-size: 1rem !important;
  }
  
  .suggestion-tag-new {
    font-size: 0.8rem;
    padding: 0.75rem 1.25rem;
  }
  
  .suggestion-tag-new i {
    font-size: 1rem;
  }
}

