/* =============================================================
   FRL Menukaart – Frontend CSS (v1.2.0)
   Structuur:
     1. Base (layout, werkt met CSS custom properties)
     2. Preset: Classic  (default theming)
     3. Preset: Modern
     4. Preset: Luxe
     5. Preset: Minimal
     6. Responsive
============================================================= */

/* -------------------------------------------------------------
   1. BASE – layout zonder kleuren/fonts
------------------------------------------------------------- */
.frl-mk {
    /* Defaults; elk preset overschrijft deze */
    --mk-primary: #8b4513;
    --mk-accent:  #c8860a;
    --mk-bg:      #fdfaf5;
    --mk-border:  #e8dcc8;
    --mk-text:    #2c1a0e;
    --mk-note:    #7a5c3a;
    --mk-price:   #1a1a1a;
    --mk-radius:  8px;
    --mk-font:    Georgia, 'Times New Roman', serif;
    --mk-font-head: inherit;

    font-family: var(--mk-font);
    color: var(--mk-text);
    background: var(--mk-bg);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    padding: 24px;
    max-width: 860px;
}

/* Tab navigation */
.frl-mk-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--mk-border);
}
.frl-mk-nav-btn {
    background: none;
    border: 1px solid var(--mk-border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    color: var(--mk-note);
    transition: background .15s, color .15s;
}
.frl-mk-nav-btn:hover { background: rgba(0,0,0,.04); }
.frl-mk-nav-btn.is-active {
    background: var(--mk-bg);
    color: var(--mk-primary);
    font-weight: 700;
    border-bottom-color: var(--mk-bg);
    margin-bottom: -2px;
}

.frl-mk-panel.is-hidden { display: none; }

.frl-mk-menu-title {
    font-family: var(--mk-font-head);
    font-size: 1.7em;
    font-weight: 700;
    color: var(--mk-primary);
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mk-border);
}

.frl-mk-section { margin-bottom: 28px; }
.frl-mk-section-title {
    font-family: var(--mk-font-head);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--mk-accent);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--mk-border);
}
.frl-mk-section-note {
    font-style: italic;
    font-size: .88em;
    color: var(--mk-note);
    margin: 0 0 10px;
}

/* Items – flexbox layout */
.frl-mk-items { list-style: none; margin: 0; padding: 0; }
.frl-mk-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--mk-border);
    font-size: .97em;
    line-height: 1.5;
}
.frl-mk-item:last-child { border-bottom: none; }
.frl-mk-item-name {
    font-weight: 600;
    color: var(--mk-text);
}
.frl-mk-item-desc {
    font-style: italic;
    font-size: .88em;
    color: var(--mk-note);
}
.frl-mk-item-extra {
    display: block;
    flex-basis: 100%;
    font-size: .82em;
    color: var(--mk-note);
    margin-top: 2px;
    line-height: 1.45;
    opacity: .9;
}
.frl-mk-item-extra::before {
    content: "🍽  ";
    opacity: .55;
    font-size: .9em;
}
.frl-mk-item.has-image .frl-mk-item-extra { flex-basis: auto; }
.frl-mk-item-spacer {
    flex: 1;
    border-bottom: 1px dotted var(--mk-border);
    min-width: 20px;
    align-self: center;
    margin: 0 4px;
    opacity: .7;
}
.frl-mk-item-price {
    white-space: nowrap;
    font-size: 1em;
    color: var(--mk-price);
}
.frl-mk-item-price strong { font-weight: 700; }
.frl-mk-price2 { font-size: .85em; color: var(--mk-note); }
.frl-mk-price2 em { font-style: italic; font-size: .92em; }

/* Items met afbeelding: thumbnail links, body in het midden */
.frl-mk-item.has-image {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}
.frl-mk-item-image {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0,0,0,.04);
    display: block;
}
.frl-mk-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.frl-mk-item.has-image .frl-mk-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
}
/* Items zonder afbeelding: body gedraagt zich als inline container */
.frl-mk-item:not(.has-image) .frl-mk-item-body {
    display: contents;
}

/* Dieet-badges */
.frl-mk-diet-badges { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: baseline; }
.frl-mk-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: .7em;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    background: #e6f4ea;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
    vertical-align: middle;
}
.frl-mk-badge--veganistisch { background: #dcedc8; color: #33691e; border-color: #aed581; }
.frl-mk-badge--vegetarisch  { background: #e6f4ea; color: #1b5e20; border-color: #a5d6a7; }
.frl-mk-badge--glutenvrij   { background: #fff8e1; color: #795548; border-color: #ffd54f; }
.frl-mk-badge--lactosevrij  { background: #e3f2fd; color: #0d47a1; border-color: #90caf9; }
.frl-mk-badge--pittig       { background: #ffebee; color: #b71c1c; border-color: #ef9a9a; }

/* Allergen-tekst */
.frl-mk-item-allergens {
    display: block;
    flex-basis: 100%;
    font-size: .78em;
    font-style: italic;
    color: var(--mk-note);
    margin-top: 2px;
    opacity: .85;
}
.frl-mk-item.has-image .frl-mk-item-allergens { flex-basis: auto; }

/* Legenda */
.frl-mk-legend {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(0,0,0,.02);
    border: 1px solid var(--mk-border);
    border-radius: 6px;
    font-size: .82em;
    color: var(--mk-note);
}
.frl-mk-legend-diets strong { color: var(--mk-text); margin-right: 6px; }
.frl-mk-legend .frl-mk-badge { margin-right: 2px; }

/* Screen reader */
.frl-mk .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Disclaimer */
.frl-mk-disclaimer {
    font-style: italic;
    font-size: .8em;
    color: var(--mk-note);
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--mk-border);
    opacity: .75;
}

/* -------------------------------------------------------------
   2. PRESET: CLASSIC (brown/serif brasserie)
------------------------------------------------------------- */
.frl-mk--preset-classic {
    --mk-primary: #8b4513;
    --mk-accent:  #c8860a;
    --mk-bg:      #fdfaf5;
    --mk-border:  #e8dcc8;
    --mk-text:    #2c1a0e;
    --mk-note:    #7a5c3a;
    --mk-price:   #1a1a1a;
    --mk-font:    Georgia, 'Times New Roman', serif;
    --mk-font-head: Georgia, 'Times New Roman', serif;
    --mk-radius:  8px;
}

/* -------------------------------------------------------------
   3. PRESET: MODERN (sans-serif, lots of whitespace)
------------------------------------------------------------- */
.frl-mk--preset-modern {
    --mk-primary: #111;
    --mk-accent:  #0d7377;
    --mk-bg:      #ffffff;
    --mk-border:  #ececec;
    --mk-text:    #1a1a1a;
    --mk-note:    #767676;
    --mk-price:   #111;
    --mk-font:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mk-font-head: inherit;
    --mk-radius:  4px;
    padding: 40px;
}
.frl-mk--preset-modern .frl-mk-menu-title {
    font-size: 1.9em;
    font-weight: 300;
    text-transform: none;
    letter-spacing: -.01em;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 32px;
    color: var(--mk-primary);
}
.frl-mk--preset-modern .frl-mk-section { margin-bottom: 40px; }
.frl-mk--preset-modern .frl-mk-section-title {
    color: var(--mk-accent);
    font-size: .85em;
    font-weight: 700;
    letter-spacing: .15em;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 14px;
}
.frl-mk--preset-modern .frl-mk-item {
    border-bottom: none;
    padding: 10px 0;
}
.frl-mk--preset-modern .frl-mk-item + .frl-mk-item { border-top: 1px solid var(--mk-border); }
.frl-mk--preset-modern .frl-mk-item-spacer { display: none; }
.frl-mk--preset-modern .frl-mk-item-name {
    flex: 1;
    font-weight: 500;
    white-space: normal;
}
.frl-mk--preset-modern .frl-mk-item-price { margin-left: auto; font-weight: 500; }
.frl-mk--preset-modern .frl-mk-nav-btn {
    border: none;
    border-radius: 0;
    color: var(--mk-note);
    padding: 10px 0;
    margin-right: 24px;
    border-bottom: 2px solid transparent;
}
.frl-mk--preset-modern .frl-mk-nav-btn.is-active {
    color: var(--mk-primary);
    border-bottom-color: var(--mk-accent);
    background: none;
}
.frl-mk--preset-modern .frl-mk-nav {
    border-bottom: 1px solid var(--mk-border);
    gap: 0;
}

/* -------------------------------------------------------------
   4. PRESET: LUXE (dark with gold accent)
------------------------------------------------------------- */
.frl-mk--preset-luxe {
    --mk-primary: #d4af37;
    --mk-accent:  #d4af37;
    --mk-bg:      #1a1a1a;
    --mk-border:  #3a3a3a;
    --mk-text:    #f5f0e1;
    --mk-note:    #a89976;
    --mk-price:   #d4af37;
    --mk-font:    'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --mk-font-head: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --mk-radius:  2px;
    padding: 40px;
}
.frl-mk--preset-luxe .frl-mk-menu-title {
    font-weight: 400;
    font-style: italic;
    font-size: 2em;
    letter-spacing: .15em;
    border-bottom: 1px solid var(--mk-border);
}
.frl-mk--preset-luxe .frl-mk-menu-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--mk-accent);
    margin: 8px auto 0;
}
.frl-mk--preset-luxe .frl-mk-section-title {
    font-style: italic;
    font-weight: 400;
    font-size: 1.25em;
    letter-spacing: .1em;
    color: var(--mk-accent);
    text-align: center;
    border: none;
    padding: 8px 0;
}
.frl-mk--preset-luxe .frl-mk-item-name { font-weight: 500; }
.frl-mk--preset-luxe .frl-mk-item { border-bottom-color: #2a2a2a; border-bottom-style: solid; }
.frl-mk--preset-luxe .frl-mk-item-spacer { border-bottom-color: #3a3a3a; }
.frl-mk--preset-luxe .frl-mk-nav-btn { background: transparent; color: var(--mk-note); }
.frl-mk--preset-luxe .frl-mk-nav-btn.is-active {
    background: var(--mk-bg);
    color: var(--mk-accent);
}
.frl-mk--preset-luxe .frl-mk-legend,
.frl-mk--preset-luxe .frl-mk-disclaimer { color: var(--mk-note); }
.frl-mk--preset-luxe .frl-mk-badge {
    background: transparent;
    color: var(--mk-accent);
    border-color: var(--mk-accent);
}

/* -------------------------------------------------------------
   5. PRESET: MINIMAL (black on white, geometric)
------------------------------------------------------------- */
.frl-mk--preset-minimal {
    --mk-primary: #000;
    --mk-accent:  #000;
    --mk-bg:      #ffffff;
    --mk-border:  #000;
    --mk-text:    #000;
    --mk-note:    #555;
    --mk-price:   #000;
    --mk-font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mk-font-head: inherit;
    --mk-radius:  0;
    border: 2px solid var(--mk-border);
    padding: 32px;
}
.frl-mk--preset-minimal .frl-mk-menu-title {
    font-weight: 900;
    font-size: 1.5em;
    letter-spacing: -.02em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--mk-border);
}
.frl-mk--preset-minimal .frl-mk-section-title {
    font-weight: 900;
    font-size: .9em;
    letter-spacing: .1em;
    border-bottom: 1px solid var(--mk-border);
    padding: 10px 0 4px;
    color: var(--mk-primary);
}
.frl-mk--preset-minimal .frl-mk-item { border-bottom: 1px solid #eee; padding: 10px 0; }
.frl-mk--preset-minimal .frl-mk-item-spacer { display: none; }
.frl-mk--preset-minimal .frl-mk-item-name { font-weight: 700; flex: 1; }
.frl-mk--preset-minimal .frl-mk-item-price { margin-left: auto; }
.frl-mk--preset-minimal .frl-mk-nav-btn {
    border-radius: 0;
    border: 1px solid var(--mk-border);
    background: #fff;
    color: #000;
    font-weight: 600;
}
.frl-mk--preset-minimal .frl-mk-nav-btn.is-active {
    background: #000;
    color: #fff;
}
.frl-mk--preset-minimal .frl-mk-item-extra::before { content: "→  "; }
.frl-mk--preset-luxe .frl-mk-item-extra { font-style: italic; }

/* -------------------------------------------------------------
   6. RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 600px) {
    .frl-mk { padding: 16px; }
    .frl-mk--preset-modern, .frl-mk--preset-luxe, .frl-mk--preset-minimal { padding: 20px; }
    .frl-mk-nav-btn { padding: 6px 10px; font-size: 12px; }
    .frl-mk-item:not(.has-image) .frl-mk-item-spacer { display: none; }
    .frl-mk-item:not(.has-image) { justify-content: space-between; }
    .frl-mk-item:not(.has-image) .frl-mk-item-price { margin-left: auto; }
    .frl-mk-item.has-image { gap: 10px; }
    .frl-mk-item-image { width: 56px; height: 56px; }
}
