/* ==========================================================================
   MA YVE GRILL — MENU PAGE FIX
   Purpose: Styles for the REWRITTEN template-menu.php classes
   (.menu-page__*, .dish-card__*) that ship with NO CSS in the redemption build.
   Palette matches manufacturer tokens: Terracotta #C04000 / Gold #FFB347 /
   Charcoal #1A1A1A / Cream #FAF0E6 / Forest #228B22
   Safe: only targets menu-page classes — zero impact on homepage or other pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. INNER-PAGE HEADER SAFETY
   Header is transparent + white text (built for dark homepage hero).
   On inner pages, give the non-scrolled nav a charcoal bar so the logo and
   links are ALWAYS visible — even before the hero styles load.
   Homepage (.home) is untouched.
   -------------------------------------------------------------------------- */
.mg-header:not(.is-scrolled) .mg-nav {
    background: rgba(26, 26, 26, 0.97);
    box-shadow: 0 1px 0 rgba(255, 179, 71, 0.25);
}


/* --------------------------------------------------------------------------
   1. MENU PAGE CANVAS
   -------------------------------------------------------------------------- */
.menu-page {
    background: #1A1A1A;
    color: #FAF0E6;
}

.menu-page__hero {
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}


/* --------------------------------------------------------------------------
   2. SEARCH BAR
   -------------------------------------------------------------------------- */
.menu-page__search {
    max-width: 560px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.menu-page__search input,
.menu-page__search-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: rgba(250, 240, 230, 0.08);
    border: 1px solid rgba(255, 179, 71, 0.35);
    border-radius: 50px;
    color: #FAF0E6;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.menu-page__search input::placeholder,
.menu-page__search-input::placeholder {
    color: rgba(250, 240, 230, 0.45);
}

.menu-page__search input:focus,
.menu-page__search-input:focus {
    border-color: #FFB347;
    background: rgba(250, 240, 230, 0.12);
}


/* --------------------------------------------------------------------------
   3. CATEGORY PILLS — always visible, terracotta active state
   -------------------------------------------------------------------------- */
.menu-page__category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 1.5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.menu-page__category-pill {
    appearance: none;
    border: 1px solid rgba(250, 240, 230, 0.35);
    background: transparent;
    color: #FAF0E6;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.menu-page__category-pill:hover {
    border-color: #FFB347;
    color: #FFB347;
    transform: translateY(-2px);
}

.menu-page__category-pill--active,
.menu-page__category-pill.is-active {
    background: #C04000;
    border-color: #C04000;
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(192, 64, 0, 0.45);
}

.menu-page__category-pill--active:hover,
.menu-page__category-pill.is-active:hover {
    background: #A03000;
    border-color: #A03000;
    color: #FFFFFF;
}


/* --------------------------------------------------------------------------
   4. CATEGORY SECTIONS
   -------------------------------------------------------------------------- */
.menu-category {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
}

.menu-category__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #FFB347;
    margin: 0 0 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 179, 71, 0.25);
}

.menu-category__dishes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}


/* --------------------------------------------------------------------------
   5. DISH CARDS — cream surface on charcoal, editorial contrast
   -------------------------------------------------------------------------- */
.dish-card {
    background: #FAF0E6;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.dish-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F0E0D0;
}

.dish-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dish-card:hover .dish-card__image-wrapper img {
    transform: scale(1.06);
}

/* Letter placeholder for dishes without a photo yet */
.dish-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C04000 0%, #A03000 100%);
}

.dish-card__placeholder-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 179, 71, 0.85);
}

.dish-card__info {
    padding: 1.25rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.dish-card__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.25;
}

.dish-card__description {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(26, 26, 26, 0.65);
    margin: 0;
    flex: 1;
}

.dish-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dish-card__price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #C04000;
}

.dish-card__add,
.dish-card__add.add_to_cart_button {
    appearance: none;
    background: #C04000;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.3rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dish-card__add:hover,
.dish-card__add.add_to_cart_button:hover {
    background: #A03000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192, 64, 0, 0.4);
}


/* --------------------------------------------------------------------------
   6. DIETARY BADGES (if the template outputs them inside .dish-card__meta)
   -------------------------------------------------------------------------- */
.dish-card .dietary-badge,
.dish-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    background: rgba(34, 139, 34, 0.12);
    color: #1A6B1A;
}


/* --------------------------------------------------------------------------
   7. EMPTY CATEGORY / NO RESULTS STATE
   -------------------------------------------------------------------------- */
.menu-page__empty,
.menu-page__no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(250, 240, 230, 0.55);
    font-style: italic;
}


/* --------------------------------------------------------------------------
   8. MOBILE REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .menu-category__dishes {
        grid-template-columns: 1fr;
    }
    .menu-page__category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .menu-page__category-nav::-webkit-scrollbar {
        display: none;
    }
    .menu-page__category-pill {
        flex-shrink: 0;
    }
}
