/*
Theme Name: نادر ثيم
Theme URI: https://hmrecipes.com
Author: Nader
Author URI: https://hmrecipes.com
Description: Beautiful modern recipe theme - Vibrant Light Design
Version: 12.0
License: GNU General Public License v2 or later
Text Domain: nader-theme
Tags: recipes, food, blog, custom-menu, featured-images
*/

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

/* ============================================
   DESIGN TOKENS - Vibrant Light Palette
   ============================================ */
:root {
    /* Brand Colors */
    --coral:       #FF6B6B;
    --coral-dark:  #E85555;
    --coral-light: #FF8E8E;
    --amber:       #FF9A3C;
    --amber-light: #FFB870;
    --mint:        #2EC4B6;
    --mint-light:  #5BDEC9;
    --lemon:       #FFE66D;

    /* Semantic */
    --primary:     var(--coral);
    --secondary:   var(--amber);
    --accent:      var(--mint);

    /* Backgrounds */
    --bg:          #FFFFFF;
    --bg-soft:     #FFF8F5;
    --bg-muted:    #F5F5F5;
    --bg-card:     #FFFFFF;
    --bg-dark:     #0F0F0F;
    --surface:     #FAFAFA;

    /* Text */
    --txt:         #1A1A2E;
    --txt-2:       #4A4A68;
    --txt-3:       #8888A0;
    --txt-inv:     #FFFFFF;

    /* Borders */
    --border:      rgba(26, 26, 46, 0.08);
    --border-card: rgba(26, 26, 46, 0.06);

    /* Shadows */
    --shadow-xs:   0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm:   0 4px 12px rgba(0,0,0,0.06);
    --shadow-md:   0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg:   0 16px 48px rgba(0,0,0,0.10);
    --shadow-coral:0 8px 24px rgba(255, 107, 107, 0.25);
    --shadow-card: 0 2px 16px rgba(26,26,46,0.07);

    /* Radius */
    --r-xs:  6px;
    --r-sm:  10px;
    --r-md:  16px;
    --r-lg:  24px;
    --r-xl:  32px;
    --r-full:9999px;

    /* Font */
    --font-body:  'Inter', -apple-system, sans-serif;
    --font-head:  'Playfair Display', Georgia, serif;

    /* Transitions */
    --t-fast:   150ms ease;
    --t-mid:    280ms cubic-bezier(0.4,0,0.2,1);
    --t-slow:   450ms cubic-bezier(0.4,0,0.2,1);
    --t-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);
}

/* ============================================
   DARK MODE TOKENS
   ============================================ */
[data-theme="dark"] {
    --bg:          #0F0F13;
    --bg-soft:     #161620;
    --bg-muted:    #1E1E2A;
    --bg-card:     #1A1A25;
    --surface:     #1A1A25;
    --txt:         #F0F0F8;
    --txt-2:       #A8A8C0;
    --txt-3:       #60607A;
    --border:      rgba(255,255,255,0.08);
    --border-card: rgba(255,255,255,0.06);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
    --shadow-md:   0 8px 24px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--txt);
    line-height: 1.65;
    font-size: 1rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--coral), var(--amber), var(--mint));
    z-index: 9999;
    transition: width 0.12s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--coral);
    color: #fff;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-coral);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--t-spring);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    background: var(--coral-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(255,107,107,0.35);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
[data-theme="dark"] .site-header {
    background: rgba(15,15,19,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

/* Logo */
.logo-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--coral), var(--amber));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
    flex-shrink: 0;
    transition: transform 0.3s var(--t-spring);
}
.logo-badge:hover .logo-mark {
    transform: rotate(-8deg) scale(1.1);
}
.logo-text-group { line-height: 1; }
.logo-title {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: -0.5px;
}
.logo-title span { color: var(--coral); }
.logo-sub {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--txt-3);
    font-weight: 600;
    margin-top: 1px;
}

/* Navigation */
.main-nav {}
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-list a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--txt-2);
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
    transition: left 0.3s ease, right 0.3s ease;
}
.nav-list a:hover { color: var(--coral); background: rgba(255,107,107,0.07); }
.nav-list a:hover::after { left: 0.875rem; right: 0.875rem; }
.nav-list li.current-menu-item > a { color: var(--coral); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.theme-toggle, .search-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--bg-muted);
    color: var(--txt-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--t-fast);
    border: 1px solid var(--border);
}
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .search-toggle { background: var(--bg-muted); border-color: var(--border); }
.theme-toggle:hover, .search-toggle:hover {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
    transform: scale(1.05);
}
.mobile-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all var(--t-fast);
}
.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--txt);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle:hover { background: var(--coral); border-color: var(--coral); }
.mobile-menu-toggle:hover .hamburger-line { background: #fff; }

/* Search Dropdown */
.search-dropdown {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 0;
    z-index: 999;
    display: none;
    transform: translateY(-8px);
    opacity: 0;
}
.search-dropdown.open {
    display: block;
    animation: slideDown 0.25s ease forwards;
}
@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}
.search-form-full {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.search-input-wrapper {
    flex: 1;
    min-width: 240px;
    position: relative;
}
.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-3);
    font-size: 0.9rem;
}
.search-form-full input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-muted);
    color: var(--txt);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form-full input[type="text"]:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
    background: var(--bg);
}
.search-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-filter {
    padding: 0.65rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-muted);
    color: var(--txt-2);
    font-size: 0.85rem;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.search-filter:focus { outline: none; border-color: var(--coral); }
.search-actions { display: flex; gap: 0.5rem; }
.search-actions button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: var(--coral);
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--t-fast), transform var(--t-fast);
}
.search-actions button[type="submit"]:hover { background: var(--coral-dark); transform: translateY(-1px); }
.search-close {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--bg-muted);
    color: var(--txt-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}
.search-close:hover { background: #ffd0d0; color: var(--coral); }

/* Mobile Overlay Nav */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 90vw);
    height: 100%;
    background: var(--bg);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}
.mobile-nav-overlay.active .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}
.mobile-nav-close button {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--bg-muted);
    color: var(--txt-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--txt);
    transition: color var(--t-fast), padding-left var(--t-fast);
}
.mobile-nav-list a:hover { color: var(--coral); padding-left: 0.5rem; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-premium {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}
.hero-bg-slider {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 12s ease;
}
.hero-premium.loaded .hero-bg-slider { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15,15,20,0.82) 0%,
        rgba(15,15,20,0.50) 50%,
        rgba(255,107,107,0.15) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 4rem 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,107,107,0.15);
    border: 1px solid rgba(255,107,107,0.4);
    color: #FF9A9A;
    padding: 0.4rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--coral-light), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.btn-gourmet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--coral), var(--amber));
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform var(--t-spring), box-shadow var(--t-mid);
    box-shadow: var(--shadow-coral);
}
.btn-gourmet:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255,107,107,0.4);
}
.btn-gourmet-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: 2px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.9);
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    transition: all var(--t-mid);
}
.btn-gourmet-outline:hover {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.hero-stats-bar {
    display: inline-flex;
    gap: 2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    border-radius: var(--r-lg);
    padding: 1rem 1.75rem;
}
.stat-item { text-align: center; }
.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-item span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.55);
    margin-top: 3px;
    display: block;
}
.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    align-self: stretch;
}
/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   GENERAL BUTTON
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--t-mid);
}
.btn-primary {
    background: var(--coral);
    color: #fff;
    box-shadow: var(--shadow-coral);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost {
    border: 2px solid var(--border);
    color: var(--txt-2);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); background: rgba(255,107,107,0.05); }
.btn-large { padding: 1rem 2rem; font-size: 1rem; }

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--bg-soft); }
[data-theme="dark"] .section-alt { background: var(--bg-muted); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--coral);
    margin-bottom: 0.875rem;
}
.section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--txt);
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 1.0rem;
    color: var(--txt-2);
    max-width: 540px;
    line-height: 1.75;
    margin-top: 0.75rem;
}
.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-head .section-subtitle { margin-left: auto; margin-right: auto; }
.section-head-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* See All Link */
.see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--coral);
    border-bottom: 2px solid transparent;
    transition: border-color var(--t-fast), gap var(--t-fast);
    white-space: nowrap;
    padding-bottom: 2px;
}
.see-all:hover { border-color: var(--coral); gap: 0.65rem; }

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.section-categories { padding: 70px 0; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    text-align: center;
    transition: all var(--t-spring);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.cat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--coral), var(--amber));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-coral);
    border-color: transparent;
}
.cat-item:hover::before { opacity: 1; }
.cat-item:hover .cat-emoji,
.cat-item:hover .cat-title { position: relative; z-index: 1; color: #fff; }
.cat-emoji {
    font-size: 2rem;
    line-height: 1;
    transition: transform var(--t-spring);
}
.cat-item:hover .cat-emoji { transform: scale(1.2); }
.cat-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--txt-2);
    transition: color var(--t-fast);
}
.cat-num {
    font-size: 0.68rem;
    color: var(--txt-3);
    background: var(--bg-muted);
    padding: 2px 8px;
    border-radius: var(--r-full);
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: background var(--t-fast), color var(--t-fast);
}
.cat-item:hover .cat-num { background: rgba(255,255,255,0.25); color: #fff; }

/* ============================================
   RECIPE CARDS
   ============================================ */
.recipe-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.recipe-card-compact {
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: all var(--t-mid);
    position: relative;
}
.recipe-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,107,107,0.2);
}
.recipe-card-compact a { display: block; }
.rcc-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-muted);
}
.rcc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.recipe-card-compact:hover .rcc-img img { transform: scale(1.08); }
.rcc-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FFF0EE, #FFE8E0);
    color: var(--coral);
}
.rcc-body {
    padding: 1.25rem;
}
.rcc-body h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 0.6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rcc-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.rcc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--txt-3);
    font-weight: 500;
}
.rcc-meta span i { color: var(--coral); font-size: 0.7rem; }

/* Old recipe card style (compatibility) */
.recipe-card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: all var(--t-mid);
}
.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,107,107,0.2);
}
.recipe-card .thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.recipe-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.recipe-card:hover .thumbnail img { transform: scale(1.08); }
.recipe-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--coral);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.recipe-card .time-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--txt);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.625rem;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(8px);
}
.recipe-card .time-badge i { color: var(--coral); }
.recipe-card .content { padding: 1.25rem; }
.recipe-card .category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--coral);
    margin-bottom: 0.5rem;
}
.recipe-card .title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 0.625rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recipe-card .excerpt {
    font-size: 0.85rem;
    color: var(--txt-2);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recipe-card .info {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.recipe-card .info-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--txt-3);
}
.recipe-card .info-item i { color: var(--coral); }
.recipe-card .rating {
    display: flex;
    gap: 2px;
    color: var(--amber);
    font-size: 0.75rem;
    margin-left: auto;
}
.recipe-card .read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-soft);
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--coral);
    transition: all var(--t-fast);
}
.recipe-card .read-more:hover { background: var(--coral); color: #fff; }
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about { padding: 90px 0; }
.about-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5rem;
    align-items: center;
}
.about-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--coral);
    margin-bottom: 1rem;
}
.about-label::before { content: ''; width: 20px; height: 2px; background: var(--coral); border-radius: 2px; }
.about-text h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--txt);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}
.about-text p {
    font-size: 1.05rem;
    color: var(--txt-2);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}
.btn-about {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--coral);
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--t-spring);
    box-shadow: var(--shadow-coral);
}
.btn-about:hover { background: var(--coral-dark); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,107,107,0.35); }
.about-badge-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--coral), var(--amber));
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-coral);
    flex-shrink: 0;
}
.about-emoji { font-size: 3.5rem; }
.about-badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    padding: 90px 0;
    background: linear-gradient(135deg, #1A1A2E 0%, #2D1F3D 50%, #1A2A2E 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,107,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.newsletter::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46,196,182,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.newsletter .container { position: relative; z-index: 1; }
.newsletter-icon {
    width: 68px;
    height: 68px;
    background: rgba(255,107,107,0.15);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    color: #FF9090;
}
.newsletter h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}
.newsletter h2 em { color: var(--coral-light); font-style: italic; }
.newsletter p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.newsletter-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 0.9rem 1.25rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-body);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--coral);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.2);
}
.newsletter-form button {
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, var(--coral), var(--amber));
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--t-spring);
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(255,107,107,0.3);
}
.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,107,107,0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0D0D14;
    color: #F0F0F8;
    padding: 72px 0 36px;
}
[data-theme="dark"] .site-footer { background: #08080E; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}
.footer-brand p {
    color: rgba(240,240,248,0.5);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 280px;
    margin: 1rem 0 1.5rem;
}
.footer-social {
    display: flex;
    gap: 0.625rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(240,240,248,0.7);
    font-size: 0.88rem;
    transition: all var(--t-mid);
}
.footer-social a:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255,107,107,0.35);
}
.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(240,240,248,0.4);
    margin-bottom: 1.25rem;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(240,240,248,0.6);
    font-size: 0.9rem;
    transition: color var(--t-fast), padding-left var(--t-fast);
    display: inline-block;
}
.footer-links a:hover { color: var(--coral); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 2rem;
    text-align: center;
    color: rgba(240,240,248,0.35);
    font-size: 0.82rem;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.single-recipe { padding-top: 80px; }
.recipe-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,20,0.85), transparent 60%);
}
.recipe-hero .hero-content {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}
.recipe-hero .hero-content h1 {
    font-family: var(--font-head);
    font-size: 2.75rem;
    color: #fff;
}
.recipe-body { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.recipe-meta-cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.meta-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--r-md);
    text-align: center;
    transition: all var(--t-mid);
}
.meta-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.meta-card i { font-size: 1.4rem; color: var(--coral); margin-bottom: 0.5rem; display: block; }
.meta-card .label { font-size: 0.68rem; color: var(--txt-3); text-transform: uppercase; letter-spacing: 1.5px; }
.meta-card .value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--txt); margin-top: 2px; }
.recipe-content { font-size: 1rem; line-height: 1.85; color: var(--txt-2); }
.recipe-content h2, .recipe-content h3 {
    font-family: var(--font-head);
    color: var(--txt);
    margin: 2rem 0 1rem;
}
.recipe-content p { margin-bottom: 1.5rem; }
.recipe-content ul, .recipe-content ol { margin: 1rem 0 1.5rem 1.5rem; list-style: disc; }
.recipe-content li { margin-bottom: 0.5rem; }

.page-content { padding-top: 100px; min-height: 70vh; }
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-family: var(--font-head); font-size: 2.5rem; color: var(--txt); }
.page-body { max-width: 800px; margin: 0 auto; font-size: 1rem; line-height: 1.85; color: var(--txt-2); }

.archive-header {
    background: linear-gradient(135deg, var(--bg-soft), var(--bg-muted));
    padding: 110px 0 60px;
    text-align: center;
}
.archive-header h1 { font-family: var(--font-head); font-size: 2.75rem; color: var(--txt); }

.error-404 {
    padding-top: 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-soft), var(--bg-muted));
}
.error-404 .icon { font-size: 5rem; margin-bottom: 1rem; }
.error-404 h1 { font-family: var(--font-head); font-size: 4rem; color: var(--coral); }
.error-404 h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 1rem; }
.error-404 p { color: var(--txt-2); margin-bottom: 2rem; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* Lazy image */
.lazy-image {
    background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-soft) 50%, var(--bg-muted) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
img[data-src] { opacity: 0; transition: opacity 0.5s ease; }
img.loaded    { opacity: 1; }
.loading { animation: pulse 1.5s ease-in-out infinite; }

/* Dark mode transitions */
body, .site-header, .recipe-card, .newsletter, .site-footer, .meta-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Micro interactions */
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); }
.theme-toggle:active { transform: rotate(-15deg) scale(0.95); }

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .recipe-grid { grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
    .footer-grid { grid-template-columns: repeat(2,1fr); gap: 2.5rem; }
    .about-wrap { gap: 3rem; }
    .section { padding: 70px 0; }
    .hero-content { max-width: 600px; }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .site-header { height: 58px; }
    .main-nav, .header-search { display: none; }
    .mobile-menu-toggle { display: flex; }
    .container { padding: 0 16px; }
    .hero-premium { min-height: 85svh; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { gap: 0.75rem; }
    .hero-stats-bar { gap: 1.25rem; padding: 0.875rem 1.25rem; }
    .stat-item strong { font-size: 1.2rem; }
    .section { padding: 56px 0; }
    .section-head-flex { flex-direction: column; align-items: flex-start; }
    .recipe-row { grid-template-columns: 1fr; }
    .recipe-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(3,1fr); }
    .about-wrap { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .about-badge-box { margin: 0 auto; }
    .about-text p { margin-left: auto; margin-right: auto; }
    .newsletter { padding: 60px 0; }
    .newsletter h2 { font-size: 1.75rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { min-width: 100%; }
    .newsletter-form button { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-social { justify-content: center; }
    .recipe-hero { height: 340px; }
    .recipe-hero .hero-content h1 { font-size: 1.875rem; }
    .recipe-meta-cards { grid-template-columns: repeat(2,1fr); gap: 0.875rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: 1.875rem; }
    .cat-grid { grid-template-columns: repeat(2,1fr); }
    .hero-stats-bar { flex-direction: column; gap: 0.75rem; text-align: center; }
    .stat-divider { width: 30px; height: 1px; }
    .section-title { font-size: 1.5rem; }
    .rcc-img { height: 170px; }
    .error-404 h1 { font-size: 3rem; }
    .error-404 h2 { font-size: 1.5rem; }
    .about-badge-box { width: 150px; height: 150px; }
    .about-emoji { font-size: 2.5rem; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}