/* ============================================================
   AltunSoft - Genel / Anasayfa Stilleri
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary:   #f97316;
    --primary-d: #ea580c;
    --success:   #16a34a;
    --danger:    #dc2626;
    --warning:   #d97706;
    --bg:        #f3f4f6;
    --border:    #e5e7eb;
    --text:      #111827;
    --muted:     #6b7280;
    --shadow:    0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
    --radius:    12px;
    --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    background: #0f172a;
    color: #fff; padding: 1.1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    position: sticky; top: 0; z-index: 100;
}

.header-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}
.header-brand { display: flex; align-items: center; gap: .75rem; }
.header-brand .logo-icon {
    width: 42px; height: 42px;
    background: var(--primary);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(249,115,22,.35);
}
.header-brand h1 { font-size: 1.15rem; font-weight: 700; }
.header-brand span { font-size: .75rem; color: rgba(255,255,255,.6); display: block; }

.header-date { font-size: .85rem; color: rgba(255,255,255,.7); text-align: right; }
.header-date strong { display: block; font-size: 1rem; color: #fff; }

/* ── Sabit Sipariş Bar (Tüm ekranlar) ───────────────────── */
.mobile-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding: .75rem 1.25rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 999;
}
.mobile-checkout-bar.show { display: flex; }
.mobile-checkout-bar .m-count {
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.mobile-checkout-bar .m-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    flex: 1;
    text-align: right;
}
.mobile-checkout-bar .m-btn {
    background: var(--primary);
    color: #fff;
    padding: .65rem 1.1rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}
body { padding-bottom: 72px; }

/* ── Ana İçerik ──────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 2rem 0; }

/* ── Menü Yok / Aktif Değil Ekranı ──────────────────────── */
.no-menu {
    text-align: center; padding: 5rem 2rem;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.no-menu i { font-size: 3.5rem; color: var(--muted); opacity: .3; display: block; margin-bottom: 1.5rem; }
.no-menu h2 { font-size: 1.4rem; margin-bottom: .75rem; }
.no-menu p  { color: var(--muted); font-size: .9rem; }

/* ── Menü Başlık ─────────────────────────────────────────── */
.menu-hero {
    background: #fff;
    color: var(--text); border-radius: var(--radius); padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}
.menu-hero h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .35rem; letter-spacing: -.2px; }
.menu-hero p  { font-size: .9rem; color: var(--muted); max-width: 640px; margin-top: .25rem; }
.menu-hero .menu-dates {
    display: flex; gap: .75rem; margin-top: 1rem; font-size: .8rem;
    flex-wrap: wrap;
}
.menu-hero .menu-dates span {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #f3f4f6;
    padding: .3rem .65rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 500;
}
.menu-hero .menu-dates i { font-size: .75rem; color: var(--primary); }

/* ── Kategori Sidebar ───────────────────────────────────── */
.category-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    border: 1px solid var(--border);
}
.category-title {
    font-size: .85rem; font-weight: 700;
    margin-bottom: 1rem; color: var(--text);
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}
.category-list {
    display: flex; flex-direction: column; gap: .35rem;
}
.category-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
    padding: .7rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .85rem; font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all .15s ease;
    border: 1px solid transparent;
    background: #fff;
}
.category-item:hover {
    background: #fff8f3;
    border-color: rgba(249,115,22,.25);
    color: var(--primary-d);
}
.category-item.active {
    background: #fff7ed;
    color: var(--primary-d);
    border-color: var(--primary);
    font-weight: 600;
}
.category-item.active .cat-badge { background: var(--primary); color: #fff; }
.cat-badge {
    font-size: .7rem; font-weight: 600;
    padding: .15rem .45rem;
    background: #f3f4f6;
    color: var(--muted);
    border-radius: 20px;
    flex-shrink: 0;
}

/* ── Yemek Kartları (E-ticaret tarzı) ───────────────────── */
.food-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all .2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.food-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-3px);
    border-color: #d1d5db;
}
.food-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(249,115,22,.12), var(--shadow-lg);
}

.food-image-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f1f5f9;
}
.food-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.food-card:hover .food-img { transform: scale(1.03); }

.food-img-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #9ca3af;
}

.cart-action {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    z-index: 10;
    cursor: pointer;
}
.cart-label {
    background: rgba(255,255,255,.95);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    white-space: nowrap;
    letter-spacing: .3px;
    transition: all .2s ease;
    border: 1px solid rgba(79,70,229,.1);
}
.cart-action:hover .cart-label {
    background: #fff;
    color: var(--primary-d);
    transform: translateY(-1px);
}

.btn-cart-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all .2s;
    pointer-events: none;
}
.cart-action:hover .btn-cart-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}
.food-card.selected .cart-action:hover .btn-cart-icon {
    background: var(--success);
    transform: scale(1.08);
}
.food-card.selected .btn-cart-icon {
    background: var(--success);
    color: #fff;
}
.food-card.selected .cart-label {
    background: var(--success);
    color: #fff;
    border-color: transparent;
}
.food-card.selected .btn-cart-icon i::before {
    content: '\f00c';
}

.food-body  { padding: 1.125rem; flex: 1; display: flex; flex-direction: column; }
.food-meta  { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--primary-d); font-weight: 700; margin-bottom: .35rem; }
.food-name  { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; line-height: 1.35; color: #111827; }
.food-desc  { font-size: .82rem; color: var(--muted); margin-bottom: .65rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-footer {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
    padding-top: .7rem;
    border-top: 1px solid #f3f4f6;
}
.food-price {
    font-size: 1.1rem; font-weight: 800; color: var(--primary);
}
.food-price.free { color: var(--success); font-weight: 700; }
.food-status {
    font-size: .75rem; font-weight: 600; color: var(--success);
}

/* ── Sepet Öğesi (Modal içi) ────────────────────────────── */
.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .85rem;
}
.cart-item:last-of-type { border-bottom: none; }
.cart-item-name { font-weight: 500; }
.cart-item-price { font-weight: 600; color: var(--primary); white-space: nowrap; }

.cart-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: .875rem 0 0; margin-top: .5rem; border-top: 2px solid var(--border);
    font-weight: 700; font-size: 1rem;
}
.cart-total span:last-child { color: var(--primary); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 9999;
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; animation: fadeIn .2s; }

.modal-box {
    background: #fff; border-radius: 16px;
    width: 92%; max-width: 460px;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
    animation: slideUp .25s ease; overflow: hidden;
}
.modal-header {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-weight: 700; font-size: 1rem; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.modal-body  { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem; border-top: 1px solid var(--border);
    display: flex; gap: .75rem; justify-content: flex-end;
}

/* ── Uyarı Kutusu ────────────────────────────────────────── */
.warning-box {
    background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-sm); padding: .875rem 1rem;
    font-size: .85rem; color: #991b1b; display: flex; gap: .5rem;
    margin-bottom: 1rem;
}

/* ── Personel Sorgulama ──────────────────────────────────── */
.personel-result {
    background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2);
    border-radius: var(--radius-sm); padding: .875rem 1rem;
    margin-top: .75rem; font-size: .875rem;
}
.personel-result strong { color: var(--success); }

/* ── Sipariş Durumu ──────────────────────────────────────── */
.status-page { max-width: 600px; margin: 3rem auto; padding: 0 1.5rem; }
.status-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.status-header { background: var(--primary); color: #fff; padding: 1.5rem; }
.status-header h2 { font-size: 1.1rem; font-weight: 600; }
.status-header .siparis-no { font-size: .8rem; opacity: .8; margin-top: .25rem; }

.status-timeline { padding: 1.5rem; }
.timeline-step {
    display: flex; gap: 1rem; padding-bottom: 1.5rem; position: relative;
}
.timeline-step:not(:last-child)::after {
    content: ''; position: absolute; left: 17px; top: 36px;
    width: 2px; height: calc(100% - 18px); background: var(--border);
}
.timeline-dot {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; flex-shrink: 0; border: 2px solid var(--border);
    background: #fff; color: var(--muted); z-index: 1;
}
.timeline-dot.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.timeline-dot.done   { border-color: var(--success); background: var(--success); color: #fff; }
.timeline-dot.cancelled { border-color: var(--danger); background: var(--danger); color: #fff; }

.timeline-info { padding-top: .35rem; }
.timeline-info strong { font-size: .9rem; font-weight: 600; }
.timeline-info span { font-size: .8rem; color: var(--muted); display: block; margin-top: .1rem; }

.footer { text-align: center; padding: 2rem; color: var(--muted); font-size: .8rem; }

/* ── Mobil Sabit Sipariş Bar ────────────────────────────── */
.mobile-checkout-bar {
    display: none;
}

/* ── Şık Menüye Dön Butonu ──────────────────────────────── */
.btn-menu-go {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: #fff;
    border-radius: 50px;
    font-size: .85rem; font-weight: 600;
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
    transition: all .2s ease;
    margin-top: 1.25rem;
}
.btn-menu-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,.45);
}

/* ── Durum Kontrol Formu ─────────────────────────────────── */
.status-check-form {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 2rem; text-align: center; margin: 2rem auto;
    max-width: 440px;
}
.status-check-form h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.status-check-form p  { color: var(--muted); font-size: .875rem; margin-bottom: 1.5rem; }

/* ── Layout ──────────────────────────────────────────────── */
.menu-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.category-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}
.food-area {
    flex: 1;
    min-width: 0;
}

@media (min-width: 769px) {
    .hide-mobile { display: block; }
}
@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

/* ── Butonlar ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.1rem; border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 500; border: 1px solid transparent;
    cursor: pointer; transition: all .2s; line-height: 1.4;
    text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-secondary { background: var(--muted); color: #fff; }
.btn-light { background: var(--bg); color: var(--text); border-color: var(--border); }

/* ── Form ────────────────────────────────────────────────── */
.form-control {
    width: 100%; padding: .625rem .875rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .9rem; outline: none; transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.form-label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .375rem; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
    .category-sidebar { width: 220px; }
}

@media (max-width: 900px) {
    .menu-layout {
        display: block;
        width: 100%;
    }
    .category-sidebar {
        display: block;
        width: 100%;
        position: static;
    }
    .food-area {
        display: block;
        width: 100%;
    }
    .category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: .25rem;
        gap: .5rem;
    }
    .category-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .site-header { padding: .75rem 0; }
    .header-inner { padding: 0 .65rem; }
    .header-brand { gap: .5rem; }
    .header-brand h1 { font-size: .9rem; letter-spacing: -.2px; }
    .header-brand span { font-size: .65rem; }
    .header-brand .logo-icon { width: 34px; height: 34px; font-size: .95rem; border-radius: 8px; }
    .header-brand img { height: 34px !important; }
    .header-date { display: none; }

    .container { padding: 0 .5rem; }
    .section { padding: .5rem 0; }

    .menu-hero { padding: 1rem; margin-bottom: .75rem; border-radius: 10px; border-left-width: 3px; }
    .menu-hero h2 { font-size: 1.1rem; }
    .menu-hero p { font-size: .8rem; }
    .menu-hero .menu-dates {
        flex-direction: row;
        align-items: center;
        gap: .35rem;
        margin-top: .6rem;
        font-size: .72rem;
    }
    .menu-hero .menu-dates span { padding: .25rem .5rem; }

    .no-menu { padding: 2rem .75rem; border-radius: 10px; }
    .no-menu i { font-size: 2rem; margin-bottom: .75rem; }
    .no-menu h2 { font-size: 1rem; margin-bottom: .4rem; }
    .no-menu p { font-size: .8rem; line-height: 1.5; }

    .category-box { padding: .65rem; border-radius: 10px; }
    .category-title { font-size: .75rem; margin-bottom: .5rem; padding-bottom: .4rem; }
    .category-list { gap: .35rem; }
    .category-item { padding: .45rem .65rem; font-size: .75rem; border-radius: 6px; }
    .cat-badge { font-size: .6rem; padding: .1rem .35rem; }

    .food-item { margin-bottom: 0; }
    .food-img-placeholder { height: 100%; font-size: 1.8rem; }
    .food-body { padding: .875rem 1rem; }
    .food-meta { font-size: .68rem; margin-bottom: .2rem; letter-spacing: .5px; }
    .food-name { font-size: 1rem; margin-bottom: .2rem; line-height: 1.35; }
    .food-desc { font-size: .8rem; margin-bottom: .4rem; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.45; }
    .food-footer { padding-top: .5rem; border-top: 1px solid #f3f4f6; }
    .food-price { font-size: 1.05rem; font-weight: 800; }
    .food-status { font-size: .65rem; }

    .cart-action { bottom: .5rem; right: .5rem; gap: .2rem; }
    .btn-cart-icon { width: 30px; height: 30px; font-size: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); border-radius: 50%; }

    .mobile-checkout-bar { padding: .55rem .65rem; }
    .mobile-checkout-bar .m-count { font-size: .8rem; }
    .mobile-checkout-bar .m-total { font-size: 1rem; }
    .mobile-checkout-bar .m-btn { padding: .5rem .75rem; font-size: .8rem; border-radius: 8px; }
    body { padding-bottom: 58px; }

    .modal-box { border-radius: 12px; width: 96%; }
    .modal-header { padding: .875rem 1rem; }
    .modal-title { font-size: .9rem; }
    .modal-body { padding: .875rem 1rem; }
    .modal-footer { padding: .75rem 1rem; flex-direction: column; gap: .4rem; }
    .modal-footer .btn { width: 100%; justify-content: center; padding: .6rem; font-size: .82rem; }
    .warning-box { font-size: .78rem; padding: .65rem .75rem; margin-bottom: .65rem; }
    .personel-result { padding: .65rem .75rem; margin-top: .4rem; font-size: .8rem; }

    .status-check-form { padding: 1rem .75rem; margin: .75rem auto; border-radius: 10px; }
    .status-page { margin: 1rem auto; padding: 0 .65rem; }

    .footer { padding: 1rem .5rem; font-size: .7rem; }
}

/* ── Yemek Grid ───────────────────────────────────────────── */

/* Mobil: kesinlikle tek sütun */
#yemekGrid {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
}
#yemekGrid > .col,
#yemekGrid > .food-item,
#yemekGrid > .col.food-item {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box;
    margin-bottom: .75rem;
}
#yemekGrid > .col:last-child,
#yemekGrid > .food-item:last-child { margin-bottom: 0; }

#yemekGrid .food-card {
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Tablet: 2 sütun */
@media (min-width: 901px) {
    #yemekGrid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .75rem;
    }
    #yemekGrid > .col,
    #yemekGrid > .food-item,
    #yemekGrid > .col.food-item {
        display: flex;
        flex-direction: column;
        width: auto !important;
        max-width: none !important;
        margin-bottom: 0;
    }
    #yemekGrid .food-card { height: 100% !important; }
}

/* Masaüstü: 3 sütun */
@media (min-width: 1200px) {
    #yemekGrid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 480px) {
    .header-brand h1 { font-size: .85rem; }
    .header-brand span { font-size: .6rem; }
    .menu-hero { padding: .875rem; }
    .menu-hero h2 { font-size: 1rem; }
    .menu-hero .menu-dates { font-size: .68rem; }

    .food-body { padding: .65rem .75rem; }
    .food-meta { font-size: .65rem; margin-bottom: .2rem; }
    .food-name { font-size: .95rem; margin-bottom: .2rem; line-height: 1.3; }
    .food-desc { font-size: .78rem; margin-bottom: .3rem; line-height: 1.4; }
    .food-price { font-size: 1rem; }
    .food-footer { padding-top: .4rem; }

    .btn-cart-icon { width: 26px; height: 26px; font-size: .72rem; }
    .cart-action { bottom: .3rem; right: .3rem; gap: .15rem; }
}
