/* ============================================================
   GreatSearch — Main Stylesheet
   Design System: Indigo-Violet-Cyan gradient palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --clr-bg:          #f8f9ff;
  --clr-surface:     #ffffff;
  --clr-surface2:    #f1f3fb;
  --clr-border:      #e2e5f1;
  --clr-text:        #0d0e1a;
  --clr-text-muted:  #6b7280;
  --clr-text-light:  #9ca3af;

  --clr-primary:     #4f46e5;
  --clr-primary-h:   #4338ca;
  --clr-violet:      #7c3aed;
  --clr-cyan:        #06b6d4;
  --clr-emerald:     #10b981;
  --clr-rose:        #f43f5e;
  --clr-amber:       #f59e0b;

  --grad-brand:      linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  --grad-glow:       linear-gradient(135deg, rgba(79,70,229,.15) 0%, rgba(124,58,237,.10) 50%, rgba(6,182,212,.08) 100%);
  --grad-card:       linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);

  --shadow-sm:       0 1px 3px rgba(79,70,229,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:       0 4px 16px rgba(79,70,229,.12), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:       0 12px 40px rgba(79,70,229,.18), 0 4px 12px rgba(0,0,0,.08);
  --shadow-glow:     0 0 40px rgba(79,70,229,.20);

  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --radius-pill:     999px;

  --transition:      all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Dark mode */
[data-theme="dark"] {
  --clr-bg:          #090a14;
  --clr-surface:     #12141f;
  --clr-surface2:    #1a1c2e;
  --clr-border:      #252840;
  --clr-text:        #f0f1fa;
  --clr-text-muted:  #a0a3b8;
  --clr-text-light:  #6b6f8a;
  --grad-card:       linear-gradient(145deg, #12141f 0%, #1a1c2e 100%);
  --shadow-sm:       0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md:       0 4px 16px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.2);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animated Background ───────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(79,70,229,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124,58,237,.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6,182,212,.04) 0%, transparent 60%);
}
[data-theme="dark"] .bg-grid {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(79,70,229,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124,58,237,.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6,182,212,.08) 0%, transparent 60%);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
}
[data-theme="dark"] .nav {
  background: rgba(9,10,20,0.85);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}
.nav-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1rem;
}
.btn-icon:hover { color: var(--clr-primary); border-color: var(--clr-primary); transform: scale(1.05); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(79,70,229,.25);
  background: rgba(79,70,229,.06);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  margin-bottom: 20px;
  animation: fadeInDown 0.6s 0.1s ease both;
}
.hero-title .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  animation: fadeInDown 0.6s 0.2s ease both;
}

/* ── Search Bar ────────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.search-container:focus-within {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(79,70,229,.12);
}
.search-icon {
  color: var(--clr-text-muted);
  margin-right: 12px;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.search-container:focus-within .search-icon { color: var(--clr-primary); }
#main-search, #results-search {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--clr-text);
  padding: 10px 0;
  caret-color: var(--clr-primary);
}
#main-search::placeholder, #results-search::placeholder {
  color: var(--clr-text-light);
}
.search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-suggest {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface2);
  color: var(--clr-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.btn-suggest:hover { border-color: var(--clr-violet); color: var(--clr-violet); background: rgba(124,58,237,.06); }
.btn-suggest.active { border-color: var(--clr-violet); color: var(--clr-violet); background: rgba(124,58,237,.10); }
.btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--grad-brand);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(79,70,229,.40);
}
.btn-search:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.50); }
.btn-search:active { transform: translateY(0); }

/* ── AI Keyword Dropdown ───────────────────────────────────── */
.keyword-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0; right: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 200;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: var(--transition);
}
.keyword-dropdown.visible {
  display: block;
  animation: dropdownIn 0.25s ease forwards;
}
@keyframes dropdownIn {
  to { opacity: 1; transform: translateY(0); }
}
.kd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
}
.kd-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kd-title .ai-badge {
  padding: 2px 8px;
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
}
.kd-section {
  margin-bottom: 14px;
}
.kd-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kd-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface2);
  font-size: 0.82rem;
  color: var(--clr-text);
  cursor: pointer;
  transition: var(--transition-fast);
}
.kd-tag:hover { border-color: var(--clr-primary); color: var(--clr-primary); background: rgba(79,70,229,.06); transform: translateY(-1px); }
.kd-tag .intent-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}
.intent-info    { background: rgba(6,182,212,.15); color: #0891b2; }
.intent-trans   { background: rgba(16,185,129,.15); color: #059669; }
.intent-nav     { background: rgba(245,158,11,.15); color: #d97706; }
.intent-how     { background: rgba(124,58,237,.15); color: #7c3aed; }
.kd-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: var(--clr-text-muted);
  font-size: 0.88rem;
}
.kd-loading .spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Trending Topics ───────────────────────────────────────── */
.trending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
  animation: fadeInUp 0.6s 0.45s ease both;
}
.trending-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.trending-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.trending-tag:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(79,70,229,.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Stats Strip ───────────────────────────────────────────── */
.stats-strip {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--clr-border);
  animation: fadeInUp 0.6s 0.55s ease both;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ── Results Page Layout ───────────────────────────────────── */
.results-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
}
[data-theme="dark"] .results-nav {
  background: rgba(9,10,20,0.92);
}
.results-nav .nav-brand { flex-shrink: 0; }
.results-nav .search-wrapper { flex: 1; max-width: 600px; margin: 0; }
.results-nav .search-container { padding: 4px 4px 4px 16px; border-radius: var(--radius-lg); }
.results-nav #results-search { font-size: 0.95rem; padding: 8px 0; }
.results-nav .btn-search { padding: 8px 18px; font-size: 0.85rem; }

.results-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 32px 60px;
}

/* ── AI Summary Card ───────────────────────────────────────── */
.ai-summary-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}
.ai-summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
}
.ai-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ai-card-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ai-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-primary);
}
.ai-summary-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--clr-text);
  margin-bottom: 16px;
}
.ai-key-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
}
.ai-point-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── Filter Tabs ───────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--clr-border);
  animation: fadeInDown 0.4s ease both;
}
.filter-tab {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
  border: none;
  background: transparent;
  margin-bottom: -1px;
}
.filter-tab:hover { color: var(--clr-primary); }
.filter-tab.active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }

/* ── Search Result Cards ───────────────────────────────────── */
.result-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
}
.result-card:hover {
  border-color: rgba(79,70,229,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.result-card:nth-child(2) { animation-delay: 0.05s; }
.result-card:nth-child(3) { animation-delay: 0.10s; }
.result-card:nth-child(4) { animation-delay: 0.15s; }
.result-card:nth-child(5) { animation-delay: 0.20s; }

.result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.result-favicon {
  width: 16px; height: 16px;
  border-radius: 3px;
  object-fit: cover;
}
.result-favicon-placeholder {
  width: 16px; height: 16px;
  border-radius: 3px;
  background: var(--grad-brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  font-weight: 700;
}
.result-domain { font-size: 0.8rem; color: var(--clr-text-muted); }
.result-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  transition: var(--transition-fast);
}
.result-card:hover .result-title { text-decoration: underline; }
.result-snippet {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}
.result-snippet strong { color: var(--clr-text); font-weight: 600; }
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.result-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  background: var(--clr-surface2);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  animation: fadeInRight 0.5s ease both;
}
.sidebar-card:nth-child(2) { animation-delay: 0.1s; }
.sidebar-card:nth-child(3) { animation-delay: 0.2s; }
.sidebar-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-title .icon-badge {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
}
.keyword-explorer-list { display: flex; flex-direction: column; gap: 6px; }
.keyword-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}
.keyword-item:hover { background: rgba(79,70,229,.06); border-color: rgba(79,70,229,.15); color: var(--clr-primary); }
.keyword-item-text { font-weight: 500; }
.keyword-volume {
  font-size: 0.72rem;
  color: var(--clr-text-light);
  font-weight: 600;
}
.keyword-bar-wrap {
  height: 3px;
  background: var(--clr-border);
  border-radius: var(--radius-pill);
  margin-top: 4px;
  overflow: hidden;
}
.keyword-bar {
  height: 100%;
  background: var(--grad-brand);
  border-radius: var(--radius-pill);
  transition: width 1s ease;
}
.related-searches { display: flex; flex-direction: column; gap: 4px; }
.related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}
.related-item:hover { background: var(--clr-surface2); color: var(--clr-primary); }
.related-item svg { flex-shrink: 0; opacity: 0.5; }

/* ── Results Counter ───────────────────────────────────────── */
.results-count {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  animation: fadeIn 0.4s ease both;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  justify-content: center;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.page-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.page-btn.active { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ── Utility / Animations ──────────────────────────────────── */
@keyframes fadeIn       { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown   { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp     { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight  { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .results-body { grid-template-columns: 1fr; padding: 80px 16px 40px; }
  .sidebar { display: none; }
}
@media (max-width: 600px) {
  .nav { padding: 10px 16px; }
  .hero { padding: 70px 16px 40px; }
  .stats-strip { gap: 24px; }
  .btn-suggest span { display: none; }
  .results-nav { padding: 8px 16px; gap: 12px; }
  .results-nav .btn-suggest { display: none; }
}

/* ── Skeleton Loader ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--clr-border) 25%, var(--clr-surface2) 50%, var(--clr-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Toast Notification ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--clr-text);
  color: var(--clr-bg);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
