/*
Theme Name: Home Kooking
Theme URI: https://homekooking.com
Author: Prometheus Anthropos
Author URI: https://homekooking.com
Description: A clean, fast, SEO-optimized theme for recipe content. Built for ad monetization and organic traffic.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homekooking
Tags: food, recipes, blog, seo-ready, ad-friendly

Home Kooking - Homemade recipes for everyday cooks 🏠🍳
*/

:root {
  --color-primary: #ff6b35;
  --color-secondary: #f7c59f;
  --color-dark: #2d3436;
  --color-light: #fefefe;
  --color-gray: #636e72;
  --font-heading: 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-light);
}

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

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-area {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.site-header {
  background: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid #f0f0f0;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Single-row header layout: Logo | Nav | Actions */
.site-header > .container > .header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  padding: 14px 0;
  flex-wrap: nowrap;
}

/* Site Branding */
.site-branding {
  flex-shrink: 0;
}

.site-title,
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  display: inline-block;
}

.site-title:hover,
.footer-logo:hover {
  text-decoration: none;
}

.site-title .home,
.footer-logo .home {
  color: var(--color-primary);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 400px;
}

.header-search form {
  display: flex;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 50px;
  padding: 0 20px;
  width: 100%;
  transition: all 0.2s;
}

.search-input-wrapper:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.search-icon {
  color: #999;
  margin-right: 10px;
  flex-shrink: 0;
}

.header-search input {
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.header-search input::placeholder {
  color: #999;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.btn-newsletter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-newsletter:hover {
  background: #e55a2b;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  left: 0;
  transition: all 0.3s;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Main Navigation - Inline in header, right-aligned */
.header-inner .main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.header-inner .main-navigation ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.header-inner .main-navigation li {
  position: relative;
  margin: 0;
}

.header-inner .main-navigation a {
  display: inline-flex;
  align-items: center;
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 6px;
  white-space: nowrap;
}

.header-inner .main-navigation a:hover {
  color: var(--color-primary);
  background: #f5f5f5;
  text-decoration: none;
}

.header-inner .main-navigation .current-menu-item a,
.header-inner .main-navigation .current_page_item a {
  color: var(--color-primary);
  background: rgba(255, 107, 53, 0.1);
}

/* Mobile Search */
.mobile-search {
  background: #f5f5f5;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.mobile-search form {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.mobile-search button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile/Desktop Visibility */
.mobile-only { display: none; }
.desktop-only { display: flex; }

@media (max-width: 768px) {
  .mobile-only { display: flex; }
  .desktop-only { display: none !important; }
  
  .menu-toggle { display: block; }
  
  .site-header > .container > .header-inner {
    flex-wrap: wrap !important;
    gap: 0 !important;
    padding: 10px 0 !important;
  }
  
  .header-inner .site-branding {
    order: 1;
  }
  
  .header-inner .header-actions {
    order: 2;
    margin-left: auto;
  }
  
  .header-inner .main-navigation {
    order: 1;
    flex: 0 0 auto !important;
    display: flex !important;
    background: transparent;
    margin: 0;
    padding: 0;
    border-top: none;
  }
  
  .header-inner .main-navigation ul {
    flex-direction: row !important;
    gap: 10px !important;
  }
  
  .header-inner .main-navigation a {
    padding: 8px 12px !important;
    border-bottom: none;
  }
  
  .site-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
  background: var(--color-dark);
  color: #ccc;
  margin-top: 60px;
}

/* Footer Newsletter */
.footer-newsletter {
  background: #ff6b35;
  padding: 50px 0;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 280px;
}

.newsletter-text h3 {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.newsletter-text p {
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.footer-newsletter .newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 450px;
}

.footer-newsletter .newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  min-width: 200px;
}

.footer-newsletter .newsletter-form button {
  background: var(--color-dark);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.footer-newsletter .newsletter-form button:hover {
  background: #1a1a1a;
}

/* MailerLite Form Overrides */
.footer-newsletter .ml-embedded {
  flex: 1;
  max-width: 450px;
}

.footer-newsletter .ml-embedded .ml-form-embedWrapper {
  background: transparent !important;
  padding: 0 !important;
}

.footer-newsletter .ml-embedded .ml-form-embedBody {
  padding: 0 !important;
}

.footer-newsletter .ml-embedded .ml-form-fieldRow {
  display: flex !important;
  gap: 10px !important;
}

.footer-newsletter .ml-embedded .ml-form-fieldRow input[type="email"] {
  flex: 1 !important;
  padding: 14px 20px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  min-width: 200px !important;
}

.footer-newsletter .ml-embedded .ml-form-fieldRow .ml-submit-button,
.footer-newsletter .ml-embedded button[type="submit"] {
  background: var(--color-dark) !important;
  color: white !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}

.footer-newsletter .ml-embedded .ml-form-fieldRow .ml-submit-button:hover,
.footer-newsletter .ml-embedded button[type="submit"]:hover {
  background: #1a1a1a !important;
}

.footer-newsletter .ml-embedded .ml-form-successBody {
  color: white !important;
}

/* Footer Main */
.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Footer Brand */
.footer-brand {
  padding-right: 40px;
}

.footer-logo {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.footer-tagline {
  color: #999;
  margin-bottom: 25px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-block;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.7;
}

.social-link img {
  width: 32px !important;
  height: 32px !important;
}

/* Footer Columns */
.footer-column h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #999;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--color-primary);
}

/* Footer Social Links */
.footer-social .social-links {
  display: flex;
  gap: 12px;
}

.footer-social .social-link {
  display: inline-block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-social .social-link:hover {
  opacity: 1;
}

.footer-social .social-link img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding: 25px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.affiliate-disclosure {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.affiliate-disclosure a {
  color: #999;
  text-decoration: underline;
}

.copyright {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-newsletter .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Posts */
.post {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #eee;
}

.post:last-child {
  border-bottom: none;
}

.entry-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.entry-meta {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.entry-content {
  font-size: 1.1rem;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 2em 0 1em;
  color: var(--color-dark);
}

.entry-content h3 {
  font-size: 1.4rem;
  margin: 1.5em 0 0.75em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* Featured/Main Post Image */
.post-thumbnail img,
.single .post-thumbnail img,
article .post-thumbnail img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.post-thumbnail {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}

.post-thumbnail.pinnable {
  position: relative;
}

.post-thumbnail .pin-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e60023;
  color: white;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.25s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.post-thumbnail.pinnable:hover .pin-overlay {
  opacity: 1;
  transform: translateY(0);
}

.post-thumbnail .pin-overlay:hover {
  background: #ad081b;
  transform: scale(1.05);
}

.post-thumbnail .pin-overlay svg {
  flex-shrink: 0;
}

/* Responsive post thumbnail - prevent cropping on mobile */
.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .post-thumbnail {
    margin-bottom: 20px;
  }
  
  .post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

.entry-content ul, .entry-content ol {
  margin: 1em 0 1.5em 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

/* Recipe Card (for recipe schema) */
.recipe-card {
  background: #fff9f5;
  border: 2px solid var(--color-secondary);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
}

.recipe-card h2 {
  color: var(--color-primary);
  margin-top: 0;
}

.recipe-meta {
  display: flex;
  gap: 30px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-meta-item strong {
  color: var(--color-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Sidebar (for ads) */
.sidebar {
  padding: 30px 0;
}

.widget {
  margin-bottom: 40px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

/* Ad placeholders */
.ad-slot {
  background: #f5f5f5;
  border: 2px dashed #ddd;
  padding: 40px;
  text-align: center;
  color: var(--color-gray);
  margin: 30px 0;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #ccc;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer a {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
}

/* Jump to Recipe & Cook Mode */
.jump-to-recipe {
  display: flex;
  gap: 15px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}

.jump-btn, .print-btn, #cook-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.jump-btn {
  background: var(--color-primary);
  color: white;
}

.jump-btn:hover {
  background: #e55a2b;
  text-decoration: none;
  color: white;
}

.print-btn {
  background: #f5f5f5;
  color: var(--color-dark);
}

.print-btn:hover {
  background: #e8e8e8;
  text-decoration: none;
}

#cook-mode-toggle {
  background: var(--color-primary, #D4622B);
  color: white;
}

#cook-mode-toggle.active {
  background: #22c55e;
  color: white;
}

/* Recipe Quick Info */
.recipe-quick-info {
  display: flex;
  gap: 30px;
  padding: 20px 25px;
  background: #fff9f5;
  border-radius: 12px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.recipe-quick-info .info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.recipe-quick-info .icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.recipe-quick-info .label {
  font-size: 0.75rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recipe-quick-info .value {
  font-weight: 700;
  color: var(--color-dark);
}

/* Recipe Card Styling (for WP Recipe Maker) */
.wprm-recipe-container {
  border: 2px solid var(--color-secondary);
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  background: #fffcfa;
}

.wprm-recipe-name {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

/* Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, var(--color-primary), #ff8f5a);
  border-radius: 16px;
  padding: 40px;
  margin: 50px 0;
  text-align: center;
  color: white;
}

.newsletter-box h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.newsletter-box p {
  opacity: 0.95;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 450px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 14px 30px;
  background: var(--color-dark);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #1a1a1a;
}

.privacy-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 15px;
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  margin-top: 30px;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
  color: var(--color-gray);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-btn svg {
  flex-shrink: 0;
}

.share-btn.pinterest {
  background: #e60023;
  color: white;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #000;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.share-btn.pinterest:hover {
  background: #ad081b;
}

.share-btn.facebook:hover {
  background: #0d65d9;
}

.share-btn.twitter:hover {
  background: #333;
}

/* Related Recipes */
.related-recipes {
  margin: 50px 0;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.related-recipes h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.related-card {
  text-decoration: none;
  color: var(--color-dark);
  transition: transform 0.2s;
}

.related-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.related-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Homepage Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.recipe-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.recipe-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.recipe-card {
  display: flex;
  flex-direction: column;
}

.recipe-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-card-meta {
  margin-top: auto;
}

.recipe-card-category {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.recipe-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.recipe-card-title a {
  color: var(--color-dark);
  text-decoration: none;
}

.recipe-card-title a:hover {
  color: var(--color-primary);
}

.recipe-card-meta {
  display: flex;
  gap: 15px;
  color: var(--color-gray);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 10px;
}

/* Featured Recipe */
.featured-recipe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 50px 0;
  padding: 40px;
  background: #fff9f5;
  border-radius: 20px;
}

.featured-recipe-image img {
  width: 100%;
  border-radius: 16px;
}

.featured-recipe-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.featured-recipe-content p {
  color: var(--color-gray);
  margin-bottom: 20px;
}

.featured-recipe .btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
}

.featured-recipe .btn-primary:hover {
  background: #e55a2b;
}

/* Categories Section */
.categories-section {
  margin: 60px 0;
}

.categories-section h2 {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 30px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-dark);
  border: 2px solid #f0f0f0;
  transition: all 0.2s;
}

.category-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  text-decoration: none;
}

.category-card .emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.category-card .name {
  font-weight: 600;
}

/* ==========================================================================
   HOMEPAGE V2 STYLES
   ========================================================================== */

/* Hero V2 */
.hero-v2 {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 50%, #f7c59f 100%);
  z-index: 0;
}

.hero-background::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.08'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, 60px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-v2 h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero-v2 p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 35px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search */
.hero-search {
  max-width: 600px;
  margin: 0 auto 25px;
}

.hero-search form {
  display: flex;
  background: white;
  border-radius: 60px;
  padding: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  background: transparent;
  outline: none;
  border-radius: 60px;
}

.hero-search input::placeholder {
  color: #999;
}

.hero-search button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-search button:hover {
  background: #e55a2b;
  transform: scale(1.02);
}

/* Hero Quick Links */
.hero-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.hero-quick-links span {
  opacity: 0.8;
}

.hero-quick-links a {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-quick-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.section-header p {
  color: var(--color-gray);
  font-size: 1.1rem;
}

/* Theme Collections */
.theme-collections {
  padding: 70px 0 50px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 24px;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-dark);
  transition: all 0.25s ease;
}

.theme-card:hover {
  border-color: var(--theme-color, var(--color-primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.theme-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 12px;
  flex-shrink: 0;
}

.theme-card:hover .theme-icon {
  background: color-mix(in srgb, var(--theme-color, var(--color-primary)) 15%, white);
}

.theme-info {
  flex: 1;
}

.theme-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.theme-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.theme-arrow {
  color: #ccc;
  transition: all 0.2s;
}

.theme-card:hover .theme-arrow {
  color: var(--theme-color, var(--color-primary));
  transform: translateX(4px);
}

/* Meal Categories */
.meal-categories {
  padding: 50px 0;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.meal-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-dark);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.meal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
  text-decoration: none;
}

.meal-card-visual {
  margin-bottom: 15px;
  position: relative;
}

.meal-emoji {
  font-size: 3rem;
  display: block;
  transition: transform 0.3s;
}

.meal-card:hover .meal-emoji {
  transform: scale(1.15);
}

/* Image-based meal cards */
.meal-card.has-image {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.meal-card.has-image .meal-card-visual {
  margin-bottom: 0;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.meal-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.meal-card.has-image:hover .meal-card-img {
  transform: scale(1.1);
}

.meal-card.has-image .meal-card-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

.meal-card.has-image .meal-card-info {
  padding: 20px;
  background: white;
}

.meal-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.meal-count {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* Trending Recipes */
.trending-recipes {
  padding: 50px 0;
  background: #fafafa;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.trending-card {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.trending-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.trending-rank {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
}

.trending-image {
  display: block;
}

.trending-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.trending-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trending-meta {
  margin-top: auto;
}

.trending-category {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.trending-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.trending-content h3 a {
  color: var(--color-dark);
  text-decoration: none;
}

.trending-content h3 a:hover {
  color: var(--color-primary);
}

.trending-meta {
  display: flex;
  gap: 15px;
  color: var(--color-gray);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 10px;
}

/* Featured Highlight */
.featured-highlight {
  padding: 50px 0;
  position: relative;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #333;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 25px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  background: linear-gradient(135deg, #fff9f5, #fff5ee);
  border-radius: 24px;
  padding: 40px;
}

.featured-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.featured-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.featured-content .featured-category {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.featured-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.featured-content > p {
  color: var(--color-gray);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.featured-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.featured-stats span {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--color-dark);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid #eee;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Product Recommendations */
.product-recommendations {
  padding: 50px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

.product-card {
  position: relative;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.25s;
}

.product-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-visual {
  margin: 20px 0;
}

.product-emoji {
  font-size: 3.5rem;
}

.product-info h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.product-info p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-price {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.product-btn {
  display: inline-block;
  background: #f5f5f5;
  color: var(--color-dark);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.product-btn:hover {
  background: var(--color-dark);
  color: white;
  text-decoration: none;
}

.affiliate-disclosure {
  text-align: center;
  margin-top: 30px;
  color: var(--color-gray);
}

.affiliate-disclosure a {
  color: var(--color-gray);
  text-decoration: underline;
}

/* Latest Recipes */
.latest-recipes {
  padding: 50px 0;
}

.no-recipes-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fafafa;
  border-radius: 20px;
}

.big-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
}

.no-recipes-message h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.no-recipes-message p {
  color: var(--color-gray);
}

.view-all-cta {
  text-align: center;
  margin-top: 40px;
}

.recipe-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  font-size: 3rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 50px 0 70px;
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: linear-gradient(135deg, var(--color-primary), #ff8f5a);
  border-radius: 24px;
  overflow: hidden;
  min-height: 300px;
}

.newsletter-content {
  padding: 50px;
  color: white;
}

.newsletter-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.newsletter-content h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 10px;
}

.newsletter-content > p {
  opacity: 0.95;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.newsletter-section .newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-section .newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 16px 24px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-section .newsletter-form button {
  padding: 16px 32px;
  background: var(--color-dark);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-section .newsletter-form button:hover {
  background: #1a1a1a;
  transform: scale(1.02);
}

.newsletter-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 15px;
}

.newsletter-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.floating-recipes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.floating-recipes span {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

.floating-recipes span:nth-child(2) { animation-delay: 0.5s; }
.floating-recipes span:nth-child(3) { animation-delay: 1s; }
.floating-recipes span:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .newsletter-card {
    grid-template-columns: 1fr;
  }
  
  .newsletter-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-v2 {
    padding: 70px 0 60px;
    min-height: auto;
  }
  
  .hero-v2 h1 {
    font-size: 2.2rem;
  }
  
  .hero-search form {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
  }
  
  .hero-search input {
    padding: 14px 20px;
  }
  
  .hero-search button {
    width: 100%;
    justify-content: center;
  }
  
  .themes-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .featured-content h2 {
    font-size: 1.6rem;
  }
  
  .newsletter-content {
    padding: 30px;
  }
  
  .newsletter-content h3 {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .jump-to-recipe,
  .social-share,
  .related-recipes,
  .newsletter-box,
  .ad-slot,
  .comments-area,
  #cook-mode-toggle,
  .post-thumbnail,
  .author-box,
  .recipe-rating-summary,
  .recipe-actions-bar,
  .pin-overlay,
  .nutrition-section,
  .hk-reviews-section,
  .entry-footer,
  .post-navigation,
  .recipe-sections-nav,
  .entry-meta .cat-links {
    display: none !important;
  }
  
  .entry-content {
    font-size: 12pt;
  }

  /* Hide intro paragraphs before first heading */
  .entry-content > p:first-child {
    display: none !important;
  }

  .entry-content .wp-block-heading {
    margin-top: 1.5em;
    font-size: 14pt;
  }
  
  .wprm-recipe-container {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .entry-title {
    font-size: 1.8rem;
  }
  
  .main-navigation ul {
    gap: 15px;
  }
  
  .site-branding {
    flex-direction: column;
    gap: 15px;
  }
  
  .featured-recipe {
    grid-template-columns: 1fr;
  }
  
  .jump-to-recipe {
    flex-direction: column;
  }
  
  .jump-btn, .print-btn, #cook-mode-toggle {
    justify-content: center;
  }
}

/* Author Box - Compact inline style */
.entry-header .author-box,
.author-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f5f5f5;
  border-radius: 50px;
  margin: 15px 0 25px;
  border: 1px solid #eee;
}

.entry-header .author-box img,
.author-box img,
.author-box > img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 0 !important;
  padding: 0 !important;
}

.author-box .author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.author-box .author-info strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}

.author-box .author-info span {
  color: #888;
  font-size: 0.8rem;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .author-box {
    padding: 8px 12px;
    gap: 10px;
  }
  
  .author-box img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    max-width: 36px;
  }
  
  .author-box .author-info span {
    display: none;
  }
}

/* Cook Mode Modal */
#cook-mode-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.cook-mode-content {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  margin: 20px auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  box-sizing: border-box;
}

.cook-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--color-primary);
  color: white;
  box-sizing: border-box;
}

.cook-mode-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.cook-mode-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
}

.cook-mode-close:hover {
  opacity: 0.8;
}

.cook-mode-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.cook-mode-section {
  margin-bottom: 30px;
}

.cook-mode-section:last-child {
  margin-bottom: 0;
}

.cook-mode-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.cook-mode-ingredients ul,
.cook-mode-instructions ol {
  padding-left: 20px;
  margin: 0;
}

.cook-mode-ingredients li,
.cook-mode-instructions li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
  line-height: 1.5;
}

.cook-mode-ingredients li:last-child,
.cook-mode-instructions li:last-child {
  border-bottom: none;
}

.cook-mode-instructions li {
  padding: 15px 0;
}

@media (max-width: 600px) {
  #cook-mode-modal {
    padding: 8px;
  }
  
  .cook-mode-content {
    margin: 8px auto;
    border-radius: 16px;
    max-width: calc(100vw - 16px);
  }
  
  .cook-mode-header {
    padding: 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .cook-mode-header h2 {
    font-size: 1.1rem;
    flex: 1;
    min-width: 120px;
  }
  
  .cook-mode-header-actions {
    gap: 10px;
  }
  
  .wake-lock-status {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  .cook-mode-body {
    padding: 15px;
    overflow-x: hidden;
  }
  
  .cook-mode-section h3 {
    font-size: 1rem;
  }
  
  .cook-mode-ingredients li,
  .cook-mode-instructions li {
    font-size: 1rem;
  }
}

/* ==========================================================================
   HERO FEATURED - Recipe of the Day
   ========================================================================== */

.hero-featured {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-featured:hover .hero-featured-bg {
  transform: scale(1.1);
}

.hero-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.5) 100%);
}

.hero-featured-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
  color: white;
}

.hero-featured-left {
  flex: 1;
  max-width: 600px;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-featured h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 15px;
}

.hero-featured h1 a {
  color: white;
  text-decoration: none;
}

.hero-featured h1 a:hover {
  text-decoration: underline;
}

.hero-excerpt {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 10px;
}

.hero-author {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-hero-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
  color: white;
}

/* Search Widget in Hero */
.hero-featured-right {
  flex-shrink: 0;
}

.hero-search-widget {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-search-widget form {
  display: flex;
  align-items: center;
}

.hero-search-widget input {
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 1rem;
  width: 220px;
  outline: none;
  color: var(--color-dark);
}

.hero-search-widget input::placeholder {
  color: #999;
}

.hero-search-widget button {
  background: var(--color-primary);
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}

.hero-search-widget button:hover {
  background: #e55a2b;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-featured {
    min-height: 450px;
  }
  
  .hero-featured-content {
    flex-direction: column;
    text-align: center;
    padding: 50px 0;
  }
  
  .hero-featured-left {
    max-width: 100%;
  }
  
  .hero-featured h1 {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-featured-right {
    width: 100%;
    max-width: 350px;
  }
  
  .hero-search-widget input {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 500px) {
  .hero-featured h1 {
    font-size: 1.8rem;
  }
  
  .hero-excerpt {
    font-size: 1rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 12px 22px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ENHANCED COOK MODE - Checkboxes & Step Highlighting
   ========================================================================== */

.cook-mode-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wake-lock-status {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: 20px;
}

.progress-counter {
  float: right;
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--color-gray);
  background: #f0f0f0;
  padding: 2px 10px;
  border-radius: 20px;
}

/* Ingredient Checklist */
.ingredient-checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ingredient-checklist li {
  padding: 0 !important;
  border-bottom: 1px solid #eee;
}

.ingredient-checklist li:last-child {
  border-bottom: none;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  margin: 2px 0;
  min-width: 0;
}

.ingredient-item:hover {
  background: #f8f8f8;
}

.ingredient-item input[type="checkbox"] {
  display: none;
}

.ingredient-item .checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 14px;
}

.ingredient-item input:checked + .checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.ingredient-item input:checked + .checkmark::after {
  content: '✓';
}

.ingredient-item.checked .ingredient-text {
  text-decoration: line-through;
  color: #999;
}

.ingredient-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Instruction Steps */
.instruction-steps {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: step-counter;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 15px;
  border-bottom: 1px solid #eee;
  counter-increment: step-counter;
  transition: all 0.3s;
  border-radius: 12px;
  margin: 5px 0;
}

.instruction-step:last-child {
  border-bottom: none;
}

.instruction-step:hover {
  background: #fafafa;
}

.instruction-step.completed {
  background: #f0fdf4;
  opacity: 0.7;
}

.instruction-step.completed .step-content {
  text-decoration: line-through;
  color: #888;
}

.instruction-step.completed .step-done-btn {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

.step-done-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #ccc;
}

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

.step-content {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.step-content::before {
  content: "Step " counter(step-counter) ": ";
  font-weight: 700;
  color: var(--color-primary);
}

/* Mobile adjustments for cook mode */
@media (max-width: 600px) {
  .ingredient-item {
    padding: 12px 8px;
  }
  
  .ingredient-text {
    font-size: 0.95rem;
  }
  
  .instruction-step {
    padding: 15px 10px;
  }
  
  .step-content {
    font-size: 0.95rem;
  }
  
  .step-done-btn {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   MOBILE SEARCH & HEADER ENHANCEMENTS
   ========================================================================== */

/* Header scroll state */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mobile search */
.mobile-search {
  display: none;
  background: #f5f5f5;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.mobile-search.active {
  display: block;
}

.mobile-search form {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.mobile-search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.mobile-search button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-search button:hover {
  background: #e55a2b;
}

/* Search toggle button */
.search-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-dark);
}

.search-toggle:hover {
  color: var(--color-primary);
}

/* Header search visibility */
@media (max-width: 768px) {
  .header-search.desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .search-toggle.mobile-only {
    display: none !important;
  }
  .mobile-search {
    display: none !important;
  }
}

/* ==========================================================================
   TABLE OF CONTENTS DROPDOWN
   ========================================================================== */

.recipe-toc-dropdown {
  position: relative;
  display: inline-block;
}

.toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f5f5f5;
  color: var(--color-dark);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toc-toggle:hover {
  background: #e8e8e8;
}

.toc-toggle svg {
  transition: transform 0.2s;
}

.toc-menu.active + .toc-toggle svg,
.toc-toggle:focus svg {
  transform: rotate(180deg);
}

.toc-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 10px 0;
  min-width: 180px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.toc-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.toc-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.toc-menu a:hover {
  background: #f5f5f5;
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 600px) {
  .recipe-toc-dropdown {
    width: 100%;
  }
  
  .toc-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .toc-menu {
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* ==========================================================================
   TAXONOMY ARCHIVE - Filter Navigation
   ========================================================================== */

.taxonomy-archive {
  padding: 40px 0;
}

.archive-header {
  text-align: center;
  margin-bottom: 40px;
}

.archive-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.archive-description {
  color: var(--color-gray);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.recipe-count {
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* Filter Navigation */
.filter-navigation {
  background: #fafafa;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 40px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-right: 12px;
  min-width: 60px;
}

.filter-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.filter-pill.active:hover {
  background: #e55a2b;
  border-color: #e55a2b;
  color: white;
}

.pill-count {
  font-size: 0.75rem;
  background: rgba(0,0,0,0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.filter-pill.active .pill-count {
  background: rgba(255,255,255,0.25);
}

/* Active Filters */
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  margin-top: 20px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.active-filter-tag:hover {
  background: #e55a2b;
  color: white;
  text-decoration: none;
}

.active-filter-tag .remove {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.8;
}

.active-filter-tag:hover .remove {
  opacity: 1;
}

.clear-all {
  color: var(--color-gray);
  font-size: 0.85rem;
  text-decoration: underline;
}

.clear-all:hover {
  color: var(--color-primary);
}

/* No Results */
.taxonomy-archive .no-recipes-message {
  text-align: center;
  padding: 80px 20px;
  background: #fafafa;
  border-radius: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .archive-title {
    font-size: 1.8rem;
  }
  
  .filter-navigation {
    padding: 20px;
  }
  
  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-label {
    margin-right: 0;
  }
  
  .filter-pills {
    display: flex;
  }
  
  .filter-pill {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   TAXONOMY ARCHIVE - Redesigned Filter Bar
   ========================================================================== */

.archive-header {
  text-align: center;
  padding: 50px 0 30px;
  background: linear-gradient(135deg, #fff9f5, #fff5ee);
  margin: -40px -20px 30px;
  padding-left: 20px;
  padding-right: 20px;
}

.archive-header-content {
  max-width: 600px;
  margin: 0 auto;
}

.archive-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.archive-description {
  color: var(--color-gray);
  font-size: 1.15rem;
  margin: 0;
}

/* Filter Bar */
.filter-bar {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 30px;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Search Input */
.filter-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.filter-search .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.filter-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s;
}

.filter-search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-search input::placeholder {
  color: #aaa;
}

/* Dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 14px 40px 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
  background: white url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-select:hover {
  border-color: #ccc;
}

/* Submit Button */
.filter-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-submit:hover {
  background: #e55a2b;
}

.filter-clear {
  padding: 14px 20px;
  color: var(--color-gray);
  text-decoration: none;
  font-weight: 500;
}

.filter-clear:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Results Bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.results-count {
  font-weight: 600;
  color: var(--color-dark);
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.active-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .archive-title {
    font-size: 2rem;
  }
  
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-search {
    width: 100%;
  }
  
  .filter-dropdowns {
    width: 100%;
  }
  
  .filter-select {
    flex: 1;
    min-width: 0;
  }
  
  .filter-submit {
    width: 100%;
    justify-content: center;
  }
  
  .filter-clear {
    text-align: center;
    width: 100%;
  }
  
  .results-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== Nutrition Facts - Editorial Ring Design ===== */
.nutrition-section {
  max-width: 780px;
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid #E8E4DF;
}

.nf-section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8A8580;
  margin-bottom: 8px;
}

.nf-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1A1816;
  margin-bottom: 6px;
}

.nf-divider {
  height: 1px;
  background: #E8E4DF;
  margin-bottom: 32px;
  position: relative;
}

.nf-divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 2px;
  background: var(--color-primary, #D4622B);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

/* Calorie Ring */
.calorie-ring-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px 20px;
  border: 1px solid #E8E4DF;
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.ring-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 14px;
}

.ring-svg {
  display: block;
}

.ring-segment {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ring-cal-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #1A1816;
}

.ring-cal-unit {
  font-size: 10px;
  color: #8A8580;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.ring-label {
  font-size: 11px;
  color: #8A8580;
  text-align: center;
}

/* Macro cards */
.macros-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.macro-card {
  background: #fff;
  border: 1px solid #E8E4DF;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.macro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.macro-card:hover::before { opacity: 1; }
.macro-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 24px rgba(0,0,0,0.06); 
}

.macro-card.carb::before { background: #C49A3C; }
.macro-card.protein::before { background: #4A8C5C; }
.macro-card.fat::before { background: #4A6F8C; }

.macro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.macro-dot.carb { background: #C49A3C; }
.macro-dot.protein { background: #4A8C5C; }
.macro-dot.fat { background: #4A6F8C; }

.macro-name {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8A8580;
  margin-bottom: 4px;
}

.macro-value {
  font-size: 24px;
  font-weight: 700;
  color: #1A1816;
}

.macro-unit {
  font-size: 14px;
  color: #8A8580;
  font-weight: 400;
}

/* Detail nutrients */
.detail-section {
  background: #fff;
  border: 1px solid #E8E4DF;
  border-radius: 14px;
  padding: 20px;
}

.detail-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8A8580;
  margin-bottom: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.detail-item {
  padding: 10px 6px;
  text-align: center;
  border-right: 1px solid #E8E4DF;
}

.detail-item:last-child { border-right: none; }

.detail-item-name {
  font-size: 11px;
  color: #8A8580;
  margin-bottom: 4px;
}

.detail-item-value {
  font-size: 16px;
  font-weight: 700;
  color: #1A1816;
}

.detail-item-bar {
  width: 32px;
  height: 3px;
  background: #E8E4DF;
  margin: 6px auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.detail-item-bar-fill {
  height: 100%;
  width: 0;
  background: var(--color-primary, #D4622B);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nf-footnote {
  font-size: 11px;
  color: #8A8580;
  margin-top: 16px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .nutrition-grid { 
    grid-template-columns: 1fr; 
  }
  .calorie-ring-container {
    max-width: 220px;
    margin: 0 auto;
  }
  .detail-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .detail-item:nth-child(2) { border-right: none; }
  .detail-item:nth-child(1),
  .detail-item:nth-child(2) { 
    border-bottom: 1px solid #E8E4DF; 
  }
}

/* ===== Recipes Archive Page ===== */
.recipes-archive-header {
  text-align: center;
  padding: 40px 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #E8E4DF;
}

.recipes-archive-header .archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.recipes-archive-header .archive-description {
  color: #666;
  font-size: 1.1rem;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.recipes-grid .recipe-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.recipes-grid .recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.recipes-grid .card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recipes-grid .card-image {
  aspect-ratio: 5/3;
  overflow: hidden;
}

.recipes-grid .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipes-grid .recipe-card:hover .card-image img {
  transform: scale(1.05);
}

.recipes-grid .card-image.placeholder {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.recipes-grid .card-content {
  padding: 16px;
}

.recipes-grid .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.recipes-grid .card-calories {
  font-size: 0.85rem;
  color: #888;
}

.recipes-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px 0 50px;
}

.recipes-pagination a,
.recipes-pagination span {
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.recipes-pagination a {
  background: #f5f5f5;
  color: #333;
  transition: all 0.2s;
}

.recipes-pagination a:hover {
  background: var(--color-primary, #D4622B);
  color: #fff;
}

.recipes-pagination .current {
  background: var(--color-primary, #D4622B);
  color: #fff;
}

.recipes-pagination .dots {
  background: none;
  color: #999;
}

@media (max-width: 600px) {
  .recipes-archive-header .archive-title {
    font-size: 1.8rem;
  }
  
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .recipes-grid .card-content {
    padding: 12px;
  }
  
  .recipes-grid .card-title {
    font-size: 0.95rem;
  }
}

/* ===== Recipe Actions Bar ===== */
.recipe-actions-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid #eee;
}

.recipe-actions-bar .cook-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary, #D4622B);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.recipe-actions-bar .cook-mode-btn:hover {
  background: #c45520;
  transform: translateY(-1px);
}

.recipe-sections-nav {
  display: flex;
  gap: 8px;
}

.recipe-sections-nav .section-link {
  display: inline-block;
  padding: 10px 16px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.recipe-sections-nav .section-link:hover {
  background: #e8e8e8;
  color: var(--color-primary, #D4622B);
}

.recipe-sections-nav .print-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 600px) {
  .recipe-actions-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .recipe-sections-nav {
    flex-wrap: wrap;
  }
  
  .recipe-sections-nav .section-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
