/* Search Page Specific Styles */

.search-page {
  font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Search Input Enhancements */
#search_input {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

#search_input:focus {
  box-shadow: 0 10px 15px -3px rgba(79, 45, 136, 0.1),
    0 4px 6px -2px rgba(79, 45, 136, 0.05);
  transform: translateY(-1px);
}

/* Popular Search Buttons */
.popular-search-btn {
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.popular-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 45, 136, 0.15);
}

/* Tab Buttons */
.tab-button {
  position: relative;
  transition: all 0.3s ease;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f2d88, #642270);
}

/* Results Cards */
.search-result-card {
  transition: all 0.3s ease;
}

.search-result-card:hover {
  border-left-color: #4f2d88;
  transform: translateX(4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.pagination-btn {
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.active) {
  background-color: #f8fafc;
  border-color: #4f2d88;
  color: #4f2d88;
}

/* Loading Animation */
@keyframes pulse-search {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-dots {
  animation: pulse-search 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Results Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-tab-content > div > div {
  animation: fadeInUp 0.5s ease forwards;
}

.results-tab-content > div > div:nth-child(1) {
  animation-delay: 0.1s;
}
.results-tab-content > div > div:nth-child(2) {
  animation-delay: 0.2s;
}
.results-tab-content > div > div:nth-child(3) {
  animation-delay: 0.3s;
}
.results-tab-content > div > div:nth-child(4) {
  animation-delay: 0.4s;
}
.results-tab-content > div > div:nth-child(5) {
  animation-delay: 0.5s;
}
.results-tab-content > div > div:nth-child(6) {
  animation-delay: 0.6s;
}

/* Category Tags */
.category-tag {
  background: linear-gradient(135deg, #4f2d88, #642270);
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Icon Animation */
@keyframes search-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

#search_input:focus + div svg {
  animation: search-pulse 1s ease-in-out;
  color: #4f2d88;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .search-result-card:hover {
    transform: none;
    border-left-color: transparent;
  }

  .popular-search-btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  #search_input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
