@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --saffron: #FF6B00;
  --saffron-dk: #D45A00;
  --turmeric: #F5A623;
  --chilli: #C0392B;
  --navy: #1A1F36;
  --bg: #FDFAF6;
  --bg-warm: #FFF8EE;
  --bg-card: #FFFFFF;
  --text: #1C1209;
  --text-sub: #6B5F52;
  --text-muted: #A0978D;
  --border: #EDE5D8;
  --shadow: 0 2px 16px rgba(28,18,9,.08);
  --shadow-lg: 0 8px 40px rgba(28,18,9,.14);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --search-h: 0px; /* overridden on mobile */
  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.25,.8,.25,1);
}

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--bg); color: var(--text); line-height: 1.65; padding-bottom: 72px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: var(--nav-h);
  background: rgba(253,250,246,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; gap: 1.25rem;
}
.nav-logo { display: flex; align-items: center; gap: .5rem; white-space: nowrap; z-index: 201; }
.logo-mark { font-size: 1.5rem; }
.logo-text { font-family: var(--fd); font-size: 1.3rem; font-weight: 700; }
.logo-text em { color: var(--saffron); font-style: normal; }

.nav-search {
  flex: 1; max-width: 380px;
  display: flex; align-items: center;
  background: var(--bg-warm); border: 1.5px solid var(--border);
  border-radius: 50px; overflow: hidden; transition: border-color .2s;
}
.nav-search:focus-within { border-color: var(--saffron); }
.nav-search input { flex: 1; padding: .45rem 1rem; border: none; background: none; font-size: .875rem; outline: none; }
.nav-search button { padding: .45rem 1rem; color: var(--saffron); }

/* Desktop nav links */
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link { padding: .4rem .7rem; border-radius: 8px; font-size: .875rem; font-weight: 500; transition: background .2s; white-space: nowrap; }
.nav-link:hover { background: var(--bg-warm); }
.btn-join { background: var(--saffron); color: #fff; padding: .42rem 1.1rem; border-radius: 50px; font-size: .85rem; font-weight: 600; transition: background .2s; }
.btn-join:hover { background: var(--saffron-dk); }

/* Dropdown */
.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: .4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s var(--ease); z-index: 300;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.drop-menu::-webkit-scrollbar {
  width: 4px;
}

.drop-menu::-webkit-scrollbar-track {
  background: transparent;
}

.drop-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.drop-menu.right { left: auto; right: 0; }
.nav-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; font-size: .85rem; transition: background .15s; }
.drop-menu a:hover { background: var(--bg-warm); }
.drop-section { padding: .3rem 1rem .15rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: .25rem; }
.drop-menu hr { border: none; border-top: 1px solid var(--border); margin: .25rem 0; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--saffron); }

/* Hamburger — desktop hidden, shown only on tablet if needed */
.hamburger { display: none; }

/* Mobile search bar — sits below navbar, fixed */
.mobile-search {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 9000;
  padding: .6rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.mobile-search form { display: flex; background: var(--bg-warm); border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; }
.mobile-search input { flex: 1; padding: .5rem 1rem; border: none; background: none; outline: none; font-size: .9rem; }
.mobile-search button { padding: 0 1rem; color: var(--saffron); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1596797038530-2c107229654b?w=1800&q=80') center/cover;
  filter: brightness(.32) saturate(.8);
}
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: .35; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 5rem 1.5rem 5rem 8%; max-width: 700px; animation: fadeUp .9s var(--ease) both; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); padding: .3rem .9rem; border-radius: 50px; color: rgba(255,255,255,.9); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-title { font-family: var(--fd); color: #fff; font-size: clamp(2.6rem,6vw,4.2rem); line-height: 1.12; margin-bottom: 1.1rem; font-weight: 700; }
.hero-title em { color: var(--turmeric); font-style: italic; }
.hero-title .hl { color: var(--saffron); }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; max-width: 520px; }
.hero-form { display: flex; background: #fff; border-radius: 50px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35); max-width: 560px; margin-bottom: 1.75rem; }
.hero-form input { flex: 1; padding: .95rem 1.4rem; border: none; outline: none; font-size: .95rem; background: transparent; }
.hero-form button { background: var(--saffron); color: #fff; padding: .95rem 1.6rem; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .45rem; transition: background .2s; border: none; cursor: pointer; }
.hero-form button:hover { background: var(--saffron-dk); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9); padding: .28rem .85rem; border-radius: 50px; font-size: .78rem; transition: background .2s; }
.hero-chip:hover { background: rgba(255,255,255,.22); }

.hero-floats { display: none; position: absolute; right: 6%; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 1rem; z-index: 3; }
.hero-float { width: 175px; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.4); animation: floatIn .8s var(--ease) both; animation-delay: calc(var(--i) * .15s); transition: transform .25s; }
.hero-float:hover { transform: scale(1.04); }
.hero-float img { width: 100%; height: 115px; object-fit: cover; }
.hero-float-label { background: #fff; padding: .5rem .75rem; font-size: .78rem; font-weight: 600; }
.hero-float-time { font-size: .7rem; color: var(--text-muted); }

/* ── SECTIONS ── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-warm); }
.section-dark { background: var(--navy); }
.section-dark .section-title, .section-dark .recipe-title { color: #fff; }
.section-dark .recipe-card { background: #242B4A; border-color: #2D3660; }
.section-dark .recipe-desc { color: rgba(255,255,255,.55); }
.section-dark .recipe-meta { color: rgba(255,255,255,.65); }
.section-saffron { background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dk) 100%); }
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.section-title { font-family: var(--fd); font-size: 1.8rem; font-weight: 700; }
.see-all { color: var(--saffron); font-size: .875rem; font-weight: 600; }

/* ── CATEGORY PILLS ── */
.cat-scroll { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { display: flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .5rem 1.1rem; border-radius: 50px; border: 1.5px solid var(--c, var(--saffron)); color: var(--c, var(--saffron)); font-size: .82rem; font-weight: 500; transition: all .2s; flex-shrink: 0; cursor: pointer; }
.cat-pill:hover, .cat-pill.active { background: var(--c, var(--saffron)); color: #fff; }

/* ── RECIPE GRID ── */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.recipe-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: block; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; height: 196px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.recipe-card:hover .card-img img { transform: scale(1.07); }
.card-badge { position: absolute; font-size: .68rem; font-weight: 700; padding: .22rem .6rem; border-radius: 50px; letter-spacing: .04em; text-transform: uppercase; }
.badge-trend { bottom: .7rem; left: .7rem; background: var(--saffron); color: #fff; }
.badge-diet { top: .7rem; right: .7rem; background: rgba(255,255,255,.92); color: var(--text); font-size: .8rem; padding: .2rem .45rem; }
.badge-festival { top: .7rem; left: .7rem; background: var(--turmeric); color: #fff; }
.card-body { padding: 1rem 1.1rem 1.1rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; }
.recipe-meta { font-size: .78rem; color: var(--text-muted); }
.diff-badge { font-size: .7rem; font-weight: 700; padding: .18rem .55rem; border-radius: 50px; }
.diff-easy { background: #E6F9EE; color: #1E8449; }
.diff-medium { background: #FEF9E7; color: #D4AC0D; }
.diff-hard { background: #FDEDEC; color: #C0392B; }
.recipe-title { font-family: var(--fd); font-size: 1.05rem; line-height: 1.3; margin-bottom: .4rem; }
.recipe-desc { font-size: .8rem; color: var(--text-sub); line-height: 1.55; margin-bottom: .7rem; }
.card-footer { display: flex; gap: .9rem; font-size: .76rem; color: var(--text-muted); }
.card-state { font-size: .75rem; color: var(--text-muted); margin-top: .35rem; }

/* Scroll row */
.recipe-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.recipe-scroll::-webkit-scrollbar { display: none; }
.recipe-card-sm { flex-shrink: 0; width: 168px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; display: block; transition: transform .2s; }
.recipe-card-sm:hover { transform: translateY(-3px); }
.recipe-card-sm img { width: 100%; height: 115px; object-fit: cover; }
.card-sm-body { padding: .55rem .7rem; }
.card-sm-body h4 { font-size: .82rem; font-weight: 600; line-height: 1.3; margin-bottom: .2rem; }
.card-sm-body span { font-size: .72rem; color: var(--text-muted); }

/* ── STATE EXPLORER ── */
.region-tabs { display: flex; gap: .5rem; overflow-x: auto; margin-bottom: 1.5rem; padding-bottom: .35rem; scrollbar-width: none; }
.region-tabs::-webkit-scrollbar { display: none; }
.region-tab { padding: .4rem .95rem; border-radius: 50px; border: 1.5px solid var(--border); font-size: .82rem; font-weight: 500; white-space: nowrap; transition: all .2s; cursor: pointer; }
.region-tab.active, .region-tab:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.state-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.1rem .5rem; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); text-align: center; transition: all .2s; cursor: pointer; }
.state-card:hover { border-color: var(--saffron); background: var(--bg-warm); color: var(--saffron); }
.state-card .s-name { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.state-card .s-lang { font-size: .68rem; color: var(--text-muted); }
.state-card .s-native { font-size: .7rem; color: var(--text-muted); font-family: var(--fd); }

/* ── CUISINE GRID ── */
.cuisine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.cuisine-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1rem; transition: all .2s; cursor: pointer; }
.cuisine-card:hover { border-color: var(--saffron); box-shadow: var(--shadow); }
.cuisine-card h4 { font-family: var(--fd); font-size: 1rem; margin-bottom: .3rem; }
.cuisine-card p { font-size: .75rem; color: var(--text-muted); line-height: 1.5; }

/* ── CTA ── */
.cta-band { padding: 4rem 1.5rem; text-align: center; }
.cta-band h2 { font-family: var(--fd); color: #fff; font-size: 2.2rem; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-w { background: #fff; color: var(--saffron); padding: .75rem 2rem; border-radius: 50px; font-weight: 700; }
.btn-cta-o { border: 2px solid rgba(255,255,255,.6); color: #fff; padding: .75rem 2rem; border-radius: 50px; font-weight: 600; }

/* ── RECIPE DETAIL ── */
.detail-page { padding-top: var(--nav-h); }
.detail-hero { position: relative; height: 62vh; min-height: 340px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 55%, transparent 100%); display: flex; align-items: flex-end; }
.detail-hero-overlay .container { padding-bottom: 2rem; }
.breadcrumb { font-size: .78rem; color: rgba(255,255,255,.65); margin-bottom: .6rem; }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: #fff; }
.detail-title { font-family: var(--fd); font-size: clamp(1.8rem,4vw,3rem); color: #fff; line-height: 1.15; margin-bottom: .65rem; }
.detail-badges { display: flex; gap: .65rem; flex-wrap: wrap; }
.detail-badge { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: .28rem .75rem; border-radius: 50px; font-size: .78rem; font-weight: 500; }
.detail-container { padding: 2rem 0 5rem; }
.detail-layout { display: grid; grid-template-columns: 1fr 310px; gap: 2.5rem; }

.lang-switcher-box { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.5rem; }
.lang-switcher-box .slabel { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .6rem; }
.lang-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.lang-btn { padding: .28rem .7rem; border-radius: 50px; border: 1.5px solid var(--border); font-size: .75rem; cursor: pointer; transition: all .15s; }
.lang-btn.active, .lang-btn:hover { border-color: var(--saffron); color: var(--saffron); background: rgba(255,107,0,.07); }

.recipe-body-desc { font-size: 1.05rem; line-height: 1.8; color: var(--text-sub); margin-bottom: 2rem; }
.stats-bar { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.stat-box { flex: 1; text-align: center; padding: 1rem .5rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: .18rem; }
.stat-box:last-child { border-right: none; }
.stat-box i { color: var(--saffron); font-size: .85rem; }
.stat-box strong { font-size: 1.05rem; font-family: var(--fd); }
.stat-box small { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.recipe-section { margin-bottom: 2.5rem; }
.recipe-section h2 { font-family: var(--fd); font-size: 1.4rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.recipe-section h2 i { color: var(--saffron); }
.ingredients-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.ing-row { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.ing-row input { display: none; }
.check-circle { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 3px; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.ing-row input:checked ~ .check-circle { background: var(--saffron); border-color: var(--saffron); }
.ing-row input:checked ~ .check-circle::after { content: '✓'; color: #fff; font-size: .7rem; }
.ing-row input:checked ~ .ing-label { text-decoration: line-through; color: var(--text-muted); }
.ing-label { line-height: 1.5; font-size: .9rem; }

.steps-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.step-row { display: flex; gap: 1rem; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--saffron); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .88rem; flex-shrink: 0; margin-top: 4px; }
.step-body { flex: 1; }
.step-body p { line-height: 1.75; font-size: .95rem; }
.step-tip { margin-top: .65rem; padding: .55rem .85rem; background: #FFF8E6; border-left: 3px solid var(--turmeric); border-radius: 0 8px 8px 0; font-size: .82rem; color: var(--text-sub); }
.step-time-tag { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .77rem; color: var(--text-muted); }

.rating-row { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.star-btn { font-size: 1.9rem; color: var(--border); transition: color .12s; cursor: pointer; }
.star-btn.on, .star-btn:hover { color: var(--turmeric); }
.rating-avg { margin-left: .75rem; font-size: .85rem; color: var(--text-muted); }

.detail-sidebar { display: flex; flex-direction: column; gap: 1.1rem; }
.save-recipe-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .9rem; border-radius: var(--radius); background: var(--saffron); color: #fff; font-weight: 700; font-size: .95rem; transition: all .2s; cursor: pointer; border: none; }
.save-recipe-btn.saved { background: #1E8449; }
.save-recipe-btn:hover { opacity: .9; }
.side-box { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.side-box h4 { font-family: var(--fd); font-size: 1rem; margin-bottom: .85rem; }
.share-btns { display: flex; gap: .55rem; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: opacity .2s; cursor: pointer; text-decoration: none; }
.share-btn:hover { opacity: .8; }
.share-wa { background: #25D366; color: #fff; }
.share-tw { background: #1DA1F2; color: #fff; }
.share-cp { background: var(--border); color: var(--text); border: none; }
.info-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-muted); }
.related-item { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); transition: opacity .2s; }
.related-item:last-child { border-bottom: none; }
.related-item:hover { opacity: .75; }
.related-item img { width: 58px; height: 50px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.related-item div { display: flex; flex-direction: column; gap: .18rem; }
.related-item strong { font-size: .82rem; line-height: 1.3; }
.related-item small { font-size: .72rem; color: var(--text-muted); }

/* ── EXPLORE PAGE ── */
.explore-wrap { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 4rem; }
.explore-head h1 { font-family: var(--fd); font-size: 2.25rem; margin-bottom: .4rem; }
.explore-head p { color: var(--text-muted); margin-bottom: 1.5rem; }
.explore-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
.filters-panel { position: sticky; top: calc(var(--nav-h) + 1rem); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.filters-panel h3 { font-family: var(--fd); font-size: 1rem; }
.f-group label { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .35rem; }
.f-group input, .f-group select { width: 100%; padding: .5rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; background: var(--bg); outline: none; transition: border-color .2s; }
.f-group input:focus, .f-group select:focus { border-color: var(--saffron); }
.filter-apply { width: 100%; padding: .65rem; background: var(--saffron); color: #fff; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; border: none; cursor: pointer; }
.filter-clear { display: block; text-align: center; font-size: .82rem; color: var(--text-muted); margin-top: .25rem; }
.results-label { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.1rem; }

/* ── STATE DETAIL ── */
.state-hero { position: relative; height: 52vh; min-height: 300px; margin-top: var(--nav-h); }
.state-hero img { width: 100%; height: 100%; object-fit: cover; }
.state-hero-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%); display: flex; align-items: flex-end; }
.state-hero-ov .container { padding-bottom: 2rem; }
.state-native { font-family: var(--fd); font-size: 1.1rem; color: rgba(255,255,255,.7); display: block; margin-bottom: .3rem; }
.state-title { font-family: var(--fd); font-size: clamp(2rem,5vw,3.5rem); color: #fff; font-weight: 700; }
.state-region-tag { display: inline-block; background: var(--saffron); color: #fff; padding: .25rem .75rem; border-radius: 50px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .5rem; }
.state-lang-bar { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.state-lang-bar .label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.state-cuisine-summary { font-size: 1rem; line-height: 1.8; color: var(--text-sub); max-width: 720px; margin-bottom: 2rem; padding: 1.25rem; background: var(--bg-warm); border-radius: var(--radius-sm); border-left: 4px solid var(--saffron); }

/* ── AUTH ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem; background: var(--bg); }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 2.5rem 2rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { font-size: 2.5rem; text-align: center; margin-bottom: .75rem; }
.auth-card h1 { font-family: var(--fd); font-size: 1.8rem; text-align: center; margin-bottom: .35rem; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: .88rem; margin-bottom: 1.75rem; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; padding: .75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; margin-bottom: 1.2rem; cursor: pointer; }
.btn-google:hover { border-color: #4285F4; box-shadow: 0 0 0 3px rgba(66,133,244,.12); }
.divider { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; color: var(--text-muted); font-size: .78rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-group { margin-bottom: .9rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .6rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; outline: none; transition: border-color .2s; background: var(--bg); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--saffron); }
.field-err { font-size: .78rem; color: var(--chilli); margin-top: .25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.remember-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; font-size: .84rem; }
.remember-row label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.remember-row a { color: var(--saffron); }
.btn-auth { width: 100%; padding: .8rem; background: var(--saffron); color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; transition: background .2s; cursor: pointer; border: none; margin-bottom: .9rem; }
.btn-auth:hover { background: var(--saffron-dk); }
.auth-switch { text-align: center; font-size: .875rem; color: var(--text-muted); }
.auth-switch a { color: var(--saffron); font-weight: 600; }

/* ── PROFILE ── */
.profile-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 4rem; }
.profile-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; height: fit-content; position: sticky; top: calc(var(--nav-h) + 1rem); }
.p-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--saffron); }
.p-name { font-family: var(--fd); font-size: 1.2rem; }
.p-email { font-size: .82rem; color: var(--text-muted); margin: .25rem 0 .75rem; }
.p-bio { font-size: .85rem; line-height: 1.6; color: var(--text-sub); margin-bottom: .75rem; }
.p-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 1rem; }
.p-tag { font-size: .75rem; background: var(--bg-warm); padding: .28rem .65rem; border-radius: 50px; }
.btn-edit { display: block; padding: .55rem 1.25rem; border-radius: var(--radius-sm); border: 1.5px solid var(--saffron); color: var(--saffron); font-weight: 600; font-size: .85rem; transition: all .2s; }
.btn-edit:hover { background: var(--saffron); color: #fff; }

/* ── FOOTER ── */
.footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 4rem 1.5rem 1.75rem; }
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand p { margin-top: .75rem; font-size: .85rem; line-height: 1.65; opacity: .65; max-width: 260px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-col a { display: block; font-size: .85rem; opacity: .65; margin-bottom: .45rem; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { max-width: 1320px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; opacity: .45; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: var(--turmeric); }

/* ── BOTTOM NAV ── */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: #fff; border-top: 1px solid var(--border); padding: .5rem 0; box-shadow: 0 -4px 20px rgba(0,0,0,.07); flex-direction: row; }
.bnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; color: var(--text-muted); transition: color .2s; }
.bnav-item i { font-size: 1.15rem; }
.bnav-item.active, .bnav-item:hover { color: var(--saffron); }

/* ── ALERTS ── */
.alerts-wrap { position: fixed; top: calc(var(--nav-h) + .75rem); right: 1rem; z-index: 400; display: flex; flex-direction: column; gap: .5rem; }
.alert-pill { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; box-shadow: var(--shadow); min-width: 250px; max-width: 340px; animation: fadeUp .35s var(--ease); }
.alert-success { background: #E8F9EE; color: #1A6B35; border: 1px solid #A9DFBF; }
.alert-error { background: #FDEDEC; color: #922B21; border: 1px solid #F5B7B1; }
.alert-close { margin-left: auto; cursor: pointer; opacity: .6; font-size: 1.1rem; }

/* ── EMPTY STATE ── */
.empty { text-align: center; padding: 4rem 2rem; }
.empty .e-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.empty h3 { font-family: var(--fd); font-size: 1.4rem; margin-bottom: .5rem; }
.empty p { color: var(--text-muted); margin-bottom: 1.5rem; }
.empty a { color: var(--saffron); font-weight: 600; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floatIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

/* ── RESPONSIVE ── */
@media (min-width: 1100px) { .hero-floats { display: flex; } }

@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .explore-layout { grid-template-columns: 200px 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ═══════════════════════════════════════════════
   MOBILE — 768px and below
   No hamburger. No slide-out menu.
   Bottom nav handles all navigation.
   Top navbar = logo + search only.
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --search-h: 52px;
  }

  /* Hide all desktop nav links — bottom nav replaces them */
  .nav-links { display: none !important; }
  .hamburger { display: none !important; }

  /* Desktop search bar hidden, mobile one shown */
  .nav-search { display: none; }
  .mobile-search { display: block; }

  /* Show bottom nav */
  .bottom-nav { display: flex; }

  /* Push ALL page content below navbar + search bar */
  body { padding-top: var(--search-h); }

  /* Hero: already has padding-top from nav-h, add search-h on top */
  .hero { padding-top: calc(var(--nav-h) + var(--search-h)); min-height: 92vh; }
  .hero-content { padding: 2.5rem 1.25rem; }

  /* Pages that use padding-top for nav offset */
  .explore-wrap { padding-top: calc(var(--nav-h) + var(--search-h) + 1rem); }
  .auth-page    { padding-top: calc(var(--nav-h) + var(--search-h) + 1.5rem); }
  .profile-wrap { padding-top: calc(var(--nav-h) + var(--search-h) + 1rem); }
  .state-hero   { margin-top: calc(var(--nav-h) + var(--search-h)); }
  .detail-page  { padding-top: calc(var(--nav-h) + var(--search-h)); }

  /* Recipe grid */
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .85rem; }
  .card-img { height: 148px; }
  .card-body { padding: .75rem; }

  /* Explore */
  .explore-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }

  /* Detail */
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: flex; flex-direction: column; }

  /* Profile */
  .profile-wrap { grid-template-columns: 1fr; }
  .profile-side { position: static; }

  /* Footer */
  .footer-links { grid-template-columns: 1fr 1fr; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* States */
  .states-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .recipe-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .auth-card { padding: 1.75rem 1.1rem; }
  .cta-btns { flex-direction: column; align-items: center; }
}

/* ── ADD THESE STYLES to the bottom of static/css/main.css ── */

/* Language switcher dropdown */
.lang-select-wrap {
  position: relative;
}

.lang-selected-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .55rem .9rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s;
  gap: .5rem;
}

.lang-selected-btn:hover {
  border-color: var(--saffron);
}

.lang-selected-btn i {
  color: var(--saffron);
  font-size: .75rem;
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown::-webkit-scrollbar {
  width: 4px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.lang-option {
  display: block;
  width: 100%;
  padding: .6rem .9rem;
  text-align: left;
  font-size: .85rem;
  color: var(--text);
  border: none;
  background: none;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--bg-warm);
}

.lang-option.active {
  background: rgba(255,107,0,.07);
  color: var(--saffron);
  font-weight: 600;
}