/* ──────────────────────────────────────────────────────────
   SEARCH BANNER (V2) – Studies Learning
   Centered · Ultra-Compact · Typing Animation
   ────────────────────────────────────────────────────────── */

.search-banner-premium.centered-mode {
  position: relative;
  padding: 1.5rem 0 0.75rem; /* Ultra-reduced height */
  background: #f8fbff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-banner-container-v2 {
  position: relative;
  z-index: 10;
  width: min(1320px, 92%);
  margin: 0 auto;
}

.search-center-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* Tighter gap */
}

/* ── Heading & Typer ─────────────────────────────────────── */
.search-heading-v2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem); /* Further shrunk */
  font-weight: 700;
  line-height: 1.15;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.01em;
}

.typer-span {
  color: #0047ff;
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  min-height: 1.2em;
  display: inline-block;
  border-right: 2px solid #0047ff; /* Slimmer cursor */
  padding-right: 4px;
  animation: typer-cursor 0.75s step-end infinite;
}

@keyframes typer-cursor {
  from, to { border-color: transparent; }
  50% { border-color: #0047ff; }
}

/* ── Input Group ─────────────────────────────────────────── */
.search-input-wrapper-v2 {
  position: relative;
  width: 100%;
  max-width: 500px; /* Reduced width */
}

.search-input-premium-v2 {
  width: 100%;
  height: 45px; /* Shrunk from 52px */
  padding: 0 1.2rem 0 3.2rem;
  font-size: 0.9rem;
  font-family: "Outfit", sans-serif;
  background: #ffffff;
  border: 1px solid rgba(0, 71, 255, 0.06);
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 71, 0.03); /* Softer shadow */
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: #121826;
  outline: none;
}

.search-input-premium-v2:focus {
  border-color: rgba(0, 71, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 71, 255, 0.06);
}

.search-icon-v2 {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #0047ff;
  pointer-events: none;
}

.search-loader-v2 {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 71, 255, 0.05);
  border-top-color: #0047ff;
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
  display: none;
}

@keyframes loader-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Hint Tags ───────────────────────────────────────────── */
.search-hint-tags-v2 {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.search-hint-tag {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem; /* Micro font */
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-hint-tag:hover {
  background: rgba(0, 71, 255, 0.04);
  color: #0047ff;
}

/* ── Horizontal Results Row ──────────────────────────────── */
.search-results-horizontal {
  width: 100%;
  margin-top: 0.3rem; /* Tighter */
  display: flex;
  gap: 0.5rem; /* Tighter gap */
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}

.search-results-horizontal::-webkit-scrollbar {
  display: none;
}

/* ── Ultra-soft Mini Card ────────────────────────────────── */
.mini-course-card {
  flex: 0 0 140px; /* Reduced from 160px */
  background: white;
  border-radius: 10px; /* Slightly tighter */
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.01);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mini-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 71, 255, 0.04);
}

.mini-course-img-wrapper {
  width: 100%;
  height: 75px; /* Shrunk from 90px */
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}

.mini-course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-course-title {
  font-size: 0.7rem; /* Ultrasmall but bold */
  font-weight: 700;
  color: #121826;
  margin: 0 0 3px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.mini-course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.m-cat {
  font-size: 0.6rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 3px;
}

.m-price {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0047ff;
}

.m-price.is-free {
  color: #10b981;
}

.search-empty-state, .search-no-results {
    padding: 10px;
    color: #94a3b8;
    font-size: 0.8rem;
    width: 100%;
}
