/* Modern Sleek & Compact Hero Banner */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(155, 89, 182, 0.08) 50%, rgba(22, 24, 32, 0.7) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: visible;
}

/* Subtle glowing accent line at the top of hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.8), rgba(155, 89, 182, 0.8), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #8ea1e1;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.2px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff 40%, #c0c5d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 760px;
  margin: 0 auto 0.9rem;
  line-height: 1.5;
}

.main-search-wrapper {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}

.main-search-wrapper input {
  width: 100%;
  height: 46px;
  padding: 0 1.25rem 0 2.9rem;
  background: rgba(22, 24, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 23px;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.main-search-wrapper input::placeholder {
  color: #72767d;
  font-size: 0.88rem;
}

.main-search-wrapper input:focus {
  border-color: var(--accent-blurple);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4), 0 4px 20px rgba(0, 0, 0, 0.4);
  background: rgba(22, 24, 32, 0.98);
}

.main-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #8e9297;
  transition: fill 0.25s ease;
  pointer-events: none;
}

.main-search-wrapper input:focus + .main-search-icon,
.main-search-wrapper:focus-within .main-search-icon {
  fill: var(--accent-blurple);
}

@media (max-width: 768px) {
  .hero {
    padding: 1.25rem 1rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }
  .main-search-wrapper input {
    height: 42px;
    font-size: 0.85rem;
  }
}

/* Live Search Results Dropdown */
.search-results-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #161822;
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(88, 101, 242, 0.15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0.5rem;
  text-align: left;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 0.4rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.4rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: rgba(88, 101, 242, 0.15);
}

.search-result-info {
  flex-grow: 1;
  min-width: 0;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-desc {
  font-size: 0.82rem;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-thumb {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 4px;
  background: #000;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.search-no-results {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
