/* ===== DishesToLearn.com Design System ===== */

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

/* ===== CSS Variables (Light Mode) ===== */
:root {
  --primary:       #e8a838;
  --primary-dark:  #c8891a;
  --primary-light: #fdf0d5;
  --accent:        #4caf50;
  --accent-dark:   #388e3c;
  --bg:            #faf3e0;
  --bg-card:       #ffffff;
  --bg-nav:        #1a1a2e;
  --text:          #1a1a2e;
  --text-muted:    #5a5a7a;
  --text-light:    #8888aa;
  --border:        #e8e0d0;
  --shadow-sm:     0 2px 8px rgba(26,26,46,0.08);
  --shadow-md:     0 4px 20px rgba(26,26,46,0.12);
  --shadow-lg:     0 8px 40px rgba(26,26,46,0.16);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container:     1200px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg:         #0f0f1a;
  --bg-card:    #1a1a2e;
  --text:       #f0e8d0;
  --text-muted: #a0a0c0;
  --text-light: #6060a0;
  --border:     #2a2a4a;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select {
  font-family: var(--font-body);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  outline: none;
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,168,56,0.2); }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 2.5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; line-height: 1.8; }
.section-title { margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-xl);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 15px rgba(232,168,56,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,168,56,0.5);
}
.btn-secondary {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(76,175,80,0.4); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); }

/* ===== Navigation ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-nav);
  padding: 0 1.5rem;
  box-shadow: var(--shadow-md);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo .logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.nav-logo .logo-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: #fff; }
.nav-logo .logo-text span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.5rem 0.9rem; border-radius: var(--radius-sm); color: #d0d0e0; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links a.nav-cta { background: var(--primary); color: #fff; margin-left: 0.5rem; }
.nav-links a.nav-cta:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.dark-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #d0d0e0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
}
.dark-toggle:hover { background: rgba(255,255,255,0.2); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #d0d0e0; border-radius: 2px; transition: var(--transition); }

/* ===== Hero Section ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh; display: flex; align-items: center;
  background: var(--bg-nav);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero_banner.webp');
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,0.9) 40%, rgba(232,168,56,0.15) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ===== Cards ===== */
.card {
  background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-img-lg { height: 260px; }
.card-body { padding: 1.5rem; }
.card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.75rem; flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.card-title { font-family: var(--font-heading); font-size: 1.15rem; color: var(--text); margin-bottom: 0.6rem; line-height: 1.3; }
.card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.card a.card-title:hover { color: var(--primary); }

/* ===== Badges ===== */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-blue { background: #e3f2fd; color: #1565c0; }
.badge-red { background: #ffe9e9; color: #c62828; }
.badge-purple { background: #f3e5f5; color: #6a1b9a; }
[data-theme="dark"] .badge-green { background: #1b3a1c; color: #81c784; }
[data-theme="dark"] .badge-blue { background: #0d2137; color: #64b5f6; }
[data-theme="dark"] .badge-red { background: #3a0e0e; color: #ef9a9a; }
[data-theme="dark"] .badge-purple { background: #2d1b3d; color: #ce93d8; }

/* ===== Tags / Chips ===== */
.tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.85rem; background: var(--primary-light);
  color: var(--primary-dark); border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: var(--transition);
}
.tag:hover, .tag.active { background: var(--primary); color: #fff; }
[data-theme="dark"] .tag { background: rgba(232,168,56,0.15); color: var(--primary); }
[data-theme="dark"] .tag:hover, [data-theme="dark"] .tag.active { background: var(--primary); color: #1a1a2e; }

/* ===== Generator Tool ===== */
.generator-panel {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.search-row { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.search-wrap { flex: 1; position: relative; }
.search-wrap input { width: 100%; padding-left: 3rem; border-radius: var(--radius-xl); font-size: 1rem; }
.search-wrap .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1.1rem; }
.ingredient-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; min-height: 32px; }
.ingredient-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; background: var(--primary); color: #fff;
  border-radius: 100px; font-size: 0.82rem; font-weight: 500;
}
.ingredient-tag .remove { cursor: pointer; opacity: 0.8; font-size: 1rem; line-height: 1; }
.ingredient-tag .remove:hover { opacity: 1; }
.filters-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-select { flex: 1; min-width: 150px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.results-header h3 { font-size: 1.1rem; }
.results-count { color: var(--text-light); font-size: 0.9rem; }
.recipes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.no-results { text-align: center; padding: 3rem; color: var(--text-muted); }
.no-results .emoji { font-size: 3rem; margin-bottom: 1rem; }

/* ===== Recipe View ===== */
.recipe-hero { background: var(--bg-nav); padding: 4rem 0; }
.recipe-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.recipe-hero-img { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.recipe-hero-img img { width: 100%; height: 380px; object-fit: cover; }
.recipe-hero-info h1 { color: #fff; margin-bottom: 0.75rem; }
.recipe-hero-info .lead { color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.recipe-meta-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.meta-badge {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.1); padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); color: #fff; font-size: 0.88rem;
}
.meta-badge strong { color: var(--primary); }
.recipe-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.recipe-content { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; padding: 3rem 0; }
.recipe-body h2 { margin: 2rem 0 1rem; font-size: 1.4rem; }
.recipe-body h3 { margin: 1.5rem 0 0.75rem; font-size: 1.15rem; }
.recipe-body p { margin-bottom: 1rem; }
.recipe-body ul, .recipe-body ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); }
.recipe-body li { margin-bottom: 0.5rem; }
.recipe-body ol { list-style: decimal; }
.recipe-body ul { list-style: disc; }
.ingredients-list { background: var(--bg-card); border-radius: var(--radius-md); padding: 1.5rem; border-left: 4px solid var(--primary); margin-bottom: 2rem; }
.ingredients-list h3 { margin-top: 0; color: var(--primary); }
.ingredients-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text); }
.ingredients-list li:last-child { border-bottom: none; }
.step-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: 1rem; display: flex; gap: 1rem; border: 1px solid var(--border); transition: var(--transition); }
.step-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.step-num { flex-shrink: 0; width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.tips-box { background: var(--primary-light); border-radius: var(--radius-md); padding: 1.5rem; border-left: 4px solid var(--primary); margin: 2rem 0; }
.tips-box h3 { color: var(--primary-dark); margin-top: 0; }
[data-theme="dark"] .tips-box { background: rgba(232,168,56,0.1); }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-question { font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: var(--transition); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { color: var(--text-muted); padding-top: 0.75rem; display: none; }
.faq-item.open .faq-answer { display: block; }
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.sidebar-widget h4 { margin-bottom: 1rem; color: var(--text); }
.nutrition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.nutrition-item { background: var(--bg); border-radius: var(--radius-sm); padding: 0.75rem; text-align: center; }
.nutrition-item strong { display: block; font-size: 1.1rem; color: var(--primary); }
.nutrition-item span { font-size: 0.75rem; color: var(--text-light); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.print-btn { width: 100%; justify-content: center; }
.related-recipe-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.related-recipe-item:last-child { border-bottom: none; }
.related-recipe-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.related-recipe-item .info a { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.related-recipe-item .info a:hover { color: var(--primary); }
.related-recipe-item .info span { font-size: 0.78rem; color: var(--text-light); }

/* ===== Blog ===== */
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-body { flex: 1; }
.blog-card .card-footer { padding: 0 1.5rem 1.5rem; }
.author-box { background: var(--bg-card); border-radius: var(--radius-md); padding: 1.5rem; display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border); margin: 2rem 0; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box h4 { margin-bottom: 0.25rem; }
.author-box p { margin: 0; font-size: 0.88rem; }

/* ===== Article Body Content Spacing ===== */
article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
article h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
article h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
article p {
  margin-bottom: 1.1rem;
  line-height: 1.8;
}
article ul, article ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}
article ul { list-style: disc; }
article ol { list-style: decimal; }
article li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
  color: var(--text-muted);
}
article li strong { color: var(--text); }


/* ===== Features Section ===== */
.feature-icon { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.25rem; transition: var(--transition); }
[data-theme="dark"] .feature-icon { background: rgba(232,168,56,0.15); }
.feature-card { padding: 2rem; background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover .feature-icon { background: var(--primary); }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

/* ===== Testimonials ===== */
.testimonial-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 2rem; border: 1px solid var(--border); position: relative; }
.testimonial-card::before { content: '"'; font-family: var(--font-heading); font-size: 4rem; color: var(--primary); opacity: 0.3; position: absolute; top: 0.5rem; left: 1.25rem; line-height: 1; }
.testimonial-text { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; padding-top: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-light); }
.stars { color: var(--primary); font-size: 0.9rem; margin-bottom: 0.25rem; }

/* ===== Newsletter ===== */
.newsletter-section { background: var(--bg-nav); padding: 5rem 0; }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { color: #fff; margin-bottom: 0.75rem; }
.newsletter-inner p { color: rgba(255,255,255,0.65); margin-bottom: 1.75rem; }
.newsletter-form { display: flex; gap: 0.75rem; }
.newsletter-form input { flex: 1; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-success { display: none; color: var(--accent); font-weight: 600; padding: 1rem; background: rgba(76,175,80,0.1); border-radius: var(--radius-sm); }

/* ===== Ad Slots ===== */
.ad-slot {
  background: var(--bg-card); border: 2px dashed var(--border);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; color: var(--text-light); font-size: 0.8rem;
  text-align: center; padding: 1rem; position: relative;
}
.ad-slot::before { content: 'Advertisement'; position: absolute; top: -0.6rem; left: 50%; transform: translateX(-50%); background: var(--bg); padding: 0 0.5rem; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-light); }
.ad-leaderboard { width: 100%; min-height: 90px; margin: 0.75rem 0; }
.ad-box { width: 100%; min-height: 250px; }
.ad-in-article { width: 100%; min-height: 250px; margin: 2rem 0; }

/* ===== Footer ===== */
.footer { background: #0d0d1f; color: #a0a0c0; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { color: #fff; margin-bottom: 1.25rem; font-size: 1rem; }
.footer .footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer .footer-logo .logo-text { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }
.footer .footer-logo .logo-text span { color: var(--primary); }
.footer p { font-size: 0.88rem; line-height: 1.7; color: #7070a0; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: #7070a0; font-size: 0.88rem; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #1a1a3a; padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #5050a0; }
.footer-bottom a { color: #5050a0; font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== Cookie Banner ===== */
#cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 9999; background: #1a1a2e; color: #d0d0e0;
  padding: 1.25rem 1.75rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); display: flex; align-items: center;
  gap: 1.5rem; max-width: 680px; width: calc(100% - 3rem);
  border: 1px solid #2a2a4a;
}
#cookie-banner p { margin: 0; font-size: 0.88rem; color: #a0a0c0; }
#cookie-banner .cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
#cookie-banner.hidden { display: none; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding: 1rem 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-light); }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--border); }

/* ===== Page Header ===== */
.page-header { background: var(--bg-nav); padding: 4rem 0 3rem; }
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.65); max-width: 580px; }

/* ===== Legal Pages ===== */
.legal-content { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; }
.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content .last-updated { color: var(--text-light); font-size: 0.88rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content li { color: var(--text-muted); line-height: 1.8; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--primary); }

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.contact-info-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
[data-theme="dark"] .contact-info-icon { background: rgba(232,168,56,0.15); }
.contact-info-item h4 { margin-bottom: 0.2rem; font-size: 0.95rem; }
.contact-info-item p { margin: 0; font-size: 0.88rem; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0; }
.page-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--border); color: var(--text-muted); transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Scroll Reveal Animations ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .recipe-content { grid-template-columns: 1fr; }
  .recipe-hero-inner { grid-template-columns: 1fr; }
  .recipe-hero-img img { height: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-nav); padding: 1rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .filters-row { flex-direction: column; }
  .search-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cookie-banner { flex-direction: column; text-align: center; bottom: 0; left: 0; right: 0; transform: none; border-radius: var(--radius-md) var(--radius-md) 0 0; width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding: 5rem 0 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Print Styles ===== */
@media print {
  .navbar, .footer, .ad-slot, #cookie-banner, .btn, .sidebar-widget:not(.ingredients-widget) { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-hero { background: none; }
  .recipe-hero-info h1 { color: #000; }
}
