/* ============================================================
   阿朱食譜 rChu Recipes
   assets/css/style.css — Public Site Stylesheet
   Visually matched to Oishii Kitchen template
   ============================================================ */

/* ---- Brand Tokens ---- */
:root {
    --color-white:      #FFFFFF;
    --color-bg:         #FFFFFF;
    --color-text:       #1A1A1A;
    --color-text-mid:   #555555;
    --color-text-light: #888888;
    --color-orange:     #E57A2B;
    --color-melon:      #6BACA1;
    --color-pastry:     #F2DDB6;
    --color-brown:      #3E2A1D;
    --color-light:      #FAF7F3;
    --color-border:     #E0D5C0;

    --font-body:    'Noto Sans HK', sans-serif;
    --font-heading: 'LXGW WenKai TC', serif;

    --max-width: 1100px;
    --radius:    10px;
    --radius-sm: 6px;
}

/* ---- Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin:     0;
    padding:    0;
}

html { scroll-behavior: smooth; }

body {
    font-family:             var(--font-body);
    font-size:               16px;
    color:                   var(--color-text);
    background:              var(--color-bg);
    line-height:             1.65;
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img     { max-width: 100%; display: block; }
a       { color: var(--color-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol  { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.25;
}


/* ============================================================
   LAYOUT
   ============================================================ */

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

.site-main { min-height: 60vh; }


/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
    background:    var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position:      sticky;
    top:           0;
    z-index:       200;
}

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

/* Hamburger */
.nav-toggle {
    display:        none;
    flex-direction: column;
    justify-content: center;
    gap:            5px;
    background:     none;
    border:         none;
    cursor:         pointer;
    padding:        4px;
    flex-shrink:    0;
}

.nav-toggle__bar {
    display:       block;
    width:         22px;
    height:        2.5px;
    background:    var(--color-text);
    border-radius: 2px;
    transition:    all 0.25s ease;
}

/* Logo */
.site-header__logo {
    display:         flex;
    align-items:     center;
    gap:             0.6rem;
    text-decoration: none;
    flex-shrink:     0;
}

.site-header__logo:hover { text-decoration: none; }

.site-header__logo-img {
    width:  40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.site-header__logo-text {
    font-family:  var(--font-heading);
    font-size:    1.3rem;
    color:        var(--color-brown);
    line-height:  1;
    letter-spacing: 0.01em;
}

/* Desktop Nav */
.site-nav { flex: 1; }

.site-nav__list {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             0.25rem;
}

.site-nav__link {
    display:       block;
    padding:       0.4rem 0.9rem;
    font-size:     0.9375rem;
    font-weight:   500;
    color:         var(--color-text);
    border-radius: 6px;
    transition:    color 0.15s ease, background-color 0.15s ease;
    white-space:   nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color:           var(--color-orange);
    text-decoration: none;
}

/* Header Search */
.header-search-form {
    display:     flex;
    align-items: center;
    position:    relative;
    flex-shrink: 0;
}

.header-search__icon {
    position:     absolute;
    left:         0.75rem;
    top:          50%;
    transform:    translateY(-50%);
    color:        var(--color-text-light);
    font-size:    0.875rem;
    pointer-events: none;
    line-height:  1;
}

.header-search__input {
    padding:       0.5rem 1rem 0.5rem 2.25rem;
    width:         200px;
    border:        1.5px solid var(--color-border);
    border-radius: 25px;
    font-family:   var(--font-body);
    font-size:     0.875rem;
    color:         var(--color-text);
    background:    var(--color-light);
    transition:    border-color 0.15s ease, width 0.25s ease;
}

.header-search__input:focus {
    outline:      none;
    border-color: var(--color-orange);
    width:        240px;
    background:   var(--color-white);
}

.header-search__input::placeholder { color: var(--color-text-light); }


/* ============================================================
   MOBILE NAV OVERLAY + DRAWER
   ============================================================ */

.nav-overlay {
    display:    none;
    position:   fixed;
    inset:      0;
    background: rgba(0, 0, 0, 0.45);
    z-index:    190;
    opacity:    0;
    transition: opacity 0.25s ease;
}

.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

.site-nav--mobile {
    position:   fixed;
    top:        0;
    left:       0;
    width:      280px;
    height:     100vh;
    background: var(--color-white);
    z-index:    195;
    transform:  translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display:    flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}

.site-nav--mobile.is-open { transform: translateX(0); }

.nav-mobile__header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         1.25rem 1.25rem 1rem;
    border-bottom:   1px solid var(--color-border);
}

.nav-mobile__logo {
    display:     flex;
    align-items: center;
    gap:         0.5rem;
    font-family: var(--font-heading);
    font-size:   1.1rem;
    color:       var(--color-brown);
}

.nav-mobile__logo img {
    width:  32px;
    height: 32px;
    object-fit: contain;
}

.nav-close {
    background: none;
    border:     none;
    font-size:  1.4rem;
    color:      var(--color-text-light);
    cursor:     pointer;
    line-height: 1;
    padding:    4px;
}

.nav-close:hover { color: var(--color-text); }

.nav-mobile__links {
    padding: 1rem 0;
    flex:    1;
}

.nav-mobile__links .site-nav__link {
    display:       block;
    padding:       0.75rem 1.5rem;
    border-radius: 0;
    font-size:     1rem;
    border-bottom: 1px solid var(--color-border);
}

.nav-mobile__search {
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.nav-mobile__search .header-search__input {
    width:      100%;
    border-radius: 8px;
}

.nav-mobile__search .header-search__input:focus {
    width: 100%;
}


/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    background: var(--color-brown);
    padding:    3.5rem 0 1.5rem;
    margin-top: 5rem;
}

.site-footer__inner {
    max-width:       var(--max-width);
    margin:          0 auto;
    padding:         0 1.5rem;
    display:         flex;
    justify-content: space-between;
    align-items:     flex-start;
    gap:             3rem;
    flex-wrap:       wrap;
}

/* Left: brand */
.site-footer__brand {
    max-width: 280px;
}

.site-footer__logo {
    display:         flex;
    align-items:     center;
    gap:             0.6rem;
    text-decoration: none;
    margin-bottom:   0.875rem;
}

.site-footer__logo:hover { text-decoration: none; }

.site-footer__logo-img {
    width:      36px;
    height:     36px;
    object-fit: contain;
}

.site-footer__logo-text {
    font-family: var(--font-heading);
    font-size:   1.2rem;
    color:       var(--color-pastry);
    line-height: 1;
}

.site-footer__tagline {
    font-size:   0.875rem;
    font-weight: 700;
    color:       rgba(242, 221, 182, 0.75);
    line-height: 1.6;
}

/* Right: nav columns */
.site-footer__nav-columns {
    display: flex;
    gap:     3.5rem;
}

.site-footer__nav-heading {
    font-size:      0.7rem;
    font-weight:    700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color:          rgba(242, 221, 182, 0.5);
    margin-bottom:  1rem;
}

.site-footer__nav-col ul {
    display:        flex;
    flex-direction: column;
    gap:            0.65rem;
}

.site-footer__nav-col a {
    font-size:  0.875rem;
    color:      rgba(242, 221, 182, 0.6);
    transition: color 0.15s ease;
}

.site-footer__nav-col a:hover {
    color:           rgba(242, 221, 182, 1);
    text-decoration: none;
}

/* Copyright */
.site-footer__copy {
    max-width:   var(--max-width);
    margin:      2.5rem auto 0;
    padding:     1.5rem 1.5rem 0;
    border-top:  1px solid rgba(255,255,255,0.06);
    text-align:  center;
    font-size:   0.75rem;
    color:       rgba(242, 221, 182, 0.2);
}


/* ============================================================
   GLOBAL BUTTONS
   ============================================================ */

.btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             0.45rem;
    padding:         0.7rem 1.75rem;
    font-family:     var(--font-body);
    font-size:       0.9375rem;
    font-weight:     600;
    border-radius:   var(--radius-sm);
    cursor:          pointer;
    text-decoration: none;
    transition:      opacity 0.15s ease, transform 0.1s ease;
    white-space:     nowrap;
    border:          2px solid transparent;
    line-height:     1;
}

.btn:hover         { opacity: 0.88; text-decoration: none; }
.btn:active        { transform: translateY(1px); }

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

.btn--outline {
    background:   transparent;
    color:        var(--color-text);
    border-color: var(--color-text);
}

.btn--outline:hover { background: rgba(0,0,0,0.04); }

.btn--outline-orange {
    background:   transparent;
    color:        var(--color-orange);
    border-color: var(--color-orange);
}

.btn--outline-orange:hover { background: rgba(229,122,43,0.06); }

.btn--wide { padding-left: 2.5rem; padding-right: 2.5rem; }


/* ============================================================
   TAG CHIPS
   ============================================================ */

.tag-chip {
    display:       inline-flex;
    align-items:   center;
    padding:       0.2rem 0.65rem;
    border-radius: 4px;
    font-size:     0.7rem;
    font-weight:   700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space:   nowrap;
}

.tag-chip--orange { background: var(--color-orange); color: var(--color-white); }
.tag-chip--melon  { background: var(--color-melon);  color: var(--color-white); }
.tag-chip--brown  { background: var(--color-brown);  color: var(--color-white); }

.tag-chip--outline-melon {
    background:  transparent;
    color:       var(--color-melon);
    border:      1.5px solid var(--color-melon);
}

a.tag-chip:hover { opacity: 0.85; text-decoration: none; }


/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding-bottom:  0.875rem;
    border-bottom:   2px solid var(--color-text);
    margin-bottom:   1.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size:   1.375rem;
    font-weight: 400;
    color:       var(--color-text);
}

.section-link {
    font-size:   0.875rem;
    font-weight: 600;
    color:       var(--color-melon);
    white-space: nowrap;
    flex-shrink: 0;
}

.section-link:hover { text-decoration: underline; }


/* ============================================================
   RECIPE CARD — BASE (shared)
   ============================================================ */

.recipe-card {
    background:     var(--color-white);
    border:         1.5px solid var(--color-border);
    border-radius:  var(--radius);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    transition:     transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-card:hover {
    transform:  translateY(-4px);
    box-shadow: 0 10px 32px rgba(62,42,29,0.1);
}

.recipe-card__image-wrap {
    position:     relative;
    aspect-ratio: 4/3;
    overflow:     hidden;
    background:   var(--color-light);
    flex-shrink:  0;
    display:      block;
}

.recipe-card__image-wrap img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.recipe-card:hover .recipe-card__image-wrap img {
    transform: scale(1.04);
}

.recipe-card__placeholder {
    width:           100%;
    height:          100%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       3rem;
    background:      linear-gradient(135deg, #F2DDB6 0%, #E8C99A 100%);
}


/* ============================================================
   HOME PAGE
   ============================================================ */

/* ---- Greeting Banner ---- */
.greeting-banner {
    background: #E8F4F2;
    border:     1px solid #C5DDD9;
    padding:    0 1.5rem;
}

.greeting-banner__inner {
    max-width:   var(--max-width);
    margin:      0 auto;
    padding:     0.7rem 0;
    display:     flex;
    align-items: center;
    gap:         0.875rem;
}

.greeting-banner__icon {
    flex-shrink:     0;
    width:           36px;
    height:          36px;
    background:      var(--color-melon);
    border-radius:   var(--radius-sm);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.1rem;
    color:           var(--color-white);
}

.greeting-banner__title {
    font-size:   0.9375rem;
    font-weight: 700;
    color:       var(--color-brown);
    line-height: 1;
}

.greeting-banner__sub {
    font-size:  0.8125rem;
    color:      var(--color-text-mid);
    margin-top: 0.2rem;
}


/* ---- Hero Section ---- */
.home-hero {
    padding: 2rem 1.5rem;
}

.home-hero__inner { max-width: var(--max-width); margin: 0 auto; }

.home-hero__box {
    background:    var(--color-pastry);
    border:        2.5px solid var(--color-brown);
    border-radius: 14px;
    display:       grid;
    grid-template-columns: 1fr 1fr;
    overflow:      hidden;
    min-height:    400px;
}

.home-hero__image-col {
    position: relative;
    overflow: hidden;
}

.home-hero__image-col img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
}

.home-hero__placeholder {
    width:           100%;
    height:          100%;
    min-height:      360px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       5rem;
    background:      linear-gradient(135deg, #E8C99A 0%, #D4A870 100%);
}

.home-hero__content-col {
    padding:         2.5rem 2.5rem 2.5rem 2rem;
    display:         flex;
    flex-direction:  column;
    justify-content: center;
    gap:             1rem;
}

.home-hero__badge {
    display:        inline-block;
    background:     var(--color-orange);
    color:          var(--color-white);
    font-size:      0.7rem;
    font-weight:    800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding:        0.3rem 0.8rem;
    border-radius:  3px;
    width:          fit-content;
}

.home-hero__title {
    font-family: var(--font-heading);
    font-size:   clamp(1.75rem, 3.5vw, 2.5rem);
    color:       var(--color-brown);
    line-height: 1.15;
    font-weight: 400;
}

.home-hero__desc {
    font-size:   0.9375rem;
    color:       var(--color-text-mid);
    line-height: 1.75;
}

.home-hero__btn .btn-icon { font-size: 1rem; }


/* ---- Browse Categories ---- */
.home-categories { padding: 0.5rem 0 2.5rem; }

.home-categories__inner {
    max-width: var(--max-width);
    margin:    0 auto;
    padding:   0 1.5rem;
}

.categories-row {
    display:    flex;
    gap:        1rem;
    flex-wrap:  wrap;
}

.category-item {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             0.6rem;
    text-decoration: none;
    transition:      transform 0.15s ease;
    flex:            0 0 auto;
    min-width:       80px;
}

.category-item:hover { transform: translateY(-2px); text-decoration: none; }

.category-item__icon {
    width:           80px;
    height:          80px;
    border-radius:   18px;
    background:      var(--color-light);
    border:          2px solid var(--color-border);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       2rem;
    transition:      border-color 0.15s ease;
    overflow:        hidden;
}

.category-item--active .category-item__icon,
.category-item:hover   .category-item__icon {
    border-color: var(--color-orange);
}

.category-item__name {
    font-size:   0.875rem;
    font-weight: 500;
    color:       var(--color-text);
    transition:  color 0.15s ease;
}

.category-item--active .category-item__name,
.category-item:hover   .category-item__name {
    color: var(--color-orange);
}


/* ---- New Additions ---- */
.home-new { padding: 2rem 0 3rem; }

.home-new__inner {
    max-width: var(--max-width);
    margin:    0 auto;
    padding:   0 1.5rem;
}

/* Home-style recipe cards: category + time strip on image */
.recipe-card--home .recipe-card__meta-strip {
    position:        absolute;
    bottom:          0;
    left:            0;
    right:           0;
    padding:         0.5rem 0.75rem;
    display:         flex;
    align-items:     center;
    gap:             0.6rem;
    background:      linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
}

.recipe-card--home .recipe-card__body {
    padding: 0.875rem 1rem 1.125rem;
    flex:    1;
    display: flex;
    flex-direction: column;
    gap:     0.375rem;
}

.recipe-card--home .recipe-card__title {
    font-family:  var(--font-heading);
    font-size:    1.025rem;
    color:        var(--color-text);
    font-weight:  400;
    font-style:   italic;
    line-height:  1.35;
}

.recipe-card--home .recipe-card__title a {
    color:      var(--color-text);
    transition: color 0.15s ease;
}

.recipe-card--home .recipe-card__title a:hover {
    color:           var(--color-orange);
    text-decoration: none;
}

.recipe-card--home .recipe-card__desc {
    font-size:          0.825rem;
    color:              var(--color-text-light);
    line-height:        1.55;
    display:            -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp:         2;
    -webkit-box-orient: vertical;
    overflow:           hidden;
}

.home-recipe-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   1.25rem;
}


/* ============================================================
   ALL RECIPES PAGE
   ============================================================ */

.recipes-page { padding: 2rem 0 4rem; }

.recipes-page__header { margin-bottom: 1.25rem; }

.recipes-page__title {
    font-family: var(--font-heading);
    font-size:   clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color:       var(--color-text);
    line-height: 1.1;
}


/* ---- Filter Bar ---- */
.recipes-filter-bar {
    display:     flex;
    align-items: center;
    flex-wrap:   wrap;
    gap:         0.625rem;
    margin-bottom: 2rem;
}

.filter-bar__label {
    font-size:   0.9375rem;
    font-weight: 600;
    color:       var(--color-text);
    white-space: nowrap;
    margin-right: 0.25rem;
}

.filter-chip {
    display:         inline-flex;
    align-items:     center;
    padding:         0.4rem 1.1rem;
    border-radius:   25px;
    font-size:       0.875rem;
    font-weight:     600;
    cursor:          pointer;
    text-decoration: none;
    transition:      all 0.15s ease;
    white-space:     nowrap;
    border:          2px solid var(--color-orange);
    color:           var(--color-orange);
    background:      transparent;
}

.filter-chip:hover {
    background:      rgba(229,122,43,0.08);
    text-decoration: none;
}

.filter-chip--active {
    background:  var(--color-orange);
    color:       var(--color-white);
    border-color: var(--color-orange);
}

.filter-chip--active:hover {
    background: var(--color-orange);
    opacity:    0.88;
    color:      var(--color-white);
}

.filter-chip--melon {
    border-color: var(--color-melon);
    color:        var(--color-melon);
}

.filter-chip--melon:hover  { background: rgba(107,172,161,0.08); }

.filter-chip--melon.filter-chip--active {
    background:  var(--color-melon);
    color:       var(--color-white);
    border-color: var(--color-melon);
}

.filter-clear {
    font-size:   0.875rem;
    font-weight: 500;
    color:       var(--color-text-light);
    margin-left: 0.25rem;
}

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


/* ---- All Recipes Grid ---- */
.all-recipes-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   1.5rem;
    margin-bottom:         2.5rem;
}

/* All-recipes card style */
.recipe-card--list .recipe-card__body {
    padding:        1rem 1.125rem 1.25rem;
    flex:           1;
    display:        flex;
    flex-direction: column;
    gap:            0.5rem;
}

.recipe-card--list .recipe-card__title {
    font-family:  var(--font-heading);
    font-size:    1.1rem;
    font-weight:  400;
    color:        var(--color-text);
    line-height:  1.3;
}

.recipe-card--list .recipe-card__title a {
    color:      var(--color-text);
    transition: color 0.15s ease;
}

.recipe-card--list .recipe-card__title a:hover {
    color:           var(--color-orange);
    text-decoration: none;
}

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

.recipe-card--list .recipe-card__footer {
    display:         flex;
    align-items:     center;
    justify-content: flex-end;
    padding-top:     0.75rem;
    margin-top:      auto;
    border-top:      1px solid var(--color-border);
}

.recipe-card__view-link {
    font-size:   0.875rem;
    font-weight: 700;
    color:       var(--color-orange);
    transition:  color 0.15s ease;
}

.recipe-card__view-link:hover { text-decoration: underline; }


/* ---- Load More / Pagination ---- */
.recipes-pagination {
    display:    flex;
    flex-direction: column;
    align-items: center;
    gap:         1.25rem;
    padding-top: 1.5rem;
}

.pagination-info {
    font-size: 0.825rem;
    color:     var(--color-text-light);
}

.pagination-links {
    display:     flex;
    align-items: center;
    gap:         0.4rem;
    flex-wrap:   wrap;
    justify-content: center;
}

.pagination__link,
.pagination__current,
.pagination__ellipsis {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    min-width:       2.5rem;
    height:          2.5rem;
    font-size:       0.9rem;
    border-radius:   var(--radius-sm);
}

.pagination__link {
    color:       var(--color-text);
    border:      1.5px solid var(--color-border);
    background:  var(--color-white);
    font-weight: 500;
    transition:  all 0.15s ease;
}

.pagination__link:hover {
    border-color:    var(--color-orange);
    color:           var(--color-orange);
    text-decoration: none;
}

.pagination__current {
    background:  var(--color-orange);
    color:       var(--color-white);
    font-weight: 700;
    border:      1.5px solid var(--color-orange);
}

.pagination__ellipsis { color: var(--color-text-light); }


/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding:    5rem 1rem;
}

.empty-state__title {
    font-family:   var(--font-heading);
    font-size:     1.5rem;
    color:         var(--color-text);
    margin-bottom: 0.75rem;
}

.empty-state__text {
    font-size:   0.95rem;
    color:       var(--color-text-light);
    line-height: 1.7;
}


/* ============================================================
   RECIPE DETAIL PAGE
   ============================================================ */

.recipe-detail { padding-bottom: 5rem; }


/* ---- Draft Preview Banner ---- */
.draft-banner {
    background:    var(--color-pastry);
    border-bottom: 2px solid #D4B896;
    padding:       0.875rem 1.5rem;
    text-align:    center;
    font-size:     0.875rem;
    color:         var(--color-brown);
    font-weight:   600;
}


/* ---- Title (above image) ---- */
.recipe-detail__title-block {
    max-width: var(--max-width);
    margin:    0 auto;
    padding:   2rem 1.5rem 1.25rem;
}

.recipe-detail__title {
    font-family:  var(--font-heading);
    font-size:    clamp(1.875rem, 4.5vw, 2.875rem);
    color:        var(--color-text);
    font-weight:  400;
    line-height:  1.15;
}


/* ---- Feature Image ---- */
.recipe-detail__hero {
    width:        100%;
    max-width:    var(--max-width);
    margin:       0 auto 0;
    padding:      0 1.5rem;
    aspect-ratio: 16/7;
    overflow:     hidden;
}

.recipe-detail__hero img {
    width:         100%;
    height:        100%;
    object-fit:    cover;
    border-radius: var(--radius);
    display:       block;
}

.recipe-detail__hero-placeholder {
    width:           100%;
    height:          100%;
    min-height:      260px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       4rem;
    background:      linear-gradient(135deg, #F2DDB6 0%, #E5C898 100%);
    border-radius:   var(--radius);
}


/* ---- Meta Row (category only) ---- */
.recipe-detail__meta {
    max-width:   var(--max-width);
    margin:      0 auto;
    padding:     1.125rem 1.5rem;
    display:     flex;
    align-items: center;
    gap:         1rem;
    flex-wrap:   wrap;
}

.recipe-detail__meta-item {
    display:     flex;
    align-items: center;
    gap:         0.4rem;
    font-size:   0.875rem;
    color:       var(--color-text-mid);
}

.meta-icon {
    font-size:  1rem;
    color:      var(--color-text-light);
    line-height: 1;
}


/* ---- Description (italic + left border) ---- */
.recipe-detail__description {
    max-width:    var(--max-width);
    margin:       0 auto 2rem;
    padding:      0 1.5rem;
}

.recipe-detail__description-inner {
    border-left:  4px solid var(--color-orange);
    padding:      0.5rem 0 0.5rem 1.25rem;
    font-style:   italic;
    font-size:    0.975rem;
    color:        var(--color-text-mid);
    line-height:  1.8;
    max-width:    780px;
}


/* ---- Content Area ---- */
.recipe-detail__content {
    max-width: var(--max-width);
    margin:    0 auto;
    padding:   0 1.5rem;
}

/* ---- Two-column body ---- */
.recipe-detail__body {
    display:               grid;
    grid-template-columns: 240px 1fr;
    gap:                   2.5rem;
    align-items:           start;
}


/* ---- Ingredients Box ---- */
.recipe-ingredients {
    background:    var(--color-white);
    border:        2px solid var(--color-border);
    border-radius: var(--radius);
    padding:       1.375rem 1.25rem;
    position:      sticky;
    top:           84px;
}

.recipe-ingredients__title {
    font-family:   var(--font-heading);
    font-size:     1.125rem;
    font-weight:   400;
    color:         var(--color-text);
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
    border-bottom: 2.5px solid var(--color-orange);
}

.ingredient-list {
    display:        flex;
    flex-direction: column;
    gap:            0.6rem;
}

.ingredient-item {
    display:     flex;
    align-items: flex-start;
    gap:         0.625rem;
    font-size:   0.875rem;
    line-height: 1.5;
}

.ingredient-item__checkbox {
    flex-shrink:  0;
    width:        14px;
    height:       14px;
    border:       1.5px solid var(--color-border);
    border-radius: 3px;
    margin-top:   0.15rem;
    display:      block;
    flex-shrink:  0;
}

.ingredient-item__text { flex: 1; }

.ingredient-item__qty {
    font-weight: 600;
    color:       var(--color-text);
}

.ingredient-item__note {
    color:      var(--color-text-light);
    font-size:  0.8rem;
    font-style: italic;
}

/* Group heading inside ingredient list */
li.ing-group__name {
    font-size:      0.7rem;
    font-weight:    700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color:          var(--color-orange);
    padding-top:    0.875rem;
    margin-top:     0.25rem;
    border-top:     1px dashed var(--color-border);
}

li.ing-group__name:first-child {
    border-top:  none;
    padding-top: 0;
    margin-top:  0;
}


/* ---- Steps ---- */
.recipe-steps__title {
    font-family:    var(--font-heading);
    font-size:      1.25rem;
    font-weight:    400;
    color:          var(--color-text);
    padding-bottom: 0.7rem;
    margin-bottom:  1.5rem;
    border-bottom:  2.5px solid var(--color-text);
}

.steps-list {
    display:        flex;
    flex-direction: column;
    gap:            1.75rem;
}

.step-item {
    display: flex;
    gap:     1.125rem;
}

.step-item__number {
    flex-shrink:     0;
    width:           2.25rem;
    height:          2.25rem;
    background:      var(--color-orange);
    color:           var(--color-white);
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       0.9rem;
    font-weight:     700;
    margin-top:      0.05rem;
}

.step-item__content { flex: 1; }

.step-item__title {
    font-family:   var(--font-heading);
    font-size:     1rem;
    color:         var(--color-text);
    margin-bottom: 0.375rem;
    font-weight:   400;
}

.step-item__text {
    font-size:   0.9375rem;
    line-height: 1.8;
    color:       var(--color-text);
}


/* ---- Notes / Tips ---- */
.recipe-notes {
    background:    var(--color-pastry);
    border:        1px solid #D4B896;
    border-radius: var(--radius);
    padding:       1.5rem 1.75rem;
    margin-top:    2.5rem;
}

.recipe-notes__title {
    font-family:    var(--font-heading);
    font-size:      1.125rem;
    font-weight:    400;
    color:          var(--color-brown);
    padding-bottom: 0.7rem;
    margin-bottom:  1rem;
    border-bottom:  1px solid rgba(62,42,29,0.12);
}

.notes-list {
    display:        flex;
    flex-direction: column;
    gap:            0.875rem;
}

.note-item {
    display:     flex;
    gap:         0.75rem;
    font-family: var(--font-heading);
    font-size:   0.9rem;
    color:       var(--color-brown);
    line-height: 1.75;
}

.note-item::before {
    content:     '·';
    color:       var(--color-orange);
    font-size:   1.375rem;
    line-height: 1.3;
    flex-shrink: 0;
    font-family: var(--font-body);
}


/* ---- Tags Row ---- */
.recipe-tags {
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    gap:         0.4rem;
    margin-top:  2rem;
}

.recipe-tags__label {
    font-size:  0.8rem;
    color:      var(--color-text-light);
}


/* ---- Gallery ---- */
.recipe-gallery { margin-top: 2.5rem; }

.recipe-gallery__title {
    font-family:    var(--font-heading);
    font-size:      1.125rem;
    font-weight:    400;
    color:          var(--color-text);
    padding-bottom: 0.7rem;
    margin-bottom:  1.25rem;
    border-bottom:  2.5px solid var(--color-text);
}

.gallery-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap:                   1rem;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow:      hidden;
    border:        1.5px solid var(--color-border);
    background:    var(--color-light);
}

.gallery-item img {
    width:        100%;
    aspect-ratio: 4/3;
    object-fit:   cover;
    transition:   transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item__caption {
    padding:    0.5rem 0.75rem;
    font-size:  0.775rem;
    color:      var(--color-text-light);
    font-style: italic;
}


/* ---- Back Button ---- */
.recipe-back {
    margin-top: 3rem;
    text-align: center;
}

.recipe-back .btn {
    padding-left:  2.5rem;
    padding-right: 2.5rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

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

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

@media (max-width: 900px) {
    .recipe-detail__body {
        grid-template-columns: 1fr;
        gap:                   1.75rem;
    }

    .recipe-ingredients {
        position: static;
    }

    .home-hero__box {
        grid-template-columns: 1fr;
    }

    .home-hero__image-col {
        aspect-ratio: 16/9;
        max-height:   280px;
    }
}

@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav + search */
    .nav-toggle       { display: flex; }
    .site-nav         { display: none; }
    .header-search-form { display: none; }

    .site-header__inner { height: 60px; gap: 1rem; }

    .home-hero { padding: 1rem 1rem; }
    .home-hero__content-col { padding: 1.5rem; }
    .home-hero__title { font-size: 1.5rem; }

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

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

    .recipe-detail__hero { aspect-ratio: 4/3; }

    .site-footer__inner {
        flex-direction: column;
        gap:            2rem;
    }

    .site-footer__nav-columns { gap: 2rem; }
}

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

    .categories-row { gap: 0.75rem; }
    .category-item__icon { width: 64px; height: 64px; font-size: 1.6rem; }

    .recipe-detail__title { font-size: 1.625rem; }

    .filter-chip { font-size: 0.8rem; padding: 0.35rem 0.875rem; }
}