/* ============================================================
   ResipiLokal.com — Main Stylesheet
   Netflix-inspired dark theme for Malaysian recipe platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;900&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Core colours */
  --bg:          #0d0d0d;
  --bg2:         #141414;
  --bg3:         #1a1a1a;
  --card:        #1e1e1e;
  --card-hover:  #252525;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.15);

  /* Brand accent — warm saffron gold (Malaysian spice vibes) */
  --accent:      #f5a623;
  --accent2:     #e8832a;
  --accent-glow: rgba(245,166,35,0.2);
  --accent-dim:  rgba(245,166,35,0.12);

  /* Red for "hot / trending" tags */
  --hot:         #e53935;
  --hot-dim:     rgba(229,57,53,0.15);

  /* Text */
  --text:        #e8e8e8;
  --text-sub:    #a0a0a0;
  --text-muted:  #606060;
  --white:       #ffffff;

  /* Misc */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.6);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --transition:  all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nav-h:       64px;
  --max-w:       1400px;
  --pad:         0 5%;
}

/* ── LIGHT THEME OVERRIDES ─────────────────────────────────── */
:root[data-theme="light"] {
  --bg:          #ffffff;
  --bg2:         #f6f6f3;
  --bg3:         #efeee8;
  --card:        #ffffff;
  --card-hover:  #f7f5f0;
  --border:      rgba(0,0,0,0.08);
  --border-hover:rgba(0,0,0,0.16);

  --text:        #1c1c1c;
  --text-sub:    #5a5750;
  --text-muted:  #8a8778;
  --white:       #0d0d0d;

  --shadow:      0 8px 32px rgba(0,0,0,0.10);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
.font-display { font-family: 'Playfair Display', serif; }

h1, h2, h3 { line-height: 1.2; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-gradient {
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-logo-text span { color: var(--accent); }

.nav-logo-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 1rem;
  transition: var(--transition);
}

.nav-search-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO BANNER (Netflix style) ───────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.loaded { transform: scale(1); }

/* Netflix-style bottom gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,0.7) 40%, rgba(13,13,13,0.2) 70%, transparent 100%),
    linear-gradient(to right, rgba(13,13,13,0.8) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5% 64px;
  max-width: 580px;
  animation: heroFadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.hero-chef-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
}

/* ── AD BANNER ─────────────────────────────────────────────── */
.ad-banner {
  background: var(--bg2);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin: 0 5%;
  /* Hidden site-wide while pending AdSense review — empty ad placeholders
     are a common rejection reason. Remove this line once approved and the
     real <ins class="adsbygoogle"> units are filled in. */
  display: none;
}

/* ── SECTION SHELL ─────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-pad { padding: 48px 5%; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  margin-bottom: 20px;
}

.section-title-group {}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition);
  white-space: nowrap;
}

.section-link:hover { color: var(--accent); }

/* ── HORIZONTAL SCROLL ROW (Netflix rows) ──────────────────── */
.scroll-row {
  display: flex;
  gap: 14px;
  padding: 8px 5% 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar { display: none; }

/* ── RECIPE CARD ───────────────────────────────────────────── */
.recipe-card {
  flex: 0 0 220px;
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition: var(--transition);
  transform-origin: center bottom;
}

.recipe-card:hover {
  transform: scale(1.08) translateY(-8px);
  z-index: 10;
}

.recipe-card-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.recipe-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card-thumb img {
  transform: scale(1.08);
}

/* Gradient overlay on thumb */
.recipe-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  border-radius: var(--radius);
}

.recipe-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--accent);
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
}

.recipe-card-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 14px 12px;
}

.recipe-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.recipe-card-chef {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* Hover info popup (Netflix hover effect) */
.recipe-card-hover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 240px;
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 20;
}

.recipe-card:hover .recipe-card-hover {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.recipe-card-hover-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.recipe-card-hover-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.recipe-card-hover-meta span {
  font-size: 0.75rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 3px;
}

.recipe-card-hover-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.recipe-card-hover .btn {
  width: 100%;
  justify-content: center;
  padding: 9px;
  font-size: 0.82rem;
}

/* ── CHEF CARD ─────────────────────────────────────────────── */
.chef-card {
  flex: 0 0 160px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
}

.chef-card:hover { transform: translateY(-6px); }

.chef-card-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 12px;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: var(--transition);
}

.chef-card:hover .chef-card-avatar {
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.chef-card-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.chef-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.chef-card-count {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.chef-verified {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 2px solid var(--bg2);
}

/* ── CHEF DETAIL PAGE ──────────────────────────────────────── */
.chef-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  margin-top: var(--nav-h);
}

.chef-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.chef-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.chef-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 36px;
  gap: 24px;
}

.chef-hero-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.chef-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chef-hero-info {}

.chef-hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}

.chef-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245,166,35,0.2);
}

.tag-hot {
  background: var(--hot-dim);
  color: var(--hot);
  border-color: rgba(229,57,53,0.2);
}

.chef-hero-followers {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.chef-hero-followers strong { color: var(--accent); }

/* ── RECIPE DETAIL PAGE ────────────────────────────────────── */
.recipe-hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.recipe-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,0.6) 50%, transparent 100%),
    linear-gradient(to right, rgba(13,13,13,0.7) 0%, transparent 50%);
}

.recipe-hero-content {
  position: absolute;
  bottom: 0; left: 0;
  padding: 0 5% 48px;
  z-index: 2;
  max-width: 600px;
}

.recipe-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 48px 5%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.recipe-video-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.tiktok-embed-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  background: #000;
  min-height: 500px;
}

.tiktok-embed-wrap iframe {
  border: none;
  max-width: 380px;
  width: 100%;
  height: 740px;
}

.recipe-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.ingredient-item:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.ingredient-bullet {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  padding-top: 6px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
}

/* Sidebar card */
.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.info-item-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-item-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

/* Chef mini card in sidebar */
.chef-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.chef-mini:hover { border-color: var(--accent); background: var(--accent-dim); }

.chef-mini-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.chef-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chef-mini-name {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.chef-mini-sub { font-size: 0.78rem; color: var(--text-sub); }

/* ── SEARCH PAGE ───────────────────────────────────────────── */
.search-hero {
  padding: calc(var(--nav-h) + 48px) 5% 48px;
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
}

.search-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
}

.search-bar-wrap {
  position: relative;
  max-width: 640px;
}

.search-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 16px 56px 16px 24px;
  font-size: 1rem;
  color: var(--white);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg3);
  color: var(--text-sub);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover, .chip.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── RESULTS GRID ──────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 32px 5%;
}

.results-grid .recipe-card {
  flex: none;
  width: 100%;
}

.results-grid .recipe-card-thumb {
  aspect-ratio: 3/4;
}

/* ── CHEFS PAGE GRID ───────────────────────────────────────── */
.chefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 32px 5%;
}

.chef-big-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.chef-big-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.chef-big-card-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.chef-big-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,1) 0%, transparent 60%);
}

.chef-big-card-body {
  padding: 0 20px 20px;
  position: relative;
}

.chef-big-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin-top: -36px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.chef-big-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chef-big-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.chef-big-card-followers {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.chef-big-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-sub); margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { font-size: 0.9rem; }

/* ── TOAST NOTIFICATION ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
  max-width: 300px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 5% 24px;
  margin-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--accent); }

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: var(--text-sub);
  transition: var(--transition);
}

.footer-links-list a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── LOADING SKELETON ──────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade { animation: fadeIn 0.5s ease both; }
.animate-up { animation: slideUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .recipe-main { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    padding: 24px 5%;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero-banner { height: 75vh; }
  .hero-content { max-width: 100%; }

  .chef-hero-content { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chef-hero-avatar { width: 70px; height: 70px; }

  .results-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .recipe-card { flex: 0 0 170px; }
  .chef-card { flex: 0 0 130px; }
  .chef-card-avatar { width: 90px; height: 90px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .recipe-main { padding: 24px 4%; }
  .section-header { padding: 0 4%; }
  .scroll-row { padding: 8px 4% 16px; }
}

/* ══════════════════════════════════════════
   STATIC PAGES (about / legal / faq / etc.)
══════════════════════════════════════════ */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 5% 60px;
}
.page-wrap h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.page-wrap .page-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.page-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.page-wrap p, .page-wrap li {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.page-wrap ul { padding-left: 22px; margin-bottom: 14px; }
.page-wrap li { margin-bottom: 8px; }
.page-wrap a { color: var(--accent); }
.page-wrap .callout {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

/* Category grid page */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.cat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.cat-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}
.cat-card .cat-emoji { font-size: 2rem; margin-bottom: 8px; }
.cat-card .cat-name { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.cat-card .cat-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Newsletter (footer) */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}
.newsletter-form input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.newsletter-form button:hover { opacity: 0.85; }

/* Image loading skeleton + fade-in */
.recipe-card-thumb img, .related-card-thumb img, .chef-card-avatar img {
  background: linear-gradient(100deg, var(--bg2) 40%, var(--bg3) 50%, var(--bg2) 60%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}
@keyframes skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}
img.img-loaded { animation: img-fade 0.4s ease; background: none; }
@keyframes img-fade { from { opacity: 0.35; } to { opacity: 1; } }

/* Icon buttons (social / share / buy) — svg + label, brand-colour hover */
.btn svg, .share-btn svg, .ing-buy svg, .chip-icon-btn svg { vertical-align: -3px; margin-right: 6px; flex-shrink: 0; }
.btn-outline svg, .btn-ghost svg { margin-right: 6px; }
.icon-only svg { margin-right: 0; }

.chip-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.chip-icon-btn.brand-tiktok:hover    { border-color: #ff0050; color: #fff; background: #ff0050; }
.chip-icon-btn.brand-youtube:hover   { border-color: #ff0000; color: #fff; background: #ff0000; }
.chip-icon-btn.brand-instagram:hover { border-color: #e1306c; color: #fff; background: #e1306c; }
.chip-icon-btn.brand-facebook:hover  { border-color: #1877f2; color: #fff; background: #1877f2; }
.chip-icon-btn.brand-whatsapp:hover  { border-color: #25d366; color: #fff; background: #25d366; }
.chip-icon-btn.brand-telegram:hover  { border-color: #229ed9; color: #fff; background: #229ed9; }
.chip-icon-btn.brand-shopee:hover    { border-color: #ee4d2d; color: #fff; background: #ee4d2d; }
.chip-icon-btn.brand-web:hover       { border-color: var(--accent); color: #000; background: var(--accent); }

.attribution-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-sub);
  margin: 14px 0 24px;
}
.attribution-bar a { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.attribution-bar a:hover { text-decoration: underline; }

.support-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 24px 0;
}
.support-card h3 { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.support-card p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 14px; }
.support-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Accessibility: visible keyboard focus */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}