/* Diëtist Weekmenu — publieke pagina stijlen */

.dwp-public-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 20px 48px;
}

/* ================================================================
   WEEK NAVIGATIE
   ================================================================ */

.dwp-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dwp-nav-btn {
    display: inline-block;
    background: #fff;
    border: 2px solid #2d6a4f;
    color: #2d6a4f;
    text-decoration: none;
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .86em;
    transition: background .15s, color .15s;
    cursor: pointer;
}
a.dwp-nav-btn:hover {
    background: #2d6a4f;
    color: #fff;
    text-decoration: none;
}
.dwp-nav-btn--disabled {
    opacity: .3;
    border-color: #aaa;
    color: #aaa;
    cursor: default;
}
.dwp-week-nav-label {
    font-size: .9em;
    color: #666;
    min-width: 100px;
    text-align: center;
}

/* ================================================================
   WEEK HEADER
   ================================================================ */

.dwp-week-header {
    text-align: center;
    margin-bottom: 28px;
}
.dwp-week-date {
    color: #555;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dwp-huidig-badge {
    background: #d1fae5;
    color: #065f46;
    font-size: .72em;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ================================================================
   SECTIE-TITELS (Avondeten / Lunch)
   ================================================================ */

.dwp-sectie {
    margin-bottom: 12px;
}
.dwp-sectie-titel {
    font-size: 1.08em;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dwp-sectie-titel--avond {
    color: #2d6a4f;
    border-color: #2d6a4f;
}
.dwp-sectie-titel--lunch {
    color: #92400e;
    border-color: #d97706;
}

/* Badges */
.dwp-badge {
    font-size: .65em;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    vertical-align: middle;
}
.dwp-badge--preview {
    background: #fef3c7;
    color: #92400e;
}

/* ================================================================
   DAG-GRID: 5 kolommen
   ================================================================ */

.dwp-dagen-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 1000px) {
    .dwp-dagen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .dwp-dagen-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   DAG-KAART (basis)
   ================================================================ */

.dwp-dag-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.09);
    transition: transform .18s, box-shadow .18s;
    display: flex;
    flex-direction: column;
}
.dwp-dag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

/* Kaart-header (dag naam) — kleur per type */
.dwp-dag-header {
    padding: 10px 16px;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: .3px;
    color: #fff;
}
.dwp-dag-card--avond .dwp-dag-header {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
}
.dwp-dag-card--lunch .dwp-dag-header {
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
}

/* ================================================================
   MAALTIJDBLOK
   ================================================================ */

.dwp-dag-maaltijd {
    padding: 13px 15px;
    flex: 1;
}
.dwp-maaltijd-type {
    font-size: .68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: #999;
    margin-bottom: 5px;
}
.dwp-maaltijd-naam {
    font-size: .92em;
    font-weight: 600;
    color: #1a2e1a;
    margin-bottom: 8px;
    line-height: 1.35;
}
.dwp-maaltijd-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Meta-pills — kleur per kaart-type */
.dwp-meta-pill {
    font-size: .7em;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}
.dwp-dag-card--avond .dwp-meta-pill {
    background: #e8f5ee;
    color: #2d6a4f;
}
.dwp-dag-card--lunch .dwp-meta-pill {
    background: #fef3c7;
    color: #92400e;
}

/* Klikbare maaltijden */
.dwp-maaltijd-clickable {
    cursor: pointer;
    transition: background .15s;
    border-radius: 0 0 8px 8px;
}
.dwp-dag-card--avond .dwp-maaltijd-clickable:hover {
    background: #f4fbf7;
}
.dwp-dag-card--avond .dwp-maaltijd-clickable:hover .dwp-maaltijd-naam {
    color: #2d6a4f;
}
.dwp-dag-card--lunch .dwp-maaltijd-clickable:hover {
    background: #fffbeb;
}
.dwp-dag-card--lunch .dwp-maaltijd-clickable:hover .dwp-maaltijd-naam {
    color: #92400e;
}

/* ================================================================
   ALBERT HEIJN TEGEL
   ================================================================ */

.dwp-ah-sectie {
    margin: 4px 0 32px;
    display: flex;
    justify-content: center;
}
.dwp-ah-tegel {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #005baa 0%, #0070cc 100%);
    color: #fff !important;
    text-decoration: none !important;
    padding: 18px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,90,170,.28);
    transition: transform .18s, box-shadow .18s;
    max-width: 440px;
    width: 100%;
}
.dwp-ah-tegel:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,90,170,.38);
    text-decoration: none !important;
    color: #fff !important;
}
.dwp-ah-logo {
    font-size: 2.2em;
    line-height: 1;
    flex-shrink: 0;
}
.dwp-ah-tekst {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dwp-ah-tekst strong {
    font-size: 1.02em;
    font-weight: 700;
    color: #fff;
}
.dwp-ah-tekst small {
    font-size: .8em;
    opacity: .82;
    color: #fff;
}
.dwp-ah-pijl {
    font-size: 1.4em;
    opacity: .7;
    flex-shrink: 0;
}

/* ================================================================
   GEEN MENU
   ================================================================ */

.dwp-geen-menu {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}
.dwp-geen-menu p { font-size: 1.05em; margin-bottom: 10px; }

/* ================================================================
   BEHEER-KNOP
   ================================================================ */

.dwp-manage-link {
    text-align: center;
    margin-top: 8px;
}
.dwp-manage-link a {
    display: inline-block;
    background: #2d6a4f;
    color: #fff !important;
    padding: 10px 26px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: .92em;
    transition: background .2s;
}
.dwp-manage-link a:hover { background: #1b4332; text-decoration: none; }

/* ================================================================
   RECEPT MODAL
   ================================================================ */

.dwp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 20, .6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.dwp-modal-box {
    background: #fff;
    border-radius: 18px;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.28);
    animation: dwp-modal-in .2s ease;
}
@keyframes dwp-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.dwp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,.18);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.3em;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
    z-index: 1;
    transition: background .15s;
}
.dwp-modal-close:hover { background: rgba(255,255,255,.32); }

/* Modal header — groen (avond) */
.dwp-modal-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #fff;
    padding: 28px 56px 24px 28px;
    border-radius: 18px 18px 0 0;
}
/* Modal header — amber (lunch) */
.dwp-modal-header--lunch {
    background: linear-gradient(135deg, #78350f 0%, #b45309 100%);
}

.dwp-modal-type-label {
    display: block;
    font-size: .72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: .78;
    margin-bottom: 8px;
}
.dwp-modal-title {
    font-size: 1.45em;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.25;
}
.dwp-modal-meta-pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.dwp-modal-meta-pills .dwp-meta-pill {
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: .78em;
    padding: 3px 10px;
}

/* Modal body: twee kolommen */
.dwp-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
}
@media (max-width: 520px) {
    .dwp-modal-body { grid-template-columns: 1fr; }
}
.dwp-modal-sectie {
    padding: 22px 24px;
    border-right: 1px solid #eef1ee;
}
.dwp-modal-sectie:last-child { border-right: none; }

.dwp-modal-sectie-titel {
    font-size: .75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: #2d6a4f;
    margin: 0 0 14px;
}
.dwp-modal-header--lunch + .dwp-modal-body .dwp-modal-sectie-titel,
.dwp-modal-sectie-titel--lunch {
    color: #92400e;
}
.dwp-modal-header--lunch + .dwp-modal-body .dwp-ing-qty {
    color: #92400e;
}
.dwp-modal-header--lunch + .dwp-modal-body .dwp-modal-stappen li::marker {
    color: #92400e;
}

/* Ingrediëntenlijst */
.dwp-modal-ing {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dwp-modal-ing li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .88em;
    line-height: 1.4;
    align-items: baseline;
}
.dwp-modal-ing li:last-child { border-bottom: none; }
.dwp-ing-qty {
    font-weight: 600;
    color: #2d6a4f;
    min-width: 68px;
    flex-shrink: 0;
    font-size: .9em;
}
.dwp-ing-naam { color: #333; }

/* Bereidingsstappen */
.dwp-modal-stappen {
    padding-left: 22px;
    margin: 0;
}
.dwp-modal-stappen li {
    padding: 7px 0 7px 4px;
    font-size: .9em;
    line-height: 1.55;
    border-bottom: 1px solid #f5f5f5;
    color: #2a2a2a;
}
.dwp-modal-stappen li:last-child { border-bottom: none; }
.dwp-modal-stappen li::marker { color: #2d6a4f; font-weight: 700; }

/* Scroll-lock */
body.dwp-modal-open { overflow: hidden; }
