/* Silver Talkies — site search (Phase 2) */
/* Match site btn-grad-default (Get Started) */
:root {
  --st-search-accent: #2fadb1;
  --st-search-accent-dark: #2b9da1;
  --st-search-accent-gradient: linear-gradient(102.26deg, #34c0c5 0, #2fadb1 99.99%, #2b9da1 100%);
}

.st-nav-search-wrap {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.st-nav-search-form {
  display: flex;
  align-items: stretch;
  max-width: 220px;
  width: 100%;
  margin: 0;
}

.st-nav-search-input {
  font-size: 14px !important;
  min-height: 36px;
  border-radius: 20px 0 0 20px !important;
  border-right: 0 !important;
  padding-left: 14px;
}

.st-nav-search-btn {
  border: 1px solid #ced4da;
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: var(--st-search-accent-gradient);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  min-height: 36px;
}

.st-nav-search-btn:hover,
.st-nav-search-btn:focus {
  background: var(--st-search-accent-dark);
  color: #fff;
  outline: 2px solid #333;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .st-nav-search-wrap {
    width: 100%;
    margin: 0.75rem 0 0.5rem;
  }

  .st-nav-search-form {
    max-width: none;
  }
}

/* Results page */
.st-search-hero {
  background: linear-gradient(135deg, #f9ede6 0%, #fff 60%);
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #eee;
}

.st-search-hero h1 {
  color: var(--st-search-accent);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.st-search-main-form {
  display: flex;
  gap: 0;
  max-width: 640px;
}

.st-search-main-input {
  flex: 1;
  font-size: 1.05rem !important;
  min-height: 48px;
  border-radius: 8px 0 0 8px !important;
}

.st-search-main-submit {
  min-height: 48px;
  border-radius: 0 8px 8px 0;
  background: var(--st-search-accent-gradient);
  color: #fff;
  border: none;
  padding: 0 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.st-search-main-submit:hover,
.st-search-main-submit:focus {
  background: var(--st-search-accent-dark);
  outline: 2px solid #333;
  outline-offset: 2px;
}

.st-search-meta {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.st-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.st-search-filter-btn {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.st-search-filter-btn.is-active {
  background: var(--st-search-accent-gradient);
  border-color: var(--st-search-accent);
  color: #fff;
}

.st-search-results {
  padding: 1rem 0 3rem;
}

.st-search-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: #fff;
  transition: box-shadow 0.15s ease;
}

.st-search-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.st-search-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.st-search-card h2 a {
  color: var(--st-search-accent);
  text-decoration: none;
}

.st-search-card h2 a:hover {
  text-decoration: underline;
}

.st-search-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--st-search-accent-gradient);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 0.35rem;
}

.st-search-snippet {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.st-search-snippet mark {
  background: #ffe8a3;
  padding: 0 2px;
}

.st-search-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #555;
}

.st-search-empty h2 {
  font-size: 1.25rem;
  color: #333;
}

.st-search-status--warn {
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.st-search-ai-summary {
  background: linear-gradient(135deg, #f9ede6 0%, #fff 100%);
  border: 1px solid #e8d4c8;
  border-left: 4px solid var(--st-search-accent);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.st-search-ai-summary[hidden] {
  display: none !important;
}

.st-search-ai-summary strong {
  color: var(--st-search-accent);
}

.st-search-skeleton {
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: st-search-shimmer 1.2s infinite;
  margin-bottom: 1rem;
}

@keyframes st-search-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
