/*
  BiteBuddy — Styles (CSS = the looks: colors, sizes, spacing, motion)
  Direction: PLAYFUL & FRIENDLY 🍴  (chosen with Magic)
  Built using Anthropic's "frontend-design" playbook:
    • one bold intentional direction (playful)
    • characterful fonts (not boring Arial)
    • a dominant colour (blue) + sharp accents (green + sunny yellow)
    • CSS motion with staggered "fade-up" entrances
    • atmospheric depth: gradient-mesh blobs, grain, layered shadows
    • one unforgettable element: Forky, the bouncing fork mascot
*/

/* ===== FONTS =====
   Baloo 2 = our chunky, rounded DISPLAY font (titles, brand) — full of personality.
   Nunito  = our friendly, readable BODY font. Loaded once here so EVERY page gets them. */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap");

/* These are our design "tokens" — set a value once, reuse it everywhere.
   Change a colour here and it updates across the whole site. */
:root {
  /* brand colours */
  --blue: #2F80ED;
  --blue-dark: #1F6AD0;
  --green: #27AE60;
  --green-dark: #1E8E4E;
  --sun: #FFC23C;          /* sharp warm accent — pops against all the blue */
  --coral: #FF7A59;        /* tiny accent for fun details */

  --bg: #F4F8FF;           /* very light blue background */
  --ink: #1E2A44;          /* soft dark text (easier on the eyes than pure black) */
  --muted: #6B7A90;        /* grey for less-important text */
  --white: #FFFFFF;

  /* reusable gradients */
  --grad-blue: linear-gradient(135deg, #4C9BFF 0%, #2F80ED 100%);
  --grad-green: linear-gradient(135deg, #36C46E 0%, #1E8E4E 100%);
  --grad-brand: linear-gradient(100deg, #2F80ED 0%, #27AE60 100%);

  /* rounded corners — playful means generous curves */
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 30px;
  --r-pill: 999px;

  /* layered, blue-tinted shadows give a soft "floating" depth */
  --shadow-sm: 0 4px 14px rgba(47, 128, 237, 0.10);
  --shadow: 0 12px 30px rgba(47, 128, 237, 0.16);
  --shadow-lg: 0 22px 50px rgba(47, 128, 237, 0.22);

  --fast: 0.18s cubic-bezier(.34, 1.56, .64, 1);  /* a slightly "bouncy" curve */
}

/* Reset some default browser spacing so we control it */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }   /* anchor links glide instead of jumping */

body {
  font-family: "Nunito", -apple-system, "Segoe UI", Arial, sans-serif;
  /* A GRADIENT MESH: a few soft colour "lights" (radial gradients) layered over a
     gentle blue→white→green wash. This is what gives the page a warm, alive feel. */
  background:
    radial-gradient(40rem 40rem at 8% -5%,  rgba(76, 155, 255, 0.18), transparent 60%),
    radial-gradient(36rem 36rem at 100% 0%, rgba(54, 196, 110, 0.16), transparent 60%),
    radial-gradient(30rem 30rem at 50% 120%, rgba(255, 194, 60, 0.14), transparent 60%),
    linear-gradient(160deg, #EAF2FF 0%, #FFFFFF 50%, #ECFBF1 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* A whisper of GRAIN over everything for texture (stops it looking flat & "plasticky").
   It's an SVG noise pattern, dialled way down so you feel it more than see it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;     /* never blocks clicks */
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* REAL restaurant food as a soft background (results page, when Google gives photos).
   Sits behind everything, blurred & dimmed so text stays readable. Fades in on load. */
.bg-photos {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.95);
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.bg-photos.show { opacity: 0.22; }

/* ===== AUTH-AWARE NAV =====
   auth.js adds .is-auth (logged in) or .is-guest (logged out) to <html>. These rules
   then show the right links with no flicker:
     data-auth="in"  → only visible when logged IN
     data-auth="out" → only visible when logged OUT  */
html.is-auth  [data-auth="out"] { display: none !important; }
html.is-guest [data-auth="in"]  { display: none !important; }
/* admin-only links: hidden unless you're logged in as the owner (auth.js adds .is-admin) */
html:not(.is-admin) [data-admin] { display: none !important; }

/* the nav "Profile" button shows your avatar (emoji or Forky) instead of a paw */
.nav-profile-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
  flex: none;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Helper classes to colour parts of the name.
   We make these into GRADIENT text so the brand name shimmers a little. */
.blue,
.green {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blue  { background-image: var(--grad-blue); }
.green { background-image: var(--grad-green); }

/* ===== STAGGERED ENTRANCE =====
   Everything in the hero gently floats up as the page loads — the "delight" moment
   the design playbook asks for. Each child waits a touch longer than the last. */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: rise 0.6s both; }
.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.12s; }
.hero > *:nth-child(3) { animation-delay: 0.19s; }
.hero > *:nth-child(4) { animation-delay: 0.26s; }
.hero > *:nth-child(5) { animation-delay: 0.33s; }
.hero > *:nth-child(6) { animation-delay: 0.40s; }
.hero > *:nth-child(7) { animation-delay: 0.47s; }
.hero > *:nth-child(8) { animation-delay: 0.54s; }

/* People who prefer less motion get a calm, still page (accessibility & kindness). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== TOP BAR ===== (sticky + frosted glass, so it floats above the page) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(47, 128, 237, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px;
  height: auto;
  transition: transform var(--fast);
}
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.08); }  /* Forky waves hello */
.brand-name { font-family: "Baloo 2", sans-serif; font-size: 25px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; transition: color var(--fast); }
.nav a:hover { color: var(--blue); }
.btn-ghost {
  border: 2px solid var(--blue);
  color: var(--blue) !important;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  transition: all var(--fast);
}
.btn-ghost:hover { background: var(--blue); color: var(--white) !important; transform: translateY(-1px); }

/* language menu in the corner 🇬🇧🇸🇪 */
.lang-select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border: 2px solid #DCE6F5;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--fast);
}
.lang-select:focus, .lang-select:hover { border-color: var(--blue); }

/* ===== HERO ===== (the big welcoming part) */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 20px 80px;
  max-width: 700px;
  margin: 0 auto;
}
/* Two big soft COLOUR BLOBS drift slowly behind Forky — the "living world" feel.
   They sit behind the content (z-index/-1 via the ::before/::after stacking). */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.55;
}
.hero::before {
  width: 320px; height: 320px;
  top: -20px; left: 50%;
  background: radial-gradient(circle, rgba(76, 155, 255, 0.55), transparent 70%);
  animation: drift 9s ease-in-out infinite;
}
.hero::after {
  width: 260px; height: 260px;
  top: 60px; left: 18%;
  background: radial-gradient(circle, rgba(54, 196, 110, 0.5), transparent 70%);
  animation: drift 11s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50%      { transform: translate(-42%, 26px) scale(1.08); }
}

/* Decorative food emojis scattered (and overlapping) around the hero — the playbook
   loves grid-breaking, asymmetric touches. Purely decoration, hidden from screen readers. */
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-deco span { position: absolute; font-size: 30px; opacity: 0.85; animation: float 5s ease-in-out infinite; }
.hero-deco .d1 { top: 8%;  left: 6%;  animation-delay: 0s;   }
.hero-deco .d2 { top: 16%; right: 8%; animation-delay: 0.8s; font-size: 26px; }
.hero-deco .d3 { top: 46%; left: 2%;  animation-delay: 1.6s; font-size: 24px; }
.hero-deco .d4 { top: 40%; right: 3%; animation-delay: 1.1s; }
.hero-deco .d5 { top: 70%; left: 12%; animation-delay: 0.4s; font-size: 22px; }
.hero-deco .d6 { top: 66%; right: 12%; animation-delay: 2s;  font-size: 28px; }

.hero-logo {
  width: 150px;
  height: auto;
  /* a gentle floating bob + a soft "puddle" shadow under Forky (drop-shadow follows
     his shape, not a square) so he looks like he's hovering above the page. */
  filter: drop-shadow(0 18px 14px rgba(47, 128, 237, 0.28));
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform var(--fast);
}
.hero-logo:hover { transform: rotate(8deg) scale(1.06); }   /* poke Forky → he wiggles */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-title {
  font-family: "Baloo 2", sans-serif;
  font-size: 62px;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 6px;
  letter-spacing: -0.5px;
}
.hero-tagline { font-size: 21px; color: var(--muted); font-weight: 600; margin-bottom: 30px; }

/* The paste-link box — a big friendly white pill that GLOWS when you click into it */
.search-box {
  display: flex;
  gap: 10px;
  background: var(--white);
  padding: 10px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  transition: box-shadow var(--fast), transform var(--fast);
}
.search-box:focus-within {
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(47, 128, 237, 0.18);
  transform: translateY(-2px);
}
.link-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 18px;
  color: var(--ink);
  background: transparent;
}
.link-input::placeholder { color: #9AA8BD; font-weight: 600; }

/* The main action button — gradient, rounded, with a soft glow + a satisfying press */
.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.35);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(47, 128, 237, 0.45); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px) scale(0.98); }

/* ===== LAZY SEARCH suggestions dropdown ===== */
.suggestions {
  max-width: 560px;
  margin: 10px auto 0;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.suggestions:empty { display: none; }
.suggestion {
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid #EEF3FB;
  font-size: 16px;
  font-weight: 600;
  transition: background var(--fast), padding-left var(--fast);
}
.suggestion:last-child { border-bottom: none; }
.suggestion:hover { background: var(--bg); padding-left: 24px; }   /* nudges right on hover */
.sugg-area { color: var(--muted); font-size: 13px; font-weight: 600; }

.result-message {
  margin-top: 22px;
  font-size: 17px;
  color: var(--green-dark);
  font-weight: 700;
  min-height: 24px;
}

/* ===== LOADING SPINNER ===== a little spinning ring while Forky works */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(47, 128, 237, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  padding: 6px 0;
}

/* ===== THEMED SECTION BACKGROUNDS ===== faint doodles that match the section */
.how, .feedback { position: relative; overflow: hidden; }
/* keep the real content above the decoration */
.how > *:not(.section-deco), .feedback > *:not(.section-deco) { position: relative; z-index: 1; }
.section-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ⚙️ cog wheels behind "How it works" (slowly turning) */
.how-deco .cog { position: absolute; opacity: 0.08; animation: spin 16s linear infinite; }
.how-deco .c1 { top: 6%;  left: 4%;  font-size: 72px; }
.how-deco .c2 { top: 55%; left: 11%; font-size: 48px; animation-duration: 12s; animation-direction: reverse; }
.how-deco .c3 { top: 12%; right: 8%; font-size: 56px; animation-duration: 20s; }
.how-deco .c4 { bottom: 6%; right: 5%; font-size: 84px; animation-direction: reverse; }
.how-deco .c5 { bottom: 16%; left: 47%; font-size: 40px; animation-duration: 10s; }

/* 💡 lightbulbs behind the ideas/feedback box (gently floating) */
.fb-deco .bulb { position: absolute; opacity: 0.08; animation: float 5s ease-in-out infinite; }
.fb-deco .b1 { top: 8%;  left: 8%;  font-size: 50px; }
.fb-deco .b2 { top: 22%; right: 9%; font-size: 36px; animation-delay: 1s; }
.fb-deco .b3 { bottom: 14%; left: 13%; font-size: 42px; animation-delay: 0.5s; }
.fb-deco .b4 { bottom: 20%; right: 12%; font-size: 48px; animation-delay: 1.5s; }

/* ===== PER-PAGE THEMED DOODLES ===== a page wraps its main in .deco-host and adds a
   .page-deco with a few emoji that match what the page is about. Kept very faint. */
.deco-host { position: relative; overflow: hidden; }
.deco-host > *:not(.page-deco) { position: relative; z-index: 1; }   /* keep content on top */
.page-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-deco span { position: absolute; opacity: 0.06; animation: float 7s ease-in-out infinite; }
.page-deco span:nth-child(1) { top: 5%;  left: 3%;  font-size: 60px; }
.page-deco span:nth-child(2) { top: 13%; right: 5%; font-size: 44px; animation-delay: 1s; }
.page-deco span:nth-child(3) { top: 44%; left: 5%;  font-size: 54px; animation-delay: 2s; }
.page-deco span:nth-child(4) { bottom: 16%; right: 6%; font-size: 66px; animation-delay: 0.5s; }
.page-deco span:nth-child(5) { bottom: 7%; left: 42%; font-size: 40px; animation-delay: 1.5s; }
.page-deco span:nth-child(6) { top: 30%; right: 13%; font-size: 34px; animation-delay: 2.5s; }

/* ===== ✨ RECOMMENDED RESTAURANTS LIST ===== */
.recos { max-width: 680px; margin: 14px auto 6px; text-align: center; }
.recos h2 { font-family: "Baloo 2", sans-serif; font-size: 28px; margin-bottom: 6px; }
.recos-sub { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.recos-sub:empty { display: none; }
.recos-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.recos-empty { color: var(--muted); font-weight: 600; }
.reco-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--white);
  border: 2px solid #DCE6F5;
  border-radius: var(--r);
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.reco-item:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow-sm); }
.reco-emoji { font-size: 30px; flex: none; }
.reco-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.reco-name { font-weight: 800; color: var(--ink); }
.reco-food { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: capitalize; }
.reco-go { color: var(--blue); font-weight: 800; font-size: 20px; flex: none; }

/* ===== HOW IT WORKS ===== */
.how {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  padding: 64px 20px;
  text-align: center;
}
.how h2 { font-family: "Baloo 2", sans-serif; font-size: 36px; margin-bottom: 40px; }
.steps {
  display: flex;
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  position: relative;
  flex: 1;
  min-width: 230px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 34px 24px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--fast), box-shadow var(--fast);
  overflow: hidden;
}
/* a little coloured accent bar along the top of each card */
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--grad-brand);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }   /* lifts on hover */
.step-num {
  font-size: 30px;
  margin: 0 auto 14px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border-radius: 50%;
}
.step h3 { font-family: "Baloo 2", sans-serif; color: var(--blue); margin-bottom: 8px; font-size: 19px; }
.step p { color: var(--muted); font-weight: 600; }

/* ===== RECENT SEARCHES (search history) ===== */
.recent { max-width: 520px; margin: 34px auto 0; text-align: left; }
.recent:empty { display: none; }
.recent-title { font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-chip {
  background: var(--white);
  border: 2px solid #DCE6F5;
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--fast);
}
.recent-chip:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.recent-time { color: var(--muted); font-weight: 600; margin-left: 4px; }

/* ===== LOCATION PICKER ===== */
.location-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}
.location-select {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  border: 2px solid #DCE6F5;
  border-radius: var(--r-pill);
  padding: 8px 16px;
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--fast);
}
.location-select:focus, .location-select:hover { border-color: var(--blue); }
input.location-select { width: 230px; max-width: 56vw; padding-right: 28px; }
/* the round 📍 "use my location" button next to the location box */
.near-me-btn {
  border: 2px solid #DCE6F5;
  background: var(--white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast);
}
.near-me-btn:hover { border-color: var(--blue); transform: scale(1.1); }

/* the clear-✕ tucked inside the location box (only shows when there's text) */
.loc-input-wrap { position: relative; display: inline-flex; align-items: center; }
.loc-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  display: none;
}
.loc-clear:hover { color: var(--ink); }

/* 🕘 recently-used cities under the location box */
.loc-history { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: -6px 0 18px; }
.loc-history:empty { display: none; }
.loc-history-title { color: var(--muted); font-weight: 700; font-size: 13px; }
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--white);
  border: 2px solid #DCE6F5;
  border-radius: var(--r-pill);
  padding: 3px 8px 3px 4px;
  transition: border-color var(--fast);
}
.loc-chip:hover { border-color: var(--blue); }
.loc-go {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--r-pill);
}
.loc-go:hover { color: var(--blue); }
.loc-chip .loc-x { cursor: pointer; font-weight: 800; font-size: 12px; opacity: 0.5; transition: opacity var(--fast); }
.loc-chip .loc-x:hover { opacity: 1; }

/* ===== "RECOMMEND ME A PLACE" ===== */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  margin: 28px 0 18px;
}
.or-divider::before, .or-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #DCE6F5, transparent);
}
.btn-recommend {
  background: var(--grad-green);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(39, 174, 96, 0.35);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
}
.btn-recommend:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(39, 174, 96, 0.45); filter: brightness(1.05); }
.btn-recommend:active { transform: translateY(1px) scale(0.98); }
/* the two recommend buttons sit side by side (stack on small screens) */
.reco-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* === HERO PICK === Forky's recommendation is the star of the homepage.
   The buttons stack: big "Recommend" on top, smaller "Suits my taste" under it. */
.hero-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px 0 6px; width: 100%; }
/* the big main button — wide and tall so it's clearly the thing to tap */
.btn-recommend.btn-hero {
  width: 100%;
  max-width: 440px;
  font-size: 20px;
  padding: 20px 28px;
}
/* the secondary "Suits my taste" — a touch smaller so the hero button leads */
.btn-recommend.btn-sub { font-size: 15px; padding: 11px 22px; }
/* the "suits my taste" button — a warm love-themed pink to stand apart from the random one */
.btn-taste { background: linear-gradient(135deg, #FF7AA2, #FF4E83); box-shadow: 0 8px 18px rgba(255, 78, 131, 0.35); }
.btn-taste:hover { box-shadow: 0 12px 24px rgba(255, 78, 131, 0.45); }

/* the card showing Forky's pick */
.recommend-card {
  margin-top: 20px;
  color: var(--ink);
  font-weight: 700;
}
.recommend-card:empty { display: none; }
.pick-emoji { font-size: 44px; }
.pick-title { font-family: "Baloo 2", sans-serif; font-size: 22px; margin-top: 4px; }
.pick-food { color: var(--muted); font-weight: 600; margin: 4px 0 10px; }

/* ===== FEEDBACK BOX ===== */
.feedback {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 20px;
  text-align: center;
}
.feedback h2 { font-family: "Baloo 2", sans-serif; font-size: 30px; margin-bottom: 8px; }
.feedback-sub { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.feedback-input {
  width: 100%;
  border: 2px solid #DCE6F5;
  border-radius: var(--r);
  padding: 15px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  resize: vertical;
  outline: none;
  margin-bottom: 14px;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.feedback-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12); }

/* ===== SIGN-UP / LOG-IN PAGE ===== */
.auth {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: rise 0.5s both;     /* the card floats up on load */
}
.auth-logo {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 10px 10px rgba(47, 128, 237, 0.25));
  animation: float 3s ease-in-out infinite;
}
.auth-title { font-family: "Baloo 2", sans-serif; font-size: 30px; font-weight: 800; margin-top: 8px; }
.auth-sub { color: var(--muted); font-weight: 600; margin: 6px 0 22px; }

/* the "Continue with Google" button — white with a soft border, like Google's own */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--white);
  border: 2px solid #DCE6F5;
  border-radius: var(--r-pill);
  padding: 13px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--fast);
}
.google-btn:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.google-btn img { width: 20px; height: 20px; }

/* the "or" line between Google and the email form */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #DCE6F5, transparent);
}

/* the email/password form */
.auth-field { text-align: left; margin-bottom: 14px; }
.auth-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.auth-input {
  width: 100%;
  border: 2px solid #DCE6F5;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.auth-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12); }

.auth-submit { width: 100%; margin-top: 6px; }   /* the big Create/Log in button (uses .btn-primary) */

.auth-msg { min-height: 22px; margin-top: 14px; font-weight: 700; color: var(--green-dark); }
.auth-msg.error { color: #C0392B; }   /* show problems in red */

.auth-toggle { margin-top: 18px; color: var(--muted); font-weight: 600; }
.auth-toggle a { color: var(--blue); font-weight: 800; cursor: pointer; text-decoration: none; }
.auth-toggle a:hover { text-decoration: underline; }

.auth-note {
  max-width: 440px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
/* the name field hides itself when we switch to "Log in" mode */
.auth.login-mode #name-field { display: none; }

/* ===== RESULTS PAGE ===== */
.demo-banner {
  text-align: center;
  background: linear-gradient(90deg, #FFF1CC, #FFF6D9);
  color: #8a6d00;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
}
.result {
  max-width: 760px;          /* one neat, readable column, centred on the page */
  margin: 0 auto;
  padding: 28px 24px 70px;
}
/* SINGLE COLUMN: everything stacks top-to-bottom at the same width — no more
   uneven two-column gap. The two .col groups just flow one after the other. */
.result-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* let the flex "gap" handle ALL the spacing, so every card sits an equal distance
   apart (the cards used to add their own top-margin, which doubled the gaps). */
.col > * { margin-top: 0; }
@media (max-width: 820px) {
  .result { padding: 24px 18px 60px; }
}

/* food-photo placeholders (real photos arrive with Google) */
.photo-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 96px 96px;
  gap: 10px;
}
.photo-tile {
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow-sm);
}
.photo-tile.t1 { grid-row: 1 / 3; font-size: 64px; background: linear-gradient(135deg, #2F80ED, #27AE60); }
.photo-tile.t2 { background: linear-gradient(135deg, #FF8008, #FFC837); }
.photo-tile.t3 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.photo-tile.t4 { grid-column: 2 / 4; background: linear-gradient(135deg, #6a3df0, #2F80ED); }
img.photo-tile { width: 100%; height: 100%; object-fit: cover; }
.photo-note { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; margin: 10px 0 0; }

/* ⭐ Save-to-favorites button on the results page */
.fav-btn {
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: var(--white);
  border: 2px solid #DCE6F5;
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), background var(--fast);
}
.fav-btn:hover { border-color: var(--coral); transform: translateY(-2px); }
.fav-btn.on { border-color: var(--coral); background: #FFF0EC; color: var(--coral); }

/* 🍽️ "Your perfect meal" — main dish + pairings */
.meal-items { display: flex; flex-direction: column; gap: 10px; }
.meal-row { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.meal-row.meal-main { background: #E3F9EC; border-radius: var(--r-sm); padding: 12px 14px; }
.meal-ic { font-size: 22px; width: 26px; text-align: center; flex: none; }
.meal-tag { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.meal-course { color: var(--muted); font-weight: 700; font-size: 13px; }
.meal-note-text { margin-top: 4px; color: var(--ink); font-weight: 600; font-style: italic; }
.meal-menu-link { margin-top: 14px; }
.menu-link-top { margin-top: 12px; }
/* a clear, tappable button to the real restaurant menu */
.menu-btn {
  display: inline-block;
  background: var(--grad-blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 14px rgba(47, 128, 237, 0.3);
  transition: transform var(--fast), filter var(--fast);
}
.menu-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* 🍕 "Food you might like" picture tiles (from your tastes) */
.taste-food-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.taste-food-tile {
  position: relative;
  min-height: 135px;             /* grows taller if the dish name is long → nothing gets cut off */
  border-radius: var(--r);
  background: var(--bg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E6ECF5;
  transition: transform var(--fast), box-shadow var(--fast);
}
.taste-food-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tf-emoji { font-size: 40px; line-height: 1; }
.tf-name {
  font-weight: 800;
  color: var(--ink);
  text-transform: capitalize;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  width: 100%;
  word-break: break-word;        /* long names wrap onto a second line instead of clipping */
}
.taste-food-tile.has-photo { min-height: 145px; justify-content: flex-end; }
.taste-food-tile.has-photo .tf-emoji { display: none; }
.taste-food-tile.has-photo .tf-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  color: #fff; padding: 22px 10px 10px;
  font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));  /* darker so white text is always readable */
}

.place-head { text-align: center; margin-bottom: 24px; }
.place-name { font-family: "Baloo 2", sans-serif; font-size: 40px; }
.place-stars { font-size: 18px; font-weight: 700; margin-top: 6px; }
.muted-text { color: var(--muted); font-weight: 600; }
.correction { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 8px; }
.correction:empty { display: none; }

/* cuisine chips under the place name */
.cuisine-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cuisine-chip {
  background: #E6F0FF;
  color: var(--blue-dark);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 700;
}
.cuisine-chip.chip-love  { background: #E3F9EC; color: var(--green-dark); }
.cuisine-chip.chip-avoid { background: #FFF4E0; color: #B26A00; }
.order-card .cuisine-chips { justify-content: flex-start; }

/* the free OpenStreetMap map */
.place-map { margin-top: 18px; }
.place-map:empty { display: none; }
.place-map iframe { display: block; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.map-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* "Good to know" info card */
.place-info { display: flex; flex-direction: column; gap: 10px; }
.info-row { font-size: 15px; line-height: 1.5; }
.info-ic { margin-right: 6px; }
.info-label { font-weight: 800; }
.info-val { color: var(--ink); }
.info-row a { color: var(--blue); font-weight: 700; }

/* The star feature: personal pick, big and green */
.for-you {
  background: var(--grad-green);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(39, 174, 96, 0.30);
}
.for-you-score { font-family: "Baloo 2", sans-serif; font-size: 32px; font-weight: 800; }
.for-you-text { font-size: 17px; font-weight: 600; margin-top: 10px; }

/* The info cards (reviews, health) */
.card-block {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--fast), box-shadow var(--fast);
}
.card-block:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-block h2 { font-family: "Baloo 2", sans-serif; font-size: 21px; margin-bottom: 14px; }
.say-list { list-style: none; }
.say-list li { padding: 6px 0; font-size: 16px; font-weight: 600; }
.say-list .good { color: var(--green-dark); }
.say-list .bad  { color: #C0392B; }
.health-good { color: var(--green-dark); font-size: 20px; font-weight: 800; }

/* a full-width button for "check another place" */
.big-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 28px;
}

/* ⭐ "What to order" highlight: the most popular dish (blue) + your pick (green) */
.order-highlight { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.order-pop, .order-pick {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
}
.order-pop  { background: #EAF2FE; color: #1B4F9C; }   /* 💙 blue = the crowd favourite */
.order-pick { background: #E7F8EE; color: #1E7A45; }   /* 💚 green = made for you */

/* "Check another place" — a clear outlined blue button under the green Recommend one.
   Visible and easy to tap, but the green button still leads as the main action. */
.another-link {
  display: block;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  margin: 14px auto 0;
  padding: 15px 26px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  color: #2F80ED;
  background: #fff;
  border: 2px solid #2F80ED;
  border-radius: var(--r-pill);
  transition: transform var(--fast), background var(--fast), color var(--fast);
}
.another-link:hover { background: #2F80ED; color: #fff; transform: translateY(-2px); }
.another-link:active { transform: translateY(1px) scale(0.98); }

/* ===== AI KEY BOX (make Tony a real AI) ===== */
.key-box {
  background: linear-gradient(135deg, #FFF8E1, #FFF6D9);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b5800;
}
.key-row { display: flex; gap: 8px; margin: 10px 0; }
.key-note { font-size: 12px; margin-top: 4px; }
.key-status { text-align: center; margin-top: 12px; color: var(--green-dark); font-weight: 700; }

/* ===== AI WAITER CHAT ===== */
.waiter {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.waiter-head { text-align: center; margin-bottom: 20px; }
.waiter-head h1 { font-family: "Baloo 2", sans-serif; font-size: 33px; }

.chat {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px;
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
/* A single chat bubble */
.bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  animation: rise 0.3s both;     /* each new message pops up gently */
}
.bubble.waiter {
  background: var(--bg);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.bubble.you {
  background: var(--grad-blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-box {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  background: var(--white);
  padding: 10px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

/* quick-question chips */
.quick-qs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.chip {
  background: var(--white);
  border: 2px solid #DCE6F5;
  color: var(--blue);
  font-family: inherit;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--fast);
}
.chip:hover { border-color: var(--blue); background: var(--blue); color: var(--white); transform: translateY(-2px); }

/* a button that looks like the green personal-pick, for the waiter link */
.btn-waiter {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--grad-green);
  color: var(--white);
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 21px;
  padding: 20px 18px;
  border-radius: var(--r);
  margin-top: 22px;
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.40);
  animation: waiter-pulse 2s ease-in-out infinite;
  transition: transform var(--fast);
}
.btn-waiter:hover {
  transform: scale(1.03);
  animation: none;
}
@keyframes waiter-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(39, 174, 96, 0.32); }
  50%      { box-shadow: 0 12px 30px rgba(39, 174, 96, 0.58); }
}

/* ===== ABOUT / PRIVACY PAGE ===== */
.about { max-width: 720px; margin: 0 auto; padding: 34px 20px 60px; }
.about-head { text-align: center; margin-bottom: 18px; }
.about-head img {
  width: 88px; height: auto;
  filter: drop-shadow(0 12px 12px rgba(47, 128, 237, 0.25));
  animation: float 3s ease-in-out infinite;
}
.about-title { font-family: "Baloo 2", sans-serif; font-size: 38px; font-weight: 800; margin-top: 8px; }
.about-sub { color: var(--muted); font-weight: 600; font-size: 18px; margin-top: 4px; }
.about .card-block p { font-weight: 600; color: var(--ink); }
.about .card-block p + p { margin-top: 10px; }

/* ===== GUIDE / ADMIN rows ===== */
.guide-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EEF3FB; }
.guide-row:last-child { border-bottom: none; }
.guide-ic { font-size: 22px; width: 28px; text-align: center; }
.guide-text { flex: 1; font-weight: 600; }
.guide-gems { font-weight: 800; color: var(--green-dark); }
.guide-status { font-size: 18px; }
.guide-row:not(.earned) .guide-text { color: var(--muted); }
.admin-note { text-align: center; }

/* ===== 🖼️ AVATAR (profile picture) SHOP ===== */
.avatar-emoji { display: flex; align-items: center; justify-content: center; font-size: 48px; }
.avatar-shop { display: flex; flex-wrap: wrap; gap: 26px 14px; padding-bottom: 4px; }
.avatar-opt {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #DCE6F5;
  background: var(--bg);
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform var(--fast), border-color var(--fast);
}
.avatar-opt:hover { transform: scale(1.1); border-color: var(--blue); }
.avatar-opt img { width: 78%; height: 78%; object-fit: contain; }
.avatar-opt.locked { filter: grayscale(0.4) brightness(0.9); }
.avatar-opt.locked::before {
  content: "🔒";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.avatar-cost {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap;
}

/* ===== EXPLORE MAP PAGE ===== */
.explore { max-width: 960px; margin: 0 auto; padding: 30px 20px 60px; }
.explore-title { font-family: "Baloo 2", sans-serif; font-size: 34px; font-weight: 800; text-align: center; }
.explore-sub { text-align: center; color: var(--muted); font-weight: 600; margin: 6px 0 18px; }
.explore-status { text-align: center; color: var(--muted); font-weight: 700; min-height: 22px; margin: 10px 0; }
.explore-map {
  height: 64vh;
  min-height: 380px;
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  z-index: 0;                 /* keep the map below the sticky navbar */
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--blue); font-weight: 800; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ===== TASTE GATE — Forky's sign-up card for guests on results page ===== */
.taste-gate-card {
  text-align: center;
  padding: 28px 20px 24px;
}
.taste-gate-card .gate-forky {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eaf1ff;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(37,99,235,.12);
}
.taste-gate-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text, #1a1a2e);
}
.taste-gate-card p {
  font-size: 0.92rem;
  color: var(--muted, #6b7280);
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 290px;
}
.taste-gate-card .gate-signup-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue, #2563eb), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.30);
  transition: transform .15s, box-shadow .15s;
}
.taste-gate-card .gate-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
}
.taste-gate-card .gate-login-link {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
  text-decoration: none;
}
.taste-gate-card .gate-login-link:hover { text-decoration: underline; }

/* ===== RESPONSIVE: look good & centred on EVERY device ===== */
img, iframe { max-width: 100%; }

/* tablets and down: tidy the top bar so it doesn't overflow */
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 18px; }
  .nav { gap: 14px; flex-wrap: wrap; }
}

/* phones: bigger touch targets, stacked search, smaller headings */
@media (max-width: 600px) {
  .hero { padding: 32px 16px 56px; }
  .hero-title { font-size: 46px; }
  .hero-tagline { font-size: 18px; }
  .place-name { font-size: 32px; }
  .how, .feedback { padding: 44px 16px; }
  .how h2, .feedback h2 { font-size: 27px; }
  .hero-deco { display: none; }   /* keep small screens clean & uncluttered */

  /* stack the search and chat boxes so input + button each get full width */
  .search-box, .chat-box { flex-direction: column; border-radius: var(--r); }
  .search-box .btn-primary,
  .chat-box .btn-primary { width: 100%; }

  .brand-name { font-size: 22px; }

  /* new bits stack & stay tappable on phones */
  .helpful-btns { flex-direction: column; }
  .helpful-btn { width: 100%; justify-content: center; }
  .share-btn { width: 100%; }
}

/* ===== 🔢 "searches left today" badge (results page) ===== */
.searches-left {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  margin: 8px auto 0;
}

/* ===== 👍👎 "Was this helpful?" card (results page) ===== */
.helpful-card { text-align: center; }
.helpful-q { font-weight: 800; font-size: 17px; margin: 0 0 14px; }
.helpful-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 2px solid #DCE6F5;
  border-radius: var(--r-pill);
  padding: 10px 22px;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), background var(--fast);
}
.helpful-btn:hover { transform: translateY(-2px); border-color: var(--green); background: #E3F9EC; }

/* ===== 📲 Share BiteBuddy button (homepage footer + results page) ===== */
.share-btn {
  display: flex;                 /* block-level + full width so it matches the big button */
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 6px;
  background: var(--grad-blue);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 26px;            /* same padding + font as .btn-primary → same height */
  font-family: inherit;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.35);
  transition: transform var(--fast), filter var(--fast);
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
/* in the homepage footer, keep it a compact centered button (not full width) */
.footer .share-btn { display: inline-flex; width: auto; margin: 4px auto 10px; }
