/* wa-lint: skip */
/* Blog-hero: Google SERP → AI-svar. */

.blog-hero-search {
  width: 100%;
  aspect-ratio: 600 / 380;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(49, 79, 89, 0.04),
    0 30px 60px -20px rgba(49, 79, 89, 0.25);
  padding: 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .blog-hero-search { background: var(--surface); }

.blog-hero-search__slider {
  display: flex;
  width: 200%;
  height: 100%;
  animation: blog-search-slide 14s ease-in-out infinite;
}

.blog-hero-search__panel {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── SERP panel ──────────────────────────────────────────────────── */
.blog-hero-search__panel--serp { background: rgb(255, 255, 255); }
[data-theme="dark"] .blog-hero-search__panel--serp { background: var(--surface); }

.blog-hero-search__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(49, 79, 89, 0.08);
  margin-bottom: 12px;
  font-family: var(--font-display, system-ui), sans-serif;
}

.blog-hero-search__head--ai {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-hero-search__searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(49, 79, 89, 0.18);
  border-radius: 999px;
  background: rgb(255, 255, 255);
}
[data-theme="dark"] .blog-hero-search__searchbar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.blog-hero-search__bar-icon { color: rgba(49, 79, 89, 0.55); display: inline-flex; }

.blog-hero-search__query {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--text, rgb(29, 35, 39));
}

.blog-hero-search__count {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.05vw, 11px);
  color: rgba(49, 79, 89, 0.55);
}

.blog-hero-search__results {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  overflow: hidden;
}

.blog-hero-search__result {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-display, system-ui), sans-serif;
}

.blog-hero-search__crumbs {
  font-size: clamp(8px, 0.95vw, 10px);
  color: rgba(49, 79, 89, 0.55);
}

.blog-hero-search__result h3 {
  margin: 0;
  font-size: clamp(11px, 1.35vw, 14px);
  font-weight: 600;
  color: rgb(26, 13, 171);
  line-height: 1.2;
}
[data-theme="dark"] .blog-hero-search__result h3 { color: rgb(147, 176, 255); }

.blog-hero-search__result p {
  margin: 1px 0 0;
  font-size: clamp(9px, 1.1vw, 11px);
  line-height: 1.4;
  color: rgba(49, 79, 89, 0.70);
}
[data-theme="dark"] .blog-hero-search__result p { color: rgba(255, 255, 255, 0.65); }

.blog-hero-search__result--muted { opacity: 0.5; }

.blog-hero-search__hint {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.08);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.1vw, 11px);
  color: rgb(185, 28, 28);
  font-style: italic;
}

/* ─── AI panel ──────────────────────────────────────────────────── */
.blog-hero-search__panel--ai { background: rgb(255, 255, 255); }
[data-theme="dark"] .blog-hero-search__panel--ai { background: var(--surface); }

.blog-hero-search__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}

.blog-hero-search__source-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(127, 190, 198, 0.18);
  color: var(--brand-50, rgb(49, 79, 89));
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
}

.blog-hero-search__ai-query {
  padding: 8px 12px;
  background: rgba(49, 79, 89, 0.05);
  border-radius: 8px;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.25vw, 12px);
  color: var(--text, rgb(29, 35, 39));
  margin-bottom: 10px;
  border-left: 3px solid var(--brand-50, rgb(49, 79, 89));
}
[data-theme="dark"] .blog-hero-search__ai-query {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.blog-hero-search__ai-q-prompt {
  font-weight: 700;
  color: rgba(49, 79, 89, 0.55);
  margin-right: 5px;
}

.blog-hero-search__ai-answer {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  line-height: 1.5;
  color: var(--text, rgb(29, 35, 39));
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-theme="dark"] .blog-hero-search__ai-answer { color: rgba(255, 255, 255, 0.85); }

.blog-hero-search__ai-answer p { margin: 0; }

.blog-hero-search__ai-answer ul {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.blog-hero-search__ai-answer sup {
  color: var(--brand-accent, rgb(184, 90, 58));
  font-weight: 700;
  font-size: 0.75em;
}

.blog-hero-search__source {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(184, 90, 58, 0.08);
  font-size: clamp(9px, 1.05vw, 11px);
  color: var(--brand-50, rgb(49, 79, 89));
}
[data-theme="dark"] .blog-hero-search__source { color: rgba(255, 255, 255, 0.75); }

.blog-hero-search__source-num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-accent, rgb(184, 90, 58));
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 10px;
}

@keyframes blog-search-slide {
  0%, 30%    { transform: translateX(0); }
  40%, 93%   { transform: translateX(-50%); }
  100%       { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-search__slider { animation: none; transform: translateX(-50%); }
}
