/* ============================================
   CookMeYum.com - Global Styles
   ============================================ */
:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #fdebd0;
    --secondary: #27ae60;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #faf9f7;
    --bg-warm: #fff8f0;
    --white: #ffffff;
    --gray: #b2bec3;
    --gray-light: #dfe6e9;
    --border: #e8e8e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --content-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Layout */
.container {
    width: 100%; max-width: var(--content-max);
    margin-left: auto; margin-right: auto;
    padding-left: 1.5rem; padding-right: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }

.header-inner {
    max-width: var(--content-max); margin: 0 auto;
    padding: 0 1.5rem; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
}

.logo {
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
    color: var(--primary); display: flex; align-items: center; gap: 0.4rem;
}
.logo svg { width: 28px; height: 28px; }

.nav-links {
    display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
    font-size: 0.92rem; font-weight: 500; color: var(--text);
    position: relative; padding: 0.3rem 0;
    transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.search-box { position: relative; }
.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.2rem; border: 2px solid var(--border);
    border-radius: 50px; width: 200px; font-family: inherit; font-size: 0.9rem;
    outline: none; transition: var(--transition); background: var(--bg);
}
.search-box input:focus { border-color: var(--primary); width: 260px; background: var(--white); }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray); }

.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer; padding: 0.4rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    margin-top: 0; padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
    text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -5%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(230,126,34,0.08) 0%, transparent 70%); border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { margin-bottom: 1rem; color: var(--dark); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.8rem; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; border: none; font-family: inherit;
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary); color: var(--white);
    box-shadow: 0 4px 14px rgba(230,126,34,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
    background: transparent; color: var(--dark); border: 2px solid var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 4rem 1.5rem; max-width: var(--content-max); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.5rem; color: var(--dark); }
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.2rem;
}
.category-card {
    background: var(--white); border-radius: var(--radius); padding: 1.8rem 1rem;
    text-align: center; cursor: pointer; transition: var(--transition);
    border: 2px solid transparent; box-shadow: var(--shadow);
}
.category-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.category-card.active { background: var(--primary); color: var(--white); }
.category-card.active .cat-count { color: rgba(255,255,255,0.8); }
.cat-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.category-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.cat-count { font-size: 0.8rem; color: var(--text-light); }

/* ============================================
   RECIPE CARDS
   ============================================ */
.recipes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.8rem;
}
.recipe-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.recipe-img-wrap { position: relative; overflow: hidden; }
.recipe-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.recipe-card:hover .recipe-img { transform: scale(1.05); }
.recipe-badge {
    position: absolute; top: 0.8rem; left: 0.8rem;
    background: var(--primary); color: var(--white); padding: 0.25rem 0.7rem;
    border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.recipe-fav {
    position: absolute; top: 0.8rem; right: 0.8rem;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: var(--white); display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow); transition: var(--transition);
}
.recipe-fav:hover { transform: scale(1.1); }
.recipe-fav.liked { background: #e74c3c; color: var(--white); }
.recipe-content { padding: 1.2rem; }
.recipe-meta {
    display: flex; gap: 1rem; margin-bottom: 0.6rem;
    font-size: 0.8rem; color: var(--text-light);
}
.recipe-meta span { display: flex; align-items: center; gap: 0.25rem; }
.recipe-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--dark); }
.recipe-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; margin-bottom: 0.8rem; }
.recipe-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 0.8rem; border-top: 1px solid var(--border);
}
.rating { display: flex; align-items: center; gap: 0.3rem; color: #f39c12; font-weight: 600; font-size: 0.85rem; }
.author { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-light); }
.author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* ============================================
   RECIPE DETAIL PAGE
   ============================================ */
.recipe-detail { margin-top: 0; }
.recipe-hero {
    background: var(--bg-warm); padding: 3rem 1.5rem;
}
.recipe-hero-inner {
    max-width: var(--content-max); margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
.recipe-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.recipe-hero-img img { width: 100%; height: 420px; object-fit: cover; }
.recipe-hero-info h1 { margin-bottom: 0.8rem; }
.recipe-hero-meta {
    display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.2rem 0;
    font-size: 0.9rem; color: var(--text-light);
}
.recipe-hero-meta span { display: flex; align-items: center; gap: 0.3rem; }
.recipe-hero-meta .rating-lg { font-size: 1rem; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
    background: var(--primary-light); color: var(--primary-dark);
    padding: 0.3rem 0.9rem; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
}

/* Recipe Layout with Sidebar */
.recipe-layout {
    max-width: var(--content-max); margin: 0 auto; padding: 2rem 1.5rem;
    display: grid; grid-template-columns: 1fr 340px; gap: 3rem;
}
.recipe-main { min-width: 0; }
.recipe-sidebar { min-width: 0; }

/* Author Box */
.author-box {
    background: var(--white); border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); text-align: center; margin-bottom: 1.5rem;
}
.author-box img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 1rem; border: 3px solid var(--primary-light);
}
.author-box h4 { margin-bottom: 0.3rem; }
.author-box p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; }
.author-social { display: flex; justify-content: center; gap: 0.6rem; }
.author-social a {
    width: 34px; height: 34px; border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); transition: var(--transition);
}
.author-social a:hover { background: var(--primary); color: var(--white); }

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white); border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
    font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary-light);
}
.popular-recipe {
    display: flex; gap: 0.8rem; margin-bottom: 1rem; cursor: pointer;
    transition: var(--transition);
}
.popular-recipe:hover { transform: translateX(4px); }
.popular-recipe img {
    width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover;
}
.popular-recipe h5 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.popular-recipe span { font-size: 0.75rem; color: var(--text-light); }

/* Ingredients */
.ingredients-section {
    background: var(--white); border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 2rem;
}
.ingredients-section h2 { margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.ingredients-list { display: grid; gap: 0.6rem; }
.ingredient-item {
    display: flex; align-items: flex-start; gap: 0.8rem;
    padding: 0.7rem; border-radius: var(--radius-sm); transition: var(--transition);
}
.ingredient-item:hover { background: var(--bg); }
.ingredient-item input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; cursor: pointer;
}
.ingredient-item label { cursor: pointer; font-size: 0.95rem; flex: 1; }
.ingredient-item input:checked + label { text-decoration: line-through; color: var(--gray); }

/* Instructions */
.instructions-section {
    background: var(--white); border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 2rem;
}
.instructions-section h2 { margin-bottom: 1.5rem; }
.step {
    display: flex; gap: 1.2rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.step-content h4 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.step-content p { color: var(--text-light); font-size: 0.95rem; }
.step-img {
    margin-top: 0.8rem; border-radius: var(--radius-sm); overflow: hidden;
}
.step-img img { width: 100%; height: 200px; object-fit: cover; }

/* Nutrition */
.nutrition-section {
    background: var(--white); border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 2rem;
}
.nutrition-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem;
}
.nutrition-item {
    text-align: center; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm);
}
.nutrition-item .value { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.nutrition-item .label { font-size: 0.8rem; color: var(--text-light); margin-top: 0.2rem; }

/* Related Recipes */
.related-section { margin-bottom: 2rem; }
.related-section h2 { margin-bottom: 1.5rem; }

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
    background: var(--bg); border: 1px dashed var(--gray);
    border-radius: var(--radius-sm); text-align: center;
    padding: 1rem; margin: 1.5rem 0; min-height: 90px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray); font-size: 0.85rem;
}
.ad-slot-header { margin: 1rem 0; }
.ad-slot-sidebar { margin: 1rem 0; min-height: 250px; }
.ad-slot-in-content { margin: 2rem 0; }
.ad-slot-footer { margin: 2rem 0; }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    background: var(--dark); border-radius: var(--radius);
    padding: 3.5rem 2rem; text-align: center; color: var(--white);
    margin: 3rem auto; max-width: var(--content-max); position: relative; overflow: hidden;
}
.newsletter::before {
    content: ''; position: absolute; top: -40%; left: -5%; width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(230,126,34,0.15) 0%, transparent 70%); border-radius: 50%;
}
.newsletter h2 { margin-bottom: 0.5rem; position: relative; }
.newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; position: relative; }
.newsletter-form {
    display: flex; gap: 0.8rem; justify-content: center; max-width: 480px;
    margin: 0 auto; position: relative;
}
.newsletter-form input {
    flex: 1; padding: 0.9rem 1.2rem; border: none; border-radius: 50px;
    font-family: inherit; outline: none; font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark); color: var(--white); padding: 3.5rem 1.5rem 1.5rem;
}
.footer-grid {
    max-width: var(--content-max); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: var(--white);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 { font-size: 1rem; margin-bottom: 1.2rem; color: var(--white); }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
    color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
    padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================
   CONTENT PAGES (About, Contact, Legal)
   ============================================ */
.page-content { margin-top: 0; padding: 3rem 1.5rem; }
.page-inner { max-width: 800px; margin: 0 auto; }
.page-inner.wide { max-width: var(--content-max); }
.page-header { text-align: center; margin-bottom: 2.5rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-light); }

.content-card {
    background: var(--white); border-radius: var(--radius); padding: 2.5rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.content-card h2 {
    font-size: 1.4rem; margin: 1.5rem 0 0.8rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { font-size: 1.15rem; margin: 1.2rem 0 0.5rem; }
.content-card p { color: var(--text-light); line-height: 1.8; }
.content-card ul { margin: 0.8rem 0 0.8rem 1.5rem; list-style: disc; }
.content-card li { margin-bottom: 0.4rem; color: var(--text-light); }
.content-card a { color: var(--primary); text-decoration: underline; }
.content-card a:hover { color: var(--primary-dark); }

/* Contact Form */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
    outline: none; transition: var(--transition); background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* About Page */
.about-hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
    margin-bottom: 3rem;
}
.about-hero img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-hero h2 { margin-bottom: 1rem; }
.about-hero p { color: var(--text-light); line-height: 1.8; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .recipe-layout { grid-template-columns: 1fr; }
    .recipe-sidebar { order: 2; }
    .recipe-main { order: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 68px; left: 0; right: 0; background: var(--white);
        flex-direction: column; padding: 1.5rem; gap: 1.2rem;
        box-shadow: var(--shadow-lg); transform: translateY(-150%);
        transition: var(--transition);
    }
    .nav-links.open { transform: translateY(0); }
    .mobile-menu-btn { display: block; }
    .search-box { display: none; }
    .hero { padding: 3rem 1rem; }
    .hero h1 { font-size: 2rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .recipes-grid { grid-template-columns: 1fr; }
    .recipe-hero-inner { grid-template-columns: 1fr; }
    .recipe-hero-img img { height: 280px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .about-hero { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
    .step { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
    .recipe-hero-meta { gap: 0.8rem; }
    .recipe-hero-meta span { font-size: 0.8rem; }
    .section { padding: 2.5rem 1rem; }
    .content-card { padding: 1.5rem; }
}


/* ============================================
   MARKUP-MATCHING RULES
   (class names actually used in the HTML files)
   ============================================ */

/* Header / brand / nav */
.header-inner { height: auto; min-height: 68px; gap: 1rem; }
.brand {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary);
}
.brand-icon { font-size: 1.5rem; line-height: 1; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #e77c38, #f2b066); color: var(--white);
    font-family: Arial, var(--font-body), sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3px;
}
.brand.small { font-size: 1.15rem; }
.brand.small .brand-mark { width: 28px; height: 28px; font-size: 0.65rem; border-radius: 8px; }
.site-footer .brand { color: var(--white); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
    font-size: 0.92rem; font-weight: 500; color: var(--text);
    position: relative; padding: 0.3rem 0; transition: var(--transition);
}
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.4rem; border-radius: 50px; font-weight: 600; font-size: 0.92rem;
    cursor: pointer; border: 2px solid transparent; font-family: inherit;
    transition: var(--transition); white-space: nowrap;
}
.button-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(230,126,34,0.3); }
.button-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.button-secondary { background: transparent; color: var(--dark); border-color: var(--dark); }
.button-secondary:hover { background: var(--dark); color: var(--white); }
.button-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* Hero */
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Ad slot */
.ad-box { flex-direction: column; gap: 0.25rem; }
.ad-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.ad-placeholder { font-weight: 600; }
.ad-code-note { font-size: 0.75rem; }

/* Section headings */
.section-title { text-align: center; margin-bottom: 2rem; color: var(--dark); }
.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    text-align: left; margin-bottom: 1.5rem; gap: 1rem;
}
.section-header .section-title { margin: 0; text-align: left; }
.view-all { color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.view-all:hover { color: var(--primary-dark); }

/* Categories */
.categories-section { padding: 3rem 0; }
.category-link {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    background: var(--white); border-radius: var(--radius); padding: 1.6rem 1rem;
    box-shadow: var(--shadow); border: 2px solid transparent;
    font-weight: 600; color: var(--dark); transition: var(--transition);
}
.category-link:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.category-icon { font-size: 2rem; line-height: 1; }

/* Recipe grid / cards */
.latest-recipes { padding: 3rem 0 4rem; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.8rem; }
.recipe-card { display: block; }
.recipe-image { width: 100%; height: 200px; }
.recipe-info { padding: 1.2rem; }
.recipe-category {
    display: inline-block; margin-bottom: 0.5rem; color: var(--primary);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.recipe-info .recipe-meta {
    justify-content: space-between; align-items: center; margin: 0;
    padding-top: 0.8rem; border-top: 1px solid var(--border);
}

/* Newsletter */
.newsletter-section { padding: 1rem 0 4rem; }
.newsletter-content {
    background: var(--dark); color: var(--white); border-radius: var(--radius);
    padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.newsletter-content h2 { margin-bottom: 0.4rem; }
.newsletter-content p { color: rgba(255,255,255,0.7); margin: 0; }
.newsletter-content .newsletter-form { flex: 1; max-width: 460px; margin: 0; }

/* Footer */
.site-footer { padding: 3.5rem 0 1.5rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-section p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-section h4 { font-size: 1rem; margin-bottom: 1.2rem; color: var(--white); }
.footer-brand {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white);
}
.social-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.social-icon {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: var(--white);
    transition: var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
ul.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
div.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }

/* Simple content pages (about, contact, privacy, disclaimer, automation, adsense) */
.simple-page { padding: 3rem 0 4rem; }
.simple-page .content-card { max-width: 820px; width: calc(100% - 2rem); margin: 0 auto; }
.content-card h1 { margin: 0.6rem 0 1.2rem; color: var(--dark); }
.eyebrow {
    display: inline-block; background: var(--primary-light); color: var(--primary-dark);
    padding: 0.3rem 0.9rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.code-box {
    background: var(--dark); color: #e8e8e8; border-radius: var(--radius-sm);
    padding: 1.2rem 1.4rem; margin: 1.2rem 0; overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem; line-height: 1.6; white-space: pre;
}
.contact-info { margin: 1.2rem 0 2rem; }
.contact-info p { margin-bottom: 0.4rem; }
.contact-form { display: grid; gap: 1.2rem; }
.contact-form label { display: block; font-weight: 500; font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
    display: block; width: 100%; margin-top: 0.4rem; padding: 0.8rem 1rem;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem; outline: none; background: var(--bg);
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .button { justify-self: start; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
    .nav { order: 3; width: 100%; justify-content: center; gap: 1.3rem; padding-bottom: 0.2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .newsletter-content { flex-direction: column; align-items: stretch; padding: 2rem 1.5rem; }
    .newsletter-content .newsletter-form { max-width: none; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .recipe-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RECIPE DETAIL PAGE (markup-matching)
   ============================================ */
.recipe-shell { padding-top: 2rem; padding-bottom: 4rem; }
.recipe-detail { margin-top: 0; }
.recipe-hero {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
    background: var(--bg-warm); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem;
}
.recipe-hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.recipe-hero-image img { width: 100%; height: 380px; object-fit: cover; }
.recipe-hero-copy h1 { margin: 0.8rem 0; color: var(--dark); }
.recipe-summary { color: var(--text-light); font-size: 1.05rem; }
.recipe-metadata {
    display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 1rem 0 1.4rem;
    font-size: 0.9rem; color: var(--text-light); font-weight: 500;
}
.share-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.ad-wrap { padding: 0; }
.recipe-layout { padding: 1rem 0 0; }
.recipe-main-column { min-width: 0; }
.recipe-section {
    background: var(--white); border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow); margin-bottom: 2rem;
}
.recipe-section h2 { margin-bottom: 1.2rem; font-size: 1.6rem; color: var(--dark); }
/* Long-form article text (imported WordPress posts) */
.recipe-article { line-height: 1.75; }
.recipe-article .jump-link { text-align: center; }
.recipe-article .jump-link a { color: var(--white); text-decoration: none; }
#recipe-card-container { scroll-margin-top: 90px; }
.recipe-article h2 { margin: 2rem 0 0.8rem; font-size: 1.45rem; scroll-margin-top: 90px; }
.recipe-article h2:first-child, .recipe-article > :first-child { margin-top: 0; }
.recipe-article h3 { margin: 1.5rem 0 0.6rem; font-size: 1.2rem; }
.recipe-article p, .recipe-article ul, .recipe-article ol { margin: 0 0 1rem; }
.recipe-article ul, .recipe-article ol { padding-left: 1.4rem; }
.recipe-article li { margin-bottom: 0.35rem; }
.recipe-article a { color: var(--primary-dark); text-decoration: underline; }
.recipe-article figure { margin: 1.5rem 0; }
.recipe-article img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0 auto; }
.notes-list { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--dark); }
.faq-item p { margin: 0.6rem 0 0; color: var(--text-light); }
.recipe-section .ingredients-list { list-style: none; display: grid; gap: 0.5rem; padding: 0; }
.recipe-section .ingredients-list li {
    padding: 0.6rem 0.8rem 0.6rem 2.2rem; position: relative;
    border-radius: var(--radius-sm); background: var(--bg);
}
.recipe-section .ingredients-list li::before {
    content: ''; position: absolute; left: 0.9rem; top: 50%; width: 9px; height: 9px;
    margin-top: -4.5px; border-radius: 50%; background: var(--primary);
}
.step-number {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.step-body { min-width: 0; flex: 1; }
.step-body h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.step-body p { color: var(--text-light); }
.step-body img { margin-top: 0.8rem; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-sm); }
.nutrition-grid > div { text-align: center; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); }
.nutrition-grid strong { display: block; font-size: 1.25rem; color: var(--primary); }
.nutrition-grid span { font-size: 0.8rem; color: var(--text-light); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.mini-card { background: var(--bg); border-radius: var(--radius-sm); overflow: hidden; }
.mini-thumb { height: 110px; }
.mini-a { background: linear-gradient(135deg, #f5d5c4, #e39a6e); }
.mini-b { background: linear-gradient(135deg, #f4e0b3, #dac677); }
.mini-c { background: linear-gradient(135deg, #f9e1d8, #d9a08f); }
.mini-copy { padding: 0.8rem; }
.mini-copy h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.mini-copy span { font-size: 0.8rem; color: var(--text-light); }
.sidebar-card {
    background: var(--white); border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.sidebar-card h3 {
    font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--primary-light);
}
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: 0.4rem 0; color: var(--text-light); font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-ad { min-height: 250px; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 1024px) { .recipe-hero { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .recipe-hero { padding: 1.2rem; }
    .recipe-hero-image img { height: 260px; }
    .recipe-section { padding: 1.4rem; }
}
@media print {
    .site-header, .site-footer, .ad-slot, .share-row, .recipe-sidebar { display: none !important; }
    .recipe-layout { grid-template-columns: 1fr; }
}

/* Active nav, unified footer brand, filters */
.nav a[aria-current="page"] { color: var(--primary); }
.nav a[aria-current="page"]::after { width: 100%; }
.footer-section .brand { margin-bottom: 1rem; }
.footer-section .brand-text { color: var(--white); }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-pill {
    border: 2px solid var(--border); background: var(--white); color: var(--text);
    padding: 0.45rem 1.1rem; border-radius: 50px; font: 600 0.85rem var(--font-body);
    cursor: pointer; transition: var(--transition);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter-search {
    padding: 0.55rem 1.1rem; border: 2px solid var(--border); border-radius: 50px;
    font: 0.9rem var(--font-body); min-width: 220px; outline: none; background: var(--white);
}
.filter-search:focus { border-color: var(--primary); }
.no-results { text-align: center; color: var(--text-light); padding: 2rem 0; }
.recipe-card[hidden] { display: none; }
@media (max-width: 768px) { .filter-search { width: 100%; } }

/* Related recipe cards are links */
a.mini-card { display: block; transition: var(--transition); }
a.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-thumb { background-size: cover; background-position: center; }

/* ============================================
   Listings, pagination, images, live ads
   ============================================ */
.hero-compact { padding: 3rem 1.5rem; }
.hero-compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero-compact p { margin-bottom: 0; }
.recipe-image { position: relative; overflow: hidden; }
.recipe-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.recipe-card:hover .recipe-image img { transform: scale(1.05); }
.mini-thumb { overflow: hidden; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Tall (pin-style) photos: whole image in the hero, top crop in cards */
.recipe-hero-image.is-portrait { justify-self: center; }
.recipe-hero-image.is-portrait img { width: auto; max-width: 100%; height: 560px; object-fit: contain; }
img.is-portrait { object-position: 50% 15%; }
@media (max-width: 1024px) { .recipe-hero-image.is-portrait img { height: auto; max-height: 75vh; } }
a.filter-pill { display: inline-block; }
.filter-bar .filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
[hidden] { display: none !important; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2.5rem; }
.page-link {
    min-width: 42px; height: 42px; padding: 0 0.9rem; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--border); border-radius: 50px; background: var(--white); color: var(--text);
    font-weight: 600; font-size: 0.9rem; transition: var(--transition);
}
a.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.page-gap { color: var(--text-light); padding: 0 0.2rem; }

/* Real ads only: no borders/boxes. Without AdSense config nothing is rendered at all. */
.ad-live { display: block; border: none; background: none; min-height: 0; padding: 0; text-align: center; color: var(--text-light); }
.ad-live .ad-note { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.ad-wrap { padding-top: 1.5rem; padding-bottom: 0.5rem; }
.ad-card .ad-live { margin: 0; }

/* ============================================
   Pinterest: Save buttons on images, "Save this recipe" box
   ============================================ */
.recipe-hero-image { position: relative; }
.pin-wrap { position: relative; display: inline-block; max-width: 100%; }
.pin-wrap img { display: block; }
.pin-save {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.8rem; border-radius: 999px;
    background: #e60023; color: #fff !important; font-weight: 700; font-size: 0.85rem; line-height: 1;
    text-decoration: none !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0; transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.pin-save svg { width: 16px; height: 16px; }
.pin-save:hover { background: #ad081b; }
.recipe-hero-image:hover .pin-save, .pin-wrap:hover .pin-save, .pin-save:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .pin-save { opacity: 1; transform: none; } }   /* touch screens: always visible */
.pin-cta {
    display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: center;
    margin-top: 2rem; padding: 1.2rem; border-radius: var(--radius); background: var(--bg-warm);
}
.pin-cta .pin-wrap img { width: 180px; height: auto; border-radius: var(--radius-sm); }
.pin-cta .pin-cta-title { font-weight: 700; font-size: 1.2rem; color: var(--dark); margin: 0 0 0.3rem; }
.pin-cta p { margin: 0 0 0.9rem; }
.pin-cta > div > .pin-save { position: static; opacity: 1; transform: none; font-size: 0.95rem; padding: 0.7rem 1.1rem; }
.pin-cta .pin-wrap .pin-save { display: none; }
@media (max-width: 560px) { .pin-cta { grid-template-columns: 1fr; text-align: center; } .pin-cta .pin-wrap img { margin: 0 auto; } }
@media print { .pin-save, .pin-cta { display: none !important; } }

/* Forms: spam trap, status message */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0.8rem 0 0; font-weight: 600; color: #1e7b45; }
.form-status.is-error { color: #b3261e; }
.form-note { margin: 0.6rem 0 0; font-size: 0.82rem; opacity: 0.8; flex-basis: 100%; }
.form-note a { color: inherit; text-decoration: underline; }
.newsletter-form { flex-wrap: wrap; }
.newsletter-form .form-status { flex-basis: 100%; }
