/*
Theme Name: Lala's Kitchen
Theme URI: https://lalaskitchen.net
Author: Lala's Kitchen
Description: A kawaii-inspired recipe theme built for lalaskitchen.net. Soft pinks, rounded corners, and a focus on beautiful, readable recipes.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lalaskitchen
Tags: food, recipes, blog, pink, kawaii, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --pink-light:    #FFF0F5;
    --pink-pale:     #FFD6E8;
    --pink-soft:     #FFB6C8;
    --pink-mid:      #FF8FAB;
    --pink-deep:     #E8527A;
    --pink-dark:     #C2406B;
    --white:         #FFFFFF;
    --off-white:     #FFFCFE;
    --text:          #2D1B24;
    --text-light:    #7A5968;
    --text-muted:    #B08090;
    --border:        #FFD6E8;
    --shadow-sm:     0 2px 8px rgba(200, 80, 120, 0.08);
    --shadow-md:     0 4px 20px rgba(200, 80, 120, 0.12);
    --shadow-lg:     0 8px 40px rgba(200, 80, 120, 0.16);
    --radius-sm:     8px;
    --radius-md:     16px;
    --radius-lg:     24px;
    --radius-full:   9999px;
    --font-body:     'Nunito', sans-serif;
    --font-heading:  'Fredoka', 'Nunito', sans-serif;
    --font-script:   'Great Vibes', cursive;
    --max-width:     1200px;
    --content-width: 780px;
    --sidebar-width: 320px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--pink-light);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--pink-deep);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--pink-dark); }

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 1.6em 0 0.6em; }

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.entry-content ol { list-style: decimal; }

blockquote {
    border-left: 4px solid var(--pink-mid);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--pink-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main    { flex: 1; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2.5rem;
    align-items: start;
}

.content-area { min-width: 0; }

@media (max-width: 1024px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
    .widget-area { order: 2; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 1.4em;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--pink-deep);
    color: var(--white);
    border-color: var(--pink-deep);
}
.btn-primary:hover {
    background: var(--pink-dark);
    border-color: var(--pink-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--pink-deep);
    border-color: var(--pink-mid);
}
.btn-outline:hover {
    background: var(--pink-light);
    border-color: var(--pink-deep);
    color: var(--pink-dark);
}

.btn-sm { padding: 0.4em 1em; font-size: 0.82rem; }
.btn-lg { padding: 0.8em 2em; font-size: 1rem; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--pink-pale);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.custom-logo { border-radius: 50%; }

.site-title {
    font-family: var(--font-script);
    font-size: 2rem;
    font-weight: 400;
    color: var(--pink-dark);
    line-height: 1.1;
    margin: 0;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Header Ad Banner */
.header-ad-slot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-navigation { display: flex; align-items: center; }

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: var(--pink-light);
    color: var(--pink-dark);
}

/* Dropdown */
.main-navigation li { position: relative; }

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    z-index: 200;
}

.main-navigation ul ul li { width: 100%; }
.main-navigation ul ul a { border-radius: var(--radius-sm); }

.main-navigation li:hover > ul { display: flex; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--text);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 2px solid var(--border);
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-md);
    }

    .main-navigation.is-open { display: block; }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-navigation ul ul {
        display: flex;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
}

/* ============================================================
   HERO / PAGE BANNER
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--pink-pale) 0%, var(--pink-light) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--pink-soft);
    opacity: 0.3;
}

.page-hero::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -80px;
}

.page-hero::after {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: -50px;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--pink-dark);
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   RECIPE CARDS (Archive/Index)
   ============================================================ */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin: 2.5rem 0;
}

@media (max-width: 900px) {
    .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.recipe-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.recipe-card-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--pink-pale);
}

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

.recipe-card:hover .recipe-card-thumb img {
    transform: scale(1.05);
}

.recipe-card-thumb .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--pink-soft);
}

.recipe-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: var(--pink-deep);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2em 0.7em;
    border-radius: var(--radius-full);
    transition: background 0.2s ease;
}

.recipe-card-category:hover {
    background: var(--pink-dark);
    color: var(--white);
}

.recipe-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}

.recipe-card-title a { color: inherit; }
.recipe-card-title a:hover { color: var(--pink-dark); }

.recipe-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.recipe-meta-item svg { width: 14px; height: 14px; fill: var(--pink-mid); }

.recipe-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Difficulty Badge */
.difficulty-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2em 0.7em;
    border-radius: var(--radius-full);
}

.difficulty-easy   { background: #D4F4E2; color: #1A7A48; }
.difficulty-medium { background: #FFF3D4; color: #8A6A00; }
.difficulty-hard   { background: #FFE0E8; color: #C2406B; }

/* ============================================================
   SINGLE RECIPE PAGE
   ============================================================ */
.single-recipe { padding: 2.5rem 0; }

.recipe-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    background: var(--pink-pale);
}

.recipe-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44,16,28,0.75) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.recipe-hero-title {
    color: var(--white);
    font-size: clamp(1.6rem, 4vw, 3rem);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    max-width: 700px;
}

.recipe-jump {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Recipe Quick Stats Bar */
.recipe-stats {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.recipe-stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--border);
}

.recipe-stat:last-child { border-right: none; }

.recipe-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.recipe-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pink-dark);
    font-family: var(--font-heading);
}

.recipe-stat-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .recipe-stats { gap: 0; }
    .recipe-stat {
        flex: 1 0 calc(50% - 1rem);
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .recipe-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* Recipe Intro / Story */
.recipe-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* In-content Ad */
.ad-in-content {
    margin: 2rem 0;
    text-align: center;
}

/* ============================================================
   RECIPE CARD (Full Recipe Block on Single Page)
   ============================================================ */
.recipe-block {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.recipe-block-header {
    background: linear-gradient(135deg, var(--pink-mid) 0%, var(--pink-deep) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.recipe-block-title {
    color: var(--white);
    font-size: 1.4rem;
    margin: 0;
}

.recipe-block-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-print, .btn-save {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-full);
    padding: 0.4em 1em;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.btn-print:hover, .btn-save:hover {
    background: rgba(255,255,255,0.35);
}

.recipe-block-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

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

.recipe-ingredients,
.recipe-instructions-wrap {
    padding: 2rem;
}

.recipe-ingredients {
    border-right: 2px solid var(--border);
}

@media (max-width: 700px) {
    .recipe-ingredients {
        border-right: none;
        border-bottom: 2px solid var(--border);
    }
}

.recipe-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--pink-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pink-pale);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Scaling Controls */
.scaling-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.scaling-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.scale-btn {
    background: var(--pink-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.25em 0.75em;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.scale-btn:hover,
.scale-btn.active {
    background: var(--pink-deep);
    border-color: var(--pink-deep);
    color: var(--white);
}

.servings-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin-left: auto;
    background: var(--pink-light);
    padding: 0.25em 0.75em;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
}

/* Ingredient List */
.ingredient-list { list-style: none; }

.ingredient-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pink-light);
    font-size: 0.95rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.4;
}

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

.ingredient-list li::before {
    content: '♡';
    color: var(--pink-soft);
    font-size: 0.8em;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.ingredient-amount {
    font-weight: 700;
    color: var(--pink-dark);
    white-space: nowrap;
}

/* Instructions */
.instructions-list { list-style: none; counter-reset: steps; }

.instructions-list li {
    counter-increment: steps;
    padding: 1rem 0 1rem 3rem;
    border-bottom: 1px solid var(--pink-light);
    font-size: 0.95rem;
    line-height: 1.65;
    position: relative;
}

.instructions-list li:last-child { border-bottom: none; }

.instructions-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: var(--pink-deep);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-body);
    flex-shrink: 0;
}

/* Recipe Notes */
.recipe-notes {
    padding: 1.5rem 2rem;
    background: var(--pink-light);
    border-top: 2px solid var(--border);
}

.recipe-notes-content {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    white-space: pre-line;
}

/* ============================================================
   STAR RATINGS
   ============================================================ */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: inline-flex;
    gap: 0.15em;
    cursor: pointer;
}

.star {
    font-size: 1.4rem;
    color: var(--pink-pale);
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}

.star.filled,
.stars:hover .star,
.stars .star:hover ~ .star { color: var(--pink-pale); }

.stars .star:hover,
.stars .star.hovered { color: #FFD700; transform: scale(1.15); }

.star.filled { color: #FFD700; }

.rating-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
}

.rating-avg {
    font-weight: 800;
    color: var(--text);
}

.rating-section {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
}

.rating-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.rating-prompt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.rating-interactive .stars { font-size: 2rem; cursor: pointer; }
.rating-interactive .star  { font-size: 2rem; }

.rating-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pink-dark);
    min-height: 1.2em;
}

/* ============================================================
   SIDEBAR / WIDGETS
   ============================================================ */
.widget-area > * + * { margin-top: 1.75rem; }

.widget {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, var(--pink-pale), var(--pink-light));
    color: var(--pink-deep);
    border-bottom: 2px solid var(--border);
    margin: 0;
    letter-spacing: 0.01em;
}

.widget-title::before {
    content: '♡ ';
    color: var(--pink-mid);
    margin-right: 0.15em;
}

/* Pad all widget content that follows the title.
   No .widget-body wrapper — avoids broken HTML when title is absent. */
.widget > ul,
.widget > ol,
.widget > form,
.widget > p,
.widget > div,
.widget > nav,
.widget > table {
    padding: 0.9rem 1.25rem;
}

.widget > ul,
.widget > ol { padding-bottom: 0.5rem; }

.widget ul { list-style: none; }

.widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--pink-light);
    font-size: 0.9rem;
}

.widget ul li:last-child { border-bottom: none; padding-bottom: 0.1rem; }

.widget ul li a { color: var(--text-light); font-weight: 600; }
.widget ul li a:hover { color: var(--pink-dark); }

/* Archive widget — Show More expand toggle */
.archive-hidden { display: none !important; }

.archive-show-more {
    display: block;
    width: calc(100% - 2.5rem);
    margin: 0.25rem 1.25rem 1rem;
    padding: 0.5rem 1rem;
    background: var(--pink-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--pink-deep);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.archive-show-more:hover {
    background: var(--pink-pale);
    border-color: var(--pink-mid);
    color: var(--pink-dark);
}

/* Search widget — WordPress outputs class widget_search (underscore) */
.widget_search input[type="search"],
.widget_search .search-field {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    outline: none;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--off-white);
    transition: border-color 0.2s ease;
}

.widget_search input[type="search"]:focus,
.widget_search .search-field:focus {
    border-color: var(--pink-mid);
}

/* Sticky sidebar */
.widget-area { position: sticky; top: 5.5rem; }

@media (max-width: 1024px) {
    .widget-area { position: static; }
}

/* Ad widget */
.ad-widget {
    text-align: center;
    padding: 0.5rem;
    background: var(--pink-light);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border);
}

.ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-light);
}

.pagination a:hover { background: var(--pink-light); border-color: var(--pink-mid); color: var(--pink-dark); }
.pagination .current { background: var(--pink-deep); border-color: var(--pink-deep); color: var(--white); }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.7rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    outline: none;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.search-field:focus { border-color: var(--pink-mid); }

.search-submit {
    background: var(--pink-deep);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease;
}

.search-submit:hover { background: var(--pink-dark); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--text);
    color: rgba(255,240,245,0.75);
    margin-top: auto;
}

.footer-cat-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--pink-mid), var(--pink-deep), var(--pink-mid));
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand-title {
    font-family: var(--font-script);
    font-size: 2rem;
    font-weight: 400;
    color: var(--pink-soft);
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,240,245,0.6);
    margin-bottom: 0;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pink-soft);
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul li a {
    color: rgba(255,240,245,0.65);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: var(--pink-soft); }

.footer-bottom {
    border-top: 1px solid rgba(255,240,245,0.1);
    padding: 1.25rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,240,245,0.4);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================================
   KAWAII DECORATIVE ELEMENTS
   ============================================================ */
.bow-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    color: var(--pink-soft);
}

.bow-divider::before,
.bow-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--pink-pale), var(--pink-soft));
}

.bow-divider::after {
    background: linear-gradient(to left, transparent, var(--pink-pale), var(--pink-soft));
}

/* ============================================================
   RELATED RECIPES
   ============================================================ */
.related-recipes { margin: 3rem 0; }

.related-recipes-title {
    font-family: var(--font-script);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--pink-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

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

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

/* ============================================================
   404 & SEARCH RESULTS
   ============================================================ */
.error-404,
.search-results-page {
    padding: 5rem 1.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--pink-dark);
    margin-bottom: 1rem;
}

.error-message {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
    text-align: center;
    position: relative;
}

.ad-slot-placeholder {
    background: var(--pink-light);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .ad-slot,
    .ad-in-content,
    .rating-section,
    .related-recipes,
    .recipe-jump,
    .btn-print,
    .btn-save,
    .scaling-controls,
    .menu-toggle { display: none !important; }

    body {
        background: white;
        color: black;
        font-size: 11pt;
    }

    .content-sidebar-wrap { display: block; }

    .recipe-block {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .recipe-block-header {
        background: #f0f0f0 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recipe-block-body { grid-template-columns: 1fr 1fr; }

    a[href]::after { content: none; }
}
