﻿:root {
    --bg: #f2f0ea; /* açık bej */
    --ink: #2a2a2a;
    --brand: #6e0b2b; /* burgundy */
    --brand-ink: #fff;
    --line: rgba(0,0,0,.06);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 24px rgba(0,0,0,.14);
    --maxw: 720px;
    --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Ubuntu,"Helvetica Neue",Arial,sans-serif;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--brand);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.qr-shell {
    max-width: var(--maxw);
    margin: 0 auto;
    min-height: 100%;
    position: relative;
    background: var(--bg);
}

/* ============ Topbar ============ */
.qr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 30px 60px 20px;
}

.icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 2px solid var(--brand);
    background: transparent;
    display: grid;
    place-items: center;
}

.icon {
    width: 24px;
    height: 24px;
    fill: var(--brand)
}

/* pill-like select */
.pill-select {
    position: relative;
    display: inline-block
}

    .pill-select select {
        position: absolute;
        inset: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

.pill-select__label {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 56px;
    border-radius: 16px;
    border: 2px solid var(--brand);
    font-weight: 700;
    color: var(--brand);
    background: transparent;
}

/* ============ Hero ============ */
.qr-hero {
    position: relative;
}

.qr-hero__band {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #ddd;
    box-shadow: var(--shadow-sm);
}

.qr-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* circular logo overlay */
.qr-brand {
    position: absolute;
    left: 50%;
    bottom: 230px;
    transform: translateX(-50%);
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
    margin-top: 0;
}

.qr-brand__logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    outline: 3px solid var(--brand);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

    .qr-brand__logo img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.qr-brand__title {
    margin: 6px 0 0;
    font-size: 14px;
    letter-spacing: .08em;
    opacity: .7
}

.qr-brand__subtitle {
    margin: 0;
    font-weight: 600
}

.qr-brand__hint {
    margin: 0;
    opacity: .7
}

/* ============ Menus grid (JS doldurur) ============ */
.qr-menus {
    padding: 24px 20px 14px 20px;
}

#menu-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 50px;
}

.menu-item-wrapper {
    display: grid;
    gap: 10px;
    justify-items: center
}

.menu-item-circle {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    text-decoration: none;
}

    .menu-item-circle img {
        width: 64%;
        height: 64%;
        object-fit: contain;
    }

.menu-name {
    margin: 10px 0;
    font-weight: 700;
    letter-spacing: .09em;
    background-color: var(--brand);
    color: white;
    padding: 12px 40px;
    font-size: 12px;
    border-radius: 10rem;
    text-transform: uppercase;
}

/* ============ Footer ============ */
.qr-footer {
    bottom: 0;
    padding: 22px 0 28px;
    text-align: center;
}

.qr-footer__brand-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

/* ============ Responsive ============ */
@media (min-width:480px) {
    .qr-hero__band {
        height: 260px
    }

    .qr-brand__logo {
        width: 140px;
        height: 140px;
        border-width: 8px;
        outline-width: 4px;
    }


    .menu-name {
        font-size: 17px
    }
}

/* ============ RTL destek (JS body.dir='rtl' yapıyor) ============ */
[dir="rtl"] {
    direction: rtl;
}

/* (isteğe bağlı) eski koyu overlay efektleri varsa kapatmak için */
.menu-item-circle::before {
    display: none !important;
}


/* Dil toggle butonu: eski pill ile aynı görünüm */
.lang-toggle {
    display: inline-grid;
    font-size: 17px;
    letter-spacing: .09em;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 2px solid var(--brand);
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
}

    .lang-toggle:active {
        transform: translateY(1px);
    }

