/**
 * Arama sayfası — form, hero, sonuç başlığı, boş durum, iskelet (ortak vitrin).
 * Yükleme: www/index.php → _global_css_tags() (content/css/*.css).
 *
 * Özelleştirme: Mağaza kökünde content/css/search-page.css dosyasını düzenleyin
 * veya temanızda / ek CSS’inizde aynı sınıfları daha yüksek özgüllükle ezip
 * aşağıdaki --myt-search-* değişkenlerini override edin.
 */
.myt-search-page {
  --myt-search-accent: #0f172a;
  --myt-search-muted: #64748b;
  --myt-search-border: rgba(15, 23, 42, 0.08);
  --myt-search-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --myt-search-hero-bg: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 45%, #e8eef5 100%);
  --myt-search-field-bg: #fff;
  --myt-search-submit-bg: var(--myt-search-accent);
  --myt-search-submit-color: #fff;
  --myt-search-submit-hover: #1e293b;
}

.myt-search-hero {
  background: var(--myt-search-hero-bg);
  border: 1px solid var(--myt-search-border);
  border-radius: 1.25rem;
  padding: 1.25rem 1rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--myt-search-shadow);
}

@media (min-width: 768px) {
  .myt-search-hero {
    padding: 1.75rem 1.75rem 2rem;
  }
}

.myt-search-hero__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--myt-search-accent);
  margin: 0 0 0.35rem;
}

@media (min-width: 768px) {
  .myt-search-hero__title {
    font-size: 22px;
  }
}

.myt-search-hero__hint {
  font-size: 13px;
  color: var(--myt-search-muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

/* ── Arama formu (input + buton) ───────────────────────────────────── */
.myt-search-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .myt-search-bar {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
  }
}

.myt-search-bar__field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--myt-search-field-bg);
  border: 1px solid var(--myt-search-border);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  min-height: 3rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.myt-search-bar__field:focus-within {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.myt-search-bar__icon {
  flex-shrink: 0;
  color: var(--myt-search-muted);
  opacity: 0.85;
}

.myt-search-bar__icon.bi {
  font-size: 18px;
  line-height: 1;
}

.myt-search-bar__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  min-width: 0;
  color: var(--myt-search-accent);
}

.myt-search-bar__input::placeholder {
  color: #94a3b8;
}

.myt-search-bar__submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0 1.25rem;
  font-weight: 600;
  font-size: 15px;
  background: var(--myt-search-submit-bg);
  color: var(--myt-search-submit-color);
  min-height: 2.65rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.myt-search-bar__submit:hover {
  background: var(--myt-search-submit-hover);
}

.myt-search-bar__submit:active {
  transform: scale(0.98);
}

.myt-search-bar__submit .bi {
  vertical-align: -0.125em;
  font-size: 16px;
}

@media (max-width: 575.98px) {
  .myt-search-bar__submit {
    width: 100%;
    min-height: 2.85rem;
  }
}

.myt-search-results__head {
  margin-bottom: 1rem;
}

.myt-search-results__head h1,
.myt-search-results__head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .myt-search-results__head h1,
  .myt-search-results__head h2 {
    font-size: 20px;
  }
}

.myt-search-results__meta {
  font-size: 13px;
  color: var(--myt-search-muted);
}

.myt-search-results__grid.myt-search-results__grid--loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s;
}

.myt-search-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px dashed var(--myt-search-border);
  color: var(--myt-search-muted);
}

.myt-search-empty--tight {
  padding: 1.75rem 1rem;
}

.myt-search-skel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .myt-search-skel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .myt-search-skel {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .myt-search-skel {
    grid-template-columns: repeat(5, 1fr);
  }
}

.myt-search-skel__card {
  height: 240px;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: myt-search-shimmer 1.1s ease-in-out infinite;
}

@keyframes myt-search-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.myt-search-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.myt-search-live-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14b8a6;
  animation: myt-search-pulse 1.5s ease-in-out infinite;
}

@keyframes myt-search-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
