/*
 * QR Menü teması: telefonla masadan açılan tek sayfa menü. Sade başlık, kısa fotoğraflı karşılama,
 * yapışık kategori düğmeleri ve kâğıt menü hissi veren yemek satırları (noktalı fiyat çizgisi).
 * Menü bloğunun temel yerleşimi ortak site.css'te; burada renk, doku ve ölçü.
 */
@layer theme {
    body { background: var(--surface); }

    /* ---- Duyuru şeridi (Wi-Fi) ve başlık ------------------------------------------------------- */
    .qm-strip { background: var(--brand); color: var(--brand-ink); font-size: 0.8125rem; }
    .qm-strip__text { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: 0; padding-block: 7px; text-align: center; }
    .qm-strip__text svg { flex: none; opacity: 0.85; }
    .site-header--qrmenu { position: relative; border-bottom: 1px solid var(--line); background: var(--surface); }
    .qm-bar { min-height: var(--header-height); gap: var(--space-4); }
    .site-header--qrmenu .brand__name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.01em; }
    @media (min-width: 900px) { .site-header--qrmenu .site-nav { border-top: 0; } }
    .qm-actions { display: flex; align-items: center; gap: var(--space-3); margin-inline-start: auto; }
    .qm-call {
        display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4);
        border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none;
    }
    .qm-call:hover { filter: brightness(1.12); }
    @media (max-width: 479px) {
        .qm-call { width: 40px; padding: 0; justify-content: center; }
        .qm-call__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    }

    /* ---- Karşılama ------------------------------------------------------------------------------ */
    .qm-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(300px, 48vh, 460px); }
    .qm-hero:not(.qm-hero--media) { min-height: 0; padding-block: var(--space-12) var(--space-8); text-align: center; }
    .qm-hero__media { position: absolute; inset: 0; z-index: -2; }
    .qm-hero__media :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
    .qm-hero--media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 18 14 / 0.05) 15%, rgb(20 18 14 / 0.78) 100%); }
    .qm-hero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); width: 100%; padding-block: var(--space-12) var(--space-8); }
    .qm-hero__content { max-width: 640px; }
    .qm-hero--media .qm-hero__content { color: #fff; }
    .qm-hero:not(.qm-hero--media) .qm-hero__content { margin-inline: auto; }
    .qm-hero__eyebrow { margin: 0 0 var(--space-3); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
    :is([dir="rtl"], :lang(ar)) .qm-hero__eyebrow { letter-spacing: 0; }
    .qm-hero__title { margin: 0; font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
    .qm-hero__title .hero-title__accent { display: block; font-style: italic; font-weight: 400; color: var(--accent); }
    .qm-hero--media .qm-hero__title .hero-title__accent { color: #f3c9a8; }
    .qm-hero__lead { margin-top: var(--space-3); max-width: 52ch; font-size: 1rem; line-height: 1.55; opacity: 0.92; }
    .qm-hero__lead p { margin: 0; }
    .qm-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
    .qm-hero:not(.qm-hero--media) .qm-hero__actions { justify-content: center; }
    .qm-btn {
        display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6);
        border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
        transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
    }
    .qm-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
    .qm-btn--line { border: 1.5px solid currentColor; background: transparent; color: inherit; }
    .qm-hero__card { display: grid; gap: 2px; max-width: 280px; padding: var(--space-4) var(--space-6); border-radius: var(--radius); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-raised); }
    .qm-hero__card-label { color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    .qm-hero__card-title { font-family: var(--font-display); font-size: 1.15rem; }
    .qm-hero__card-text { color: var(--ink-muted); font-size: 0.875rem; }

    /* ---- Menü ------------------------------------------------------------------------------------- */
    .qr-menu { padding-top: 0; }
    .qr-menu__nav { margin-bottom: var(--space-2); border-top: 0; background: color-mix(in oklab, var(--surface) 92%, transparent); }
    .qr-menu__chip { border-color: transparent; background: var(--surface-band); font-weight: 600; }
    .qr-menu__chip:hover { border-color: var(--brand); background: var(--surface-raised); }
    .qr-menu__chip[aria-current="true"] { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
    .qr-menu__group { padding-block: var(--space-8) var(--space-4); }
    .qr-menu__group + .qr-menu__group { border-top: 0; }
    .qr-menu__group-title { display: flex; align-items: center; gap: var(--space-4); font-size: var(--step-2); font-weight: 600; }
    .qr-menu__group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
    [dir="rtl"] .qr-menu__group-title::after { background: linear-gradient(270deg, var(--line), transparent); }
    .qr-menu__group-text { font-style: italic; }
    .qr-menu__items { gap: 0 var(--space-12); }
    .qr-item { padding-block: var(--space-4); border-bottom: 1px dashed var(--line); }
    .qr-item__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
    .qr-item__price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
    .qr-item.is-chef .qr-item__open::before { content: "★"; margin-inline-end: 6px; color: var(--accent); font-size: 0.85em; }
    .qr-item__media { box-shadow: 0 6px 16px rgb(31 27 22 / 0.12); }
    .qr-menu__note { border-top-style: dashed; font-style: italic; }

    /* Altbilgi koyu zeytin */
    .site-footer { --footer-bg: var(--night); --footer-ink: var(--night-ink); --footer-title: #ffffff; --footer-line: var(--night-line); --footer-accent: #f3c9a8; }
}
