/* ===== CSS Variables ===== */
:root {
    --vermillion: #C41E3A;
    --vermillion-dark: #9B1B30;
    --gold: #D4AF37;
    --gold-light: #F4E4BC;
    --ink: #1a1a1a;
    --ink-light: #2d2d2d;
    --paper: #FAF8F3;
    --paper-dark: #F0EDE5;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
}

/* ===== Typography ===== */
.font-serif {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

.font-chinese {
    font-family: 'Noto Serif SC', serif;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--paper-dark);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--vermillion) 0%, var(--vermillion-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.35);
    flex-shrink: 0;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-chinese {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 3px;
    font-weight: 600;
}

.logo-brand {
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 700;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vermillion);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--vermillion);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Recipes Dropdown Button */
.recipes-btn {
    background: var(--vermillion);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 25px;
    font-weight: 600 !important;
}

.recipes-btn::after {
    display: none !important;
}

.recipes-btn:hover {
    background: var(--vermillion-dark) !important;
}

.recipes-btn .dropdown-icon {
    fill: var(--white);
}

/* Dropdown Menu */
.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.nav-links li:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1001;
    margin-top: 0.5rem;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
    min-height: 44px;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:active {
    background: var(--paper);
    color: var(--vermillion);
}

/* Touch-friendly improvements */
@media (hover: none) {
    .dropdown-menu a:active {
        background: var(--vermillion);
        color: var(--white);
    }
    
    .dropdown-menu a:active .category-icon-small {
        background: var(--white);
    }
    
    .dropdown-menu a:active .category-icon-small svg {
        fill: var(--vermillion);
    }
}

.dropdown-menu .category-icon-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu .category-icon-small svg {
    width: 16px;
    height: 16px;
    fill: var(--vermillion);
}

.dropdown-menu a:hover .category-icon-small {
    background: var(--vermillion);
}

.dropdown-menu a:hover .category-icon-small svg {
    fill: var(--white);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-actions .nav-links {
    display: flex;
    gap: 0;
}

.nav-actions .nav-links li {
    position: relative;
    list-style: none;
}

/* Center Search Box */
.nav-search-center {
    justify-self: center;
    width: 100%;
    max-width: 500px;
}

.nav-search-center .search-box {
    width: 100%;
}

.nav-search-center .search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 1rem;
    border-radius: 30px;
}

.nav-search-center .search-box svg {
    left: 1rem;
    width: 20px;
    height: 20px;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    background: var(--paper-dark);
    border: 1px solid transparent;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border-radius: 25px;
    color: var(--ink);
    width: 200px;
    outline: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.search-box input:focus {
    border-color: var(--vermillion);
    background: var(--white);
}

.search-box svg {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: var(--ink-light);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background: var(--paper-dark);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    padding: 0.3rem 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 17px;
    transition: all 0.3s;
    color: var(--ink-light);
}

.lang-btn.active {
    background: var(--vermillion);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    color: var(--vermillion);
}

.lang-select-mobile {
    display: none;
    border: 1px solid var(--paper-dark);
    border-radius: 16px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    height: 38px;
    padding: 0 0.65rem;
    min-width: 78px;
}

.search-modal-trigger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--paper-dark);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-modal-trigger svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.search-modal-open {
    overflow: hidden;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.search-modal-panel {
    position: relative;
    width: min(92vw, 460px);
    margin: 12vh auto 0;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

.search-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-modal-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.search-modal-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.75rem;
}

.search-modal-form input {
    height: 44px;
    border: 1px solid var(--paper-dark);
    border-radius: 14px;
    padding: 0 0.85rem;
    font-size: 0.95rem;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background: var(--vermillion-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink-light);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background: #B8960C;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--vermillion);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 70px;
    padding: 4rem 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(250, 248, 243, 0.95) 0%, rgba(250, 248, 243, 0.85) 100%),
        url('https://images.unsplash.com/photo-1563245372-f21724e3856d?w=1920&h=1080&fit=crop') center/cover;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vermillion);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--vermillion);
}

.hero-text h1 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text h1 span {
    color: var(--vermillion);
    font-style: italic;
}

.hero-chinese {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--ink-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--vermillion);
}

.feature-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--ink);
}

.feature-text span {
    color: var(--ink-light);
    font-size: 0.85rem;
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 8px solid var(--white);
}

.hero-image-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.floating-card.top {
    top: -20px;
    right: -30px;
}

.floating-card.bottom {
    bottom: 30px;
    left: -40px;
}

.recipe-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recipe-mini img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.recipe-mini-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.recipe-mini-info span {
    font-size: 0.75rem;
    color: var(--ink-light);
}

.recipe-mini-rating {
    display: flex;
    gap: 0.1rem;
    margin-top: 0.15rem;
}

.recipe-mini-rating svg {
    width: 12px;
    height: 12px;
    fill: var(--gold);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-label {
    color: var(--vermillion);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--ink-light);
}

/* ===== Categories ===== */
.categories {
    padding: 5rem 2rem;
    background: var(--white);
    position: relative;
    z-index: 2;
    clear: both;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.category-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    color: var(--ink);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover .category-icon {
    background: var(--vermillion);
    border-color: var(--vermillion);
}

.category-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--vermillion);
    transition: fill 0.3s;
}

.category-card:hover .category-icon svg {
    fill: var(--white);
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--ink-light);
}

/* ===== Recipes Grid ===== */
.popular-recipes {
    padding: 5rem 2rem;
    background: var(--paper);
    position: relative;
    z-index: 2;
    clear: both;
}

.recipes-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.recipe-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    display: block;
    position: relative;
    isolation: isolate;
}

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

.recipe-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
}

.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    isolation: isolate;
}

.recipe-card.featured .recipe-image {
    height: 100%;
    min-height: 380px;
    position: relative;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.recipe-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: var(--vermillion);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.recipe-badge.gold {
    background: var(--gold);
    color: var(--ink);
}

.recipe-fav {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.recipe-fav:hover {
    background: var(--vermillion);
}

.recipe-fav svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    transition: all 0.3s;
}

.recipe-fav:hover svg {
    fill: var(--white);
    stroke: var(--white);
}

.recipe-content {
    padding: 1.25rem;
    position: relative;
    background: var(--white);
}

.recipe-card.featured .recipe-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 1.5rem;
    z-index: 2;
}

.recipe-category {
    color: var(--vermillion);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.recipe-card.featured .recipe-category {
    color: var(--gold);
}

.recipe-title {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recipe-card.featured .recipe-title {
    font-size: 1.5rem;
}

.recipe-desc {
    font-size: 0.85rem;
    color: var(--ink-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.recipe-card.featured .recipe-desc {
    color: rgba(255, 255, 255, 0.8);
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--paper-dark);
}

.recipe-card.featured .recipe-meta {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--ink-light);
}

.recipe-card.featured .recipe-meta-item {
    color: rgba(255, 255, 255, 0.9);
}

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

.recipe-card.featured .recipe-meta-item svg {
    fill: var(--gold);
}

.recipe-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
}

.recipe-rating svg {
    width: 12px;
    height: 12px;
    fill: var(--gold);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 2rem;
    background: var(--vermillion);
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.cta-section h2 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ===== Footer ===== */
footer {
    background: var(--ink);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand .logo .logo-brand {
    color: var(--white);
}

.footer-brand .logo .logo-chinese {
    color: var(--gold);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--vermillion);
}

.social-links svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

/* ===== Page Header (for inner pages) ===== */
.page-header {
    margin-top: 70px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--vermillion-dark) 0%, var(--vermillion) 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Filter Bar ===== */
.filter-bar {
    padding: 1rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--paper-dark);
    position: sticky;
    top: 70px;
    z-index: 100;
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 0.75rem 1rem;
        top: 60px;
    }
}

.filter-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.4rem 1rem;
    background: var(--paper);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--vermillion);
    color: var(--white);
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-sort select {
    padding: 0.4rem 1rem;
    border: 1px solid var(--paper-dark);
    border-radius: 20px;
    background: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--paper-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover,
.page-btn.active {
    background: var(--vermillion);
    color: var(--white);
    border-color: var(--vermillion);
}

/* ===== Recipe Detail Page ===== */
.recipe-detail {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.recipe-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recipe-header .recipe-category {
    display: inline-block;
    margin-bottom: 1rem;
}

.recipe-header h1 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.recipe-meta-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.recipe-main-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.recipe-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.ingredients-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    height: fit-content;
}

.ingredients-section h3 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vermillion);
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--paper-dark);
}

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

.instructions-section h3 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vermillion);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--ink-light);
    font-size: 0.95rem;
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--paper-dark);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vermillion);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== About Page ===== */
.about-section {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
}

.about-content h2 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--ink-light);
}

/* ===== iPad / Tablet (768px - 1024px) ===== */
@media (max-width: 1024px) {
    nav {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-icon svg {
        width: 26px;
        height: 26px;
    }

    .logo-brand {
        font-size: 1rem;
    }

    .logo-chinese {
        font-size: 0.8rem;
    }

    .nav-search-center {
        display: none;
    }

    .lang-switch {
        gap: 0.1rem;
    }

    .lang-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }

    .recipes-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }

    .search-modal-trigger {
        display: inline-flex;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
        min-width: 260px;
    }

    .dropdown-menu::before {
        left: auto;
        right: 18px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .floating-card {
        display: none;
    }
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 768px) {
    nav {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .logo-icon svg {
        width: 22px;
        height: 22px;
    }

    .logo-text {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .lang-switch {
        display: none;
    }

    .lang-select-mobile {
        display: block;
        height: 36px;
        min-width: 76px;
        font-size: 0.75rem;
    }

    .dropdown-menu {
        min-width: min(84vw, 360px);
    }

    .search-modal-panel {
        width: min(92vw, 420px);
    }

    .hero {
        margin-top: 60px;
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-chinese {
        font-size: 1.1rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-image {
        display: none;
    }

    .section-header {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .categories {
        padding: 3rem 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-icon {
        width: 70px;
        height: 70px;
    }

    .category-icon svg {
        width: 32px;
        height: 32px;
    }

    .category-name {
        font-size: 0.85rem;
    }

    .popular-recipes {
        padding: 3rem 1rem;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recipe-card.featured {
        grid-column: span 1;
    }

    .recipe-card.featured .recipe-image {
        min-height: 250px;
    }

    .recipe-image {
        height: 180px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        max-width: 300px;
        margin: 0 auto 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .filter-bar {
        padding: 1rem;
        top: 60px;
    }

    .filter-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-tags {
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-tag {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .recipe-detail {
        padding: 1rem;
    }

    .recipe-header h1 {
        font-size: 1.5rem;
    }

    .recipe-meta-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .recipe-main-image img {
        height: 200px;
    }

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

/* ===== Small Mobile (< 480px) ===== */
@media (max-width: 480px) {
    .lang-select-mobile {
        min-width: 72px;
        padding: 0 0.5rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.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;
}
