﻿/* ============================================
   BASE RESET & GLOBAL STYLES
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: var(--bg-nav);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background 0.3s;
}

[data-theme="modern"] .navbar {
  border-bottom: 2px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-on-primary);
}

[data-theme="modern"] .nav-brand { color: var(--primary); }

.nav-brand .brand-icon { font-size: 1.6rem; }

.brand-logo {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 4px 8px;
}

[data-theme="modern"] .theme-switcher {
  background: var(--bg-main);
  border: 1px solid var(--border);
}

[data-theme="dark"] .theme-switcher {
  background: rgba(255,255,255,0.08);
}

.theme-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  white-space: nowrap;
}

[data-theme="modern"] .theme-btn { color: var(--text-muted); }

.theme-btn.active {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 2px 8px var(--shadow);
}

[data-theme="modern"] .theme-btn.active { color: #fff; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--hero-gradient);
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  color: rgba(255,255,255,0.95);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat span { font-size: 0.85rem; opacity: 0.85; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 900;
  box-shadow: 0 2px 8px var(--shadow);
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-btn {
  border: 1.5px solid var(--border);
  background: var(--bg-main);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--border-radius-btn);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}

[data-theme="modern"] .filter-btn.active { color: #fff; }

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   RECIPE GRID
   ============================================ */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Responsive grid columns */
@media (min-width: 1200px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 600px) and (max-width: 899px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .recipe-grid { grid-template-columns: 1fr; }
}

/* TV / Large screens */
@media (min-width: 1800px) {
  .recipe-grid { grid-template-columns: repeat(4, 1fr); }
  .main-content { max-width: 1800px; }
}

/* ============================================
   RECIPE CARD
   ============================================ */
.recipe-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.recipe-card:hover {
  transform: var(--card-hover-transform);
  box-shadow: 0 12px 32px var(--shadow-hover);
}

.card-icon-wrap {
  background: var(--hero-gradient);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.card-icon-wrap img,
.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--badge-bg);
  color: var(--text-on-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="modern"] .card-badge { color: #fff; }
[data-theme="dark"] .card-badge { color: var(--bg-main); }

.card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta span { display: flex; align-items: center; gap: 3px; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
}

.card-footer {
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stars { color: var(--star-color); font-size: 0.85rem; }

.card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--border-radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}

[data-theme="modern"] .page-btn.active { color: #fff; }
[data-theme="dark"] .page-btn.active { color: var(--bg-main); }

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer a { color: var(--primary-light); text-decoration: none; }

/* ============================================
   DISH PAGE STYLES
   ============================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  transition: gap 0.2s;
}

.back-btn:hover { gap: 10px; }

.dish-hero {
  background: var(--hero-gradient);
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.dish-icon-large {
  font-size: 6rem;
  line-height: 1;
  flex-shrink: 0;
}

.dish-icon-large img,
.dish-icon-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.dish-hero-info { flex: 1; min-width: 200px; }

.dish-hero-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.dish-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.meta-chip {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.dish-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .dish-content { grid-template-columns: 1fr; }
}

.dish-section {
  background: var(--bg-card);
  border-radius: var(--border-radius-card);
  padding: 1.5rem;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid var(--border);
}

.dish-section h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ingredients-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.ingredients-list li::before {
  content: '•';
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.instructions-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-num {
  background: var(--primary);
  color: var(--text-on-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme="modern"] .step-num { color: #fff; }
[data-theme="dark"] .step-num { color: var(--bg-main); }

/* YouTube embed */
.video-section {
  grid-column: 1 / -1;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: var(--bg-main);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 2px dashed var(--border);
}

.yt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF0000;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}

.yt-link-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
  grid-column: 1 / -1;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.avg-rating {
  text-align: center;
}

.avg-score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.avg-stars { font-size: 1.2rem; color: var(--star-color); }
.avg-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.rating-bars { flex: 1; min-width: 200px; }

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--star-color);
  border-radius: 50px;
  transition: width 0.6s ease;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.review-card {
  background: var(--bg-main);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.review-date { font-size: 0.78rem; color: var(--text-muted); }
.review-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* Add Review Form */
.add-review-form {
  background: var(--bg-main);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.add-review-form h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.star-rating-input {
  display: flex;
  gap: 6px;
  font-size: 1.6rem;
  cursor: pointer;
}

.star-rating-input span {
  color: var(--border);
  transition: color 0.15s, transform 0.15s;
  user-select: none;
}

.star-rating-input span.active,
.star-rating-input span:hover { color: var(--star-color); transform: scale(1.15); }

.submit-btn {
  background: var(--primary);
  color: var(--text-on-primary);
  border: none;
  padding: 10px 24px;
  border-radius: var(--border-radius-btn);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

[data-theme="modern"] .submit-btn { color: #fff; }
[data-theme="dark"] .submit-btn { color: var(--bg-main); }

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.submit-btn:active { transform: translateY(0); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 1rem; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--shadow-hover);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

[data-theme="modern"] .toast { color: #fff; }
[data-theme="dark"] .toast { color: var(--bg-main); }

.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--text-on-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}

[data-theme="modern"] .scroll-top { color: #fff; }
[data-theme="dark"] .scroll-top { color: var(--bg-main); }

.scroll-top.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   VEG / NON-VEG TOGGLE & INDICATORS
   ============================================ */

/* Vertical divider between category filters and diet toggle */
.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
  align-self: center;
  margin: 0 0.25rem;
}

/* Diet toggle group */
.diet-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-main);
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius-btn);
  padding: 3px;
  flex-shrink: 0;
}

.diet-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: calc(var(--border-radius-btn) - 3px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.diet-btn:hover {
  color: var(--text-primary);
  background: var(--border);
}

/* Active states per diet type */
.diet-btn.active.diet-all {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 6px var(--shadow);
}

[data-theme="dark"] .diet-btn.active.diet-all { color: var(--bg-main); }

.diet-btn.active.diet-veg {
  background: #27AE60;
  color: #fff;
  box-shadow: 0 1px 6px rgba(39,174,96,0.35);
}

.diet-btn.active.diet-nonveg {
  background: #E74C3C;
  color: #fff;
  box-shadow: 0 1px 6px rgba(231,76,60,0.35);
}

/* Veg / Non-veg dot on card title row */
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.veg-dot {
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
  line-height: 1;
}

/* Mobile: stack diet toggle below category filters */
@media (max-width: 600px) {
  .filter-divider { display: none; }
  .diet-toggle { width: 100%; justify-content: center; }
  .diet-btn { flex: 1; text-align: center; }
}


.difficulty-easy { color: #27AE60; font-weight: 600; }
.difficulty-medium { color: #F39C12; font-weight: 600; }
.difficulty-hard { color: #E74C3C; font-weight: 600; }

/* ============================================
   LANGUAGE TOGGLE (EN / हिं)
   ============================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-main);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 3px;
  margin: 0.75rem 0 1rem;
}

.lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
  line-height: 1.4;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 6px var(--shadow);
}

[data-theme="dark"] .lang-btn.active { color: var(--bg-main); }

/* Hindi text: Devanagari-friendly font stack + comfortable line height */
[lang="hi"] {
  font-family: 'Noto Sans Devanagari', 'Mangal', 'Kokila', Arial, sans-serif;
  line-height: 1.9;
  font-size: 0.95rem;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.recipe-card {
  animation: fadeInUp 0.4s ease forwards;
}

/* Fallback: if animation is disabled (prefers-reduced-motion), show cards immediately */
@media (prefers-reduced-motion: reduce) {
  .recipe-card { animation: none; opacity: 1; transform: none; }
}

.recipe-card:nth-child(1) { animation-delay: 0.05s; }
.recipe-card:nth-child(2) { animation-delay: 0.1s; }
.recipe-card:nth-child(3) { animation-delay: 0.15s; }
.recipe-card:nth-child(4) { animation-delay: 0.2s; }
.recipe-card:nth-child(5) { animation-delay: 0.25s; }
.recipe-card:nth-child(6) { animation-delay: 0.3s; }
.recipe-card:nth-child(7) { animation-delay: 0.35s; }
.recipe-card:nth-child(8) { animation-delay: 0.4s; }
.recipe-card:nth-child(9) { animation-delay: 0.45s; }

/* ============================================
   MOBILE TWEAKS
   ============================================ */
@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .nav-brand .brand-text { display: none; }
  .theme-btn { padding: 4px 7px; font-size: 0.7rem; }
  .hero { padding: 2rem 1rem; }
  .filter-bar { padding: 0.75rem 1rem; }
  .main-content { padding: 1.25rem 1rem; }
  .dish-hero { padding: 1.5rem 1rem; }
  .dish-content { padding: 1.25rem 1rem; }
}
