
.search-bar-section {
  position: relative;
  padding: 60px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.search-bar-section__container {
  max-width: 900px;
  margin: 0 auto;
}

.search-bar-section__header {
  text-align: center;
  margin-bottom: 32px;
}

.search-bar-section__title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.search-bar-section__subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.search-bar-section__search {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.search-bar__wrapper {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar__wrapper:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-bar__wrapper:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.search-bar__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  flex-wrap: nowrap;
}

.search-bar__input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  min-width: 0;
}

.search-bar__icon {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-bar__wrapper:focus-within .search-bar__icon {
  color: #10b981;
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #1e293b;
  background: transparent;
  padding: 18px 0;
  font-weight: 500;
}

.search-bar__input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-bar__clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-bar__clear:hover {
  background: #f1f5f9;
}

.search-bar__clear svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.search-bar__input:not(:placeholder-shown) ~ .search-bar__clear {
  display: flex;
}

.search-bar__submit {
  padding: 14px 24px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-bar__submit:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.search-bar__submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.search-bar__submit svg {
  width: 20px;
  height: 20px;
}

.search-bar__filters-toggle-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  color: #64748b;
  border: none;
  border-radius: 12px;
  font-size: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-bar__filters-toggle-btn:hover {
  background: #f8fafc;
  color: #475569;
}

.search-bar__filters-toggle-btn.active {
  background: #f0fdf4;
  color: #10b981;
}

.search-bar__filters-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.search-bar__filters {
  width: 100%;
  background: #f8fafc;
  border-radius: 0 0 14px 14px;
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
  display: none;
  animation: slideDown 0.3s ease;
}

.search-bar__filters.active {
  display: block;
}

.search-bar__filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.search-bar__filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-bar__filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.search-bar__filter-select {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-bar__filter-select:hover {
  border-color: #cbd5e1;
}

.search-bar__filter-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-bar__popular {
  max-width: 900px;
  margin: 24px auto 0;
  text-align: center;
}

.search-bar__popular-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}

.search-bar__popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.search-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-bar__tag:hover {
  background: #ffffff;
  border-color: #10b981;
  color: #10b981;
}

.search-bar__tag svg {
  width: 12px;
  height: 12px;
}

.search-bar__stats {
  max-width: 900px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  text-align: center;
}

.search-bar__stat {
  padding: 16px;
  background: transparent;
  border-radius: 0;
  transition: all 0.2s ease;
}

.search-bar__stat:hover .search-bar__stat-value {
  color: #059669;
}

.search-bar__stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.search-bar__stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.search-bar__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 16px 16px;
  margin-top: -10px;
  padding-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.search-bar__suggestion {
  padding: 12px 20px;
  cursor: pointer;
  color: #475569;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.search-bar__suggestion:hover {
  background: #f8fafc;
  border-left-color: #10b981;
  color: #1e293b;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .search-bar-section {
    padding: 32px 16px;
  }

  .search-bar-section__header {
    margin-bottom: 24px;
  }

  .search-bar-section__title {
    font-size: 22px;
  }

  .search-bar-section__subtitle {
    font-size: 13px;
  }

  .search-bar__wrapper {
    border-radius: 12px;
    border-width: 1.5px;
  }

  .search-bar__form {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px;
  }

  .search-bar__input-wrapper {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
  }

  .search-bar__input {
    font-size: 14px;
    padding: 12px 0;
  }

  .search-bar__icon {
    width: 18px;
    height: 18px;
  }

  .search-bar__filters-toggle-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .search-bar__filters-toggle-btn svg {
    width: 18px;
    height: 18px;
  }

  .search-bar__submit {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .search-bar__submit svg {
    display: none;
  }

  .search-bar__filters {
    padding: 16px;
    border-radius: 0 0 12px 12px;
  }

  .search-bar__filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-bar__popular {
    margin-top: 20px;
  }

  .search-bar__popular-tags {
    justify-content: flex-start;
  }

  .search-bar__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .search-bar__stat {
    padding: 12px;
  }

  .search-bar__stat-value {
    font-size: 22px;
  }

  .search-bar__stat-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .search-bar-section {
    padding: 24px 12px;
  }

  .search-bar-section__title {
    font-size: 24px;
  }

  .search-bar-section__subtitle {
    font-size: 13px;
  }

  .search-bar__input {
    font-size: 13px;
  }

  .search-bar__stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-bar__stat-value {
    font-size: 20px;
  }
}
