@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --pink: #e84393;
    --green: #4caf7d;
    --green-light: #81c995;
    --green-glow: rgba(76, 175, 125, 0.35);
    --yellow: #f9c74f;
    --red: #f4503a;
    --mint: #a8edbe;
    --sage: #74c69d;
    --peach: #ffb347;
    --sky: #90e0ef;
    --text-main: #203328;
    --text-soft: #52796f;
    --glass: rgba(255, 255, 255, 0.58);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --white-border: rgba(255, 255, 255, 0.85);
    --panel-shadow: 0 8px 32px rgba(76, 175, 125, 0.12);
    --panel-shadow-lg: 0 16px 40px rgba(76, 175, 125, 0.20);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(160deg, #e8f5e9 0%, #f0faf4 40%, #e3f2fd 100%);
    color: var(--text-main);
}

body {
    font-size: 1.6rem;
}

.bad-app-shell {
    min-height: 100vh;
}

.bad-reset-button {
    border: none;
    background: transparent;
}

.header-1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 7rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    padding: 1rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(76, 175, 125, 0.10);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2d6a4f;
    font-weight: 700;
    letter-spacing: .1rem;
    cursor: pointer;
}

#toggler,
.header-1 .fa-bars {
    display: none;
}

.search-bar {
    position: relative;
    width: min(64rem, 100%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50px;
    padding: 1rem 1.6rem;
    box-shadow: 0 8px 32px rgba(76, 175, 125, 0.15);
}

.search-bar:focus-within {
    box-shadow: 0 8px 32px rgba(232, 67, 147, 0.22), 0 0 0 2px rgba(232, 67, 147, 0.18);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
}

.search-bar i {
    font-size: 1.6rem;
    color: var(--green);
    margin-right: 1rem;
}

.search-bar input {
    flex: 1;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
}

.icons {
    display: flex;
    gap: 1rem;
}

.icons a {
    font-size: 2rem;
    color: var(--text-soft);
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.icons a:hover {
    color: var(--pink);
    background: rgba(232, 67, 147, 0.1);
    box-shadow: 0 4px 16px rgba(232, 67, 147, 0.2);
    transform: translateY(-2px);
}

.header-2 {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    height: 5rem;
    background: rgba(76, 175, 125, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(76, 175, 125, 0.25);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.navbar a {
    font-size: 1.45rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    display: inline-block;
    padding: .8rem 2rem;
    border-radius: 50px;
    letter-spacing: .03em;
    text-decoration: none;
}

.navbar a:hover,
.navbar a.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}

.main-content {
    margin-top: 12rem;
    padding: 3rem 9% 4rem;
}

.bad-shell,
.bad-container,
.page-shell {
    max-width: 1400px;
    margin: 0 auto;
}

.bad-quick-filters,
.bad-surface,
.bad-empty-state,
.bad-loading-card,
.bad-error-card,
.bad-overlay__panel {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--white-border);
    border-radius: 2.5rem;
    box-shadow: var(--panel-shadow);
}

.bad-surface,
.bad-empty-state,
.bad-loading-card,
.bad-error-card {
    padding: 3rem;
}

.bad-surface__inner {
    padding: 0;
}

.bad-quick-filters {
    padding: 1.8rem;
    margin-bottom: 3rem;
}

.bad-chip-row,
.bad-chipwrap,
.bad-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bad-chip,
.bad-tag-chip,
.recipe-card__badge {
    border-radius: 50px;
    font-weight: 500;
}

.bad-chip,
.bad-tag-chip {
    padding: .9rem 1.8rem;
    border: 1px solid rgba(76, 175, 125, 0.18);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 12px rgba(76, 175, 125, 0.08);
    cursor: pointer;
}

.bad-chip:hover,
.bad-tag-chip:hover {
    transform: translateY(-2px) scale(1.02);
}

.bad-chip--active,
.bad-tag-chip--include,
.bad-chip--include {
    background: rgba(76, 175, 125, 0.15);
    color: #2d6a4f;
    border-color: rgba(76, 175, 125, 0.4);
    box-shadow: 0 2px 12px rgba(76, 175, 125, 0.15);
}

.bad-tag-chip--exclude {
    background: rgba(244, 80, 58, 0.15);
    color: #c0392b;
    border-color: rgba(244, 80, 58, 0.35);
}

.bad-chip--neutral,
.bad-chip--outline-include {
    background: rgba(255, 255, 255, 0.5);
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.bad-page-title,
.bad-h2,
.bad-overlay__title,
.bad-h3 {
    font-family: 'Playfair Display', serif;
    color: #2d6a4f;
    margin-top: 0;
}

.bad-page-title {
    font-size: 3.2rem;
    margin-bottom: .6rem;
}

.bad-page-subtitle,
.bad-muted,
.bad-brand-subtitle,
.recipe-card__meta,
.bad-overlay__subtitle {
    color: var(--text-soft);
}

.bad-section-head {
    margin-bottom: 2.5rem;
}

.bad-recipe-grid,
.bad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.2rem;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.recipe-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(200,230,210,0.4));
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(76,175,125,0.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.recipe-card:hover .recipe-card__image-wrap {
    transform: translateY(-6px);
    box-shadow: var(--panel-shadow-lg);
}

.recipe-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-card__heart {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 4rem;
    height: 4rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    color: #52796f;
}

.recipe-card__heart.is-active {
    color: #fff;
    background: var(--pink);
}

.recipe-card__body {
    padding: 0 .2rem;
}

.recipe-card__title {
    margin: 0 0 .4rem;
    font-size: 1.7rem;
    font-weight: 600;
    color: #2d6a4f;
}

.recipe-card__meta {
    margin: 0;
    font-size: 1.35rem;
}

.recipe-card__footer {
    margin-top: 1.2rem;
}

.recipe-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 3.4rem;
    padding: 0 1.2rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.recipe-card__badge--success {
    background: rgba(76,175,125,0.15);
    color: #2d6a4f;
    border: 1px solid rgba(76,175,125,0.4);
}

.recipe-card__badge--warning {
    background: rgba(249,199,79,0.2);
    color: #b5770d;
    border: 1px solid rgba(249,199,79,0.5);
}

.recipe-card__badge--danger {
    background: rgba(244,80,58,0.15);
    color: #c0392b;
    border: 1px solid rgba(244,80,58,0.35);
}

.recipe-card__badge--neutral {
    background: rgba(255,255,255,0.6);
    color: #666;
    border: 1px solid rgba(0,0,0,0.08);
}

.bad-empty,
.bad-emptyhint {
    padding: 1.6rem 2rem;
    border-radius: 1.6rem;
    background: rgba(255,255,255,0.55);
    color: var(--text-soft);
}

.bad-floating-filter,
.bad-btn,
.bad-icon-btn {
    border: none;
    cursor: pointer;
}

.bad-floating-filter {
    position: fixed;
    left: 2.4rem;
    bottom: 2.4rem;
    width: 5.8rem;
    height: 5.8rem;
    border-radius: 50%;
    background: rgba(76, 175, 125, 0.92);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 14px 28px rgba(76, 175, 125, 0.28);
    z-index: 50;
}

.app-search__suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    box-shadow: 0 12px 28px rgba(76, 175, 125, 0.18);
    padding: .8rem;
    z-index: 20;
}

.app-search__suggestion {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 1.2rem 1.4rem;
    border-radius: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}

.app-search__suggestion:hover {
    background: rgba(76, 175, 125, 0.10);
}

.alert {
    border-radius: 1.6rem;
}
.filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.filter-bubble {
    width: min(920px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: filterPopIn 0.18s ease-out;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 14px 24px;
    border-bottom: 1px solid #e9ecef;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #214c3f;
}

.filter-body {
    padding: 20px 24px;
}

.filter-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 22px 24px;
    border-top: 1px solid #e9ecef;
    background: #fff;
    position: sticky;
    bottom: 0;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #214c3f;
}

.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 1px solid #cfd8d3;
    background: #f8fbf9;
    color: #214c3f;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    background: #eef6f1;
}

.filter-chip.active {
    background: #4caf7d;
    color: #fff;
    border-color: #4caf7d;
}

.filter-chip--danger.active {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.filter-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f2f4f3;
    color: #214c3f;
    font-size: 1.1rem;
    cursor: pointer;
}

.filter-close:hover {
    background: #e6ebe8;
}

@keyframes filterPopIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .header-1 {
        padding: 1rem 4%;
        flex-wrap: wrap;
        height: auto;
    }

    .header-2 {
        top: 11rem;
        height: auto;
        padding: .8rem 4%;
    }

    .main-content {
        margin-top: 17rem;
        padding: 2rem 4% 4rem;
    }
    .filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .filter-bubble {
        width: min(920px, 100%);
        max-height: 85vh;
        overflow-y: auto;
        background: #ffffff;
        border-radius: 28px;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
        border: 1px solid rgba(0, 0, 0, 0.06);
        animation: filterPopIn 0.18s ease-out;
    }

    .filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 24px 14px 24px;
        border-bottom: 1px solid #e9ecef;
    }

    .filter-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        color: #214c3f;
    }

    .filter-body {
        padding: 20px 24px;
    }

    .filter-footer {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding: 16px 24px 22px 24px;
        border-top: 1px solid #e9ecef;
        background: #fff;
        position: sticky;
        bottom: 0;
    }

    .filter-group {
        margin-bottom: 24px;
    }

    .filter-group h4 {
        margin: 0 0 12px 0;
        font-size: 1.05rem;
        font-weight: 700;
        color: #214c3f;
    }

    .filter-chip-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-chip {
        border: 1px solid #cfd8d3;
        background: #f8fbf9;
        color: #214c3f;
        border-radius: 999px;
        padding: 8px 14px;
        font-size: 0.95rem;
        line-height: 1;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .filter-chip:hover {
        background: #eef6f1;
    }

    .filter-chip.active {
        background: #4caf7d;
        color: #fff;
        border-color: #4caf7d;
    }

    .filter-chip--danger.active {
        background: #dc3545;
        color: #fff;
        border-color: #dc3545;
    }

    .filter-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: #f2f4f3;
        color: #214c3f;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .filter-close:hover {
        background: #e6ebe8;
    }

    @keyframes filterPopIn {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.97);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    .recipe-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .search-bar {
        order: 3;
        width: 100%;
    }

    .logo {
        font-size: 2.4rem;
    }

    .bad-page-title {
        font-size: 2.6rem;
    }

    .bad-surface,
    .bad-empty-state,
    .bad-loading-card,
    .bad-error-card {
        padding: 2rem;
    }

    .bad-floating-filter {
        left: 1.6rem;
        bottom: 1.6rem;
    }
    .meal-plan-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
        gap: 1.8rem;
    }

    .meal-day-card,
    .meal-slot-card,
    .meal-plan-picker {
        margin-top: 32px;
        padding: 20px 24px;

        background: #f8fbf9;
        border-radius: 20px; 

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0,0,0,0.04);
    }

    .meal-day-card {
        padding: 1.6rem;
    }

    .meal-day-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .meal-day-header h2,
    .meal-day-header span {
        margin: 0;
    }

    .meal-day-header span,
    .meal-slot-meta,
    .meal-slot-empty {
        color: var(--text-soft);
    }

    .meal-slot-card {
        padding: 1.4rem;
        margin-bottom: 1rem;
    }

    .meal-slot-head {
        margin-bottom: .8rem;
    }

    .meal-slot-body {
        display: grid;
        grid-template-columns: 6.4rem 1fr;
        gap: 1rem;
        align-items: center;
        margin-bottom: 1rem;
    }

    .meal-slot-image {
        width: 6.4rem;
        height: 6.4rem;
        object-fit: cover;
        border-radius: 1.2rem;
    }

    .meal-slot-link {
        color: #2d6a4f;
        font-weight: 600;
        text-decoration: none;
    }

    .meal-slot-remove {
        min-width: 10rem;
    }

    .meal-plan-status {
        margin-bottom: 2rem;
    }

    .meal-plan-picker {
        padding: 2rem;
        margin-bottom: 2rem;
        backdrop-filter: blur(6px);
    }

    .meal-plan-picker__controls {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        margin-top: 12px;
    }

    .meal-plan-picker label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
    }

    .meal-plan-picker select {
        padding: 6px 10px;
        border-radius: 10px;
        border: 1px solid #dcdcdc;
        background: white;
        font-size: 0.95rem;
    }

    .meal-plan-picker__button {
        border-radius: 999px; /* pill button */
        padding: 8px 16px;
        font-weight: 600;
    }

    .bad-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .bad-overlay__panel {
        width: min(1100px, 100%);
        max-height: 88vh;
        overflow-y: auto;
        position: relative;
    }

    .bad-overlay__panel--large {
        width: min(1100px, 100%);
    }

    .bad-overlay__header,
    .bad-overlay__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.2rem;
    }

    .bad-overlay__header {
        padding: 2rem 2rem 1.2rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    }

    .bad-overlay__body {
        padding: 1.8rem 2rem;
    }

    .bad-overlay__footer {
        padding: 1.2rem 2rem 2rem 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        position: sticky;
        bottom: 0;
        background: inherit;
        border-bottom-left-radius: 2.5rem;
        border-bottom-right-radius: 2.5rem;
    }

    .bad-filter-group + .bad-filter-group {
        margin-top: 2rem;
    }

    .bad-icon-btn {
        width: 4.2rem;
        height: 4.2rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.82);
        color: #2d6a4f;
        font-size: 1.8rem;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .bad-btn {
        padding: 1rem 1.8rem;
        border-radius: 999px;
        font-weight: 600;
    }

    .bad-btn--ghost {
        background: rgba(255, 255, 255, 0.7);
        color: #2d6a4f;
        border: 1px solid rgba(76, 175, 125, 0.25);
    }

    .bad-btn--primary {
        background: rgba(76, 175, 125, 0.92);
        color: white;
    }
}
.recipe-page-image-wrap {
    width: 100%;
    max-width: 400px; 
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 16px;
    background: #f3f3f3; 
}

.recipe-page-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}
.recipe-page-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    align-items: start;
}
.recipe-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.recipe-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dff3e4;
    color: #1f5c3f;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.meal-plan-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.meal-plan-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.meal-plan-day-card {
    background: #f8fbf9;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.meal-plan-day-header {
    margin-bottom: 18px;
}

.meal-plan-day-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.meal-plan-day-date {
    margin: 6px 0 0;
    font-size: 1.1rem;
    opacity: 0.8;
}

.meal-plan-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.meal-plan-slot-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    min-height: 150px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.meal-plan-slot-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.meal-plan-slot-empty p {
    margin: 0 0 12px;
    color: #4d4d4d;
}

.meal-plan-browse-link {
    display: inline-block;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dff3e4;
    color: #1f5c3f;
    font-weight: 600;
}

.meal-plan-slot-recipe {
    text-decoration: none;
    font-weight: 600;
    color: #1f5c3f;
}

@media (max-width: 900px) {
    .meal-plan-slots {
        grid-template-columns: 1fr;
    }
}
.meal-plan-slot-filled {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-plan-slot-image-wrap {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f3f3;
}

.meal-plan-slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meal-plan-slot-recipe {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f5c3f;
}

.meal-plan-remove-btn {
    margin-top: 8px;
    align-self: flex-start;

    padding: 6px 12px;
    border-radius: 999px;

    border: none;
    background: #f5f5f5; /* soft neutral */
    color: #666;

    font-size: 0.85rem;
    font-weight: 500;

    transition: all 0.2s ease;
}

.meal-plan-remove-btn:hover {
    background: #ffe5e5; /* soft red hint */
    color: #c62828;
}
.recipe-rating-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.75);
}

.recipe-rating-stars {
    font-size: 1.25rem;
    letter-spacing: 0.1rem;
    margin-left: 0.5rem;
}

.recipe-rating-buttons {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.recipe-star-button {
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: #16a34a;
    transition: transform 0.2s ease, color 0.2s ease;
}

.recipe-star-button:hover {
    color: #15803d;
    transform: scale(1.1);
}
.recipe-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.recipe-card__title-row .recipe-card__title {
    margin-bottom: 0;
}

.recipe-card__rating {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #14532d;
    background: #dcfce7;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
}
.recipe-detail-page {
    max-width: 1250px;
    margin: 0 auto;
}

.recipe-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.recipe-hero-card,
.recipe-info-card,
.recipe-meal-plan-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 2.8rem;
    box-shadow: 0 16px 40px rgba(76, 175, 125, 0.14);
    backdrop-filter: blur(22px);
}

.recipe-hero-card {
    display: grid;
    grid-template-columns: 45rem 1fr;
    gap: 3rem;
    padding: 2.4rem;
    align-items: stretch;
}

.recipe-hero-image-wrap {
    border-radius: 2.2rem;
    overflow: hidden;
    min-height: 42rem;
}

.recipe-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
}

.recipe-eyebrow {
    margin: 0;
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recipe-hero-title {
    margin: 0;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    line-height: 1.05;
    color: #203328;
}

.recipe-rating-panel {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 2rem;
    padding: 1.8rem;
}

.recipe-rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.recipe-rating-summary strong {
    font-size: 2.4rem;
    color: #14532d;
}

.recipe-rating-stars {
    color: var(--green);
    letter-spacing: 0.15rem;
}

.recipe-rating-count {
    color: var(--text-soft);
}

.recipe-rating-buttons {
    display: flex;
    gap: 0.4rem;
    margin: 1rem 0;
}

.recipe-star-button {
    border: none;
    background: transparent;
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.recipe-star-button.selected {
    color: var(--green);
}

.recipe-star-button.unselected {
    color: #9bd8b4;
}

.recipe-star-button:hover {
    transform: scale(1.15);
    color: #2d6a4f;
}

.recipe-action-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 1rem;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 34rem 1fr;
    gap: 3rem;
    align-items: start;
}

.recipe-side-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recipe-info-card {
    padding: 2.6rem;
}

.recipe-info-card h2,
.recipe-meal-plan-card h2 {
    margin: 0 0 1.4rem;
    font-size: 2.4rem;
    color: #203328;
}

.recipe-ingredient-list {
    margin: 0;
    padding-left: 2rem;
}

.recipe-ingredient-list li {
    margin-bottom: 0.8rem;
}

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

.recipe-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    background: #dff3e4;
    color: #1f5c3f;
    font-size: 1.3rem;
    font-weight: 700;
}

.recipe-step-list {
    list-style: none;
    counter-reset: recipe-step;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.recipe-step-list li {
    counter-increment: recipe-step;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.4rem;
    align-items: start;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 1.6rem;
}

.recipe-step-list li::before {
    content: counter(recipe-step);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--green);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.recipe-meal-plan-card {
    padding: 2.8rem;
}

.recipe-meal-plan-card p {
    color: var(--text-soft);
    margin-top: -0.6rem;
}

.meal-plan-picker__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: end;
}

.meal-plan-picker__controls label {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-weight: 600;
}

.meal-plan-picker__controls select {
    min-width: 18rem;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(76, 175, 125, 0.25);
    background: white;
    font-family: inherit;
}

@media (max-width: 900px) {
    .recipe-hero-card,
    .recipe-content-grid {
        grid-template-columns: 1fr;
    }

    .recipe-hero-image-wrap {
        min-height: 30rem;
    }
}