/* ============================================================
   AltunSoft - Genel / Anasayfa Stilleri
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary:   #4f46e5;
    --primary-d: #4338ca;
    --success:   #10b981;
    --danger:    #ef4444;
    --warning:   #f59e0b;
    --bg:        #f8f9fc;
    --border:    #e2e8f0;
    --text:      #1e293b;
    --muted:     #64748b;
    --shadow:    0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
    --radius:    14px;
    --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;
}

a { text-decoration: none; color: inherit; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #1a2035 0%, #2d3a5e 100%);
    color: #fff; padding: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.header-brand { display: flex; align-items: center; gap: .75rem; }
.header-brand .logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(79,70,229,.4);
}
.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; }

/* ── Ana İçerik ──────────────────────────────────────────── */
.container { max-width: 1100px; 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: linear-gradient(135deg, var(--primary), #818cf8);
    color: #fff; border-radius: var(--radius); padding: 2rem;
    margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.menu-hero::before {
    content: '\f2e7';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 8rem; opacity: .06;
    position: absolute; right: -1rem; top: -2rem;
}
.menu-hero h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.menu-hero p  { font-size: .9rem; opacity: .85; }
.menu-hero .menu-dates {
    display: flex; gap: 1.5rem; margin-top: 1rem; font-size: .85rem; opacity: .85;
}
.menu-hero .menu-dates i { margin-right: .3rem; }

/* ── Yemek Kartları ──────────────────────────────────────── */
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

.food-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 2px solid transparent;
    transition: all .2s; cursor: pointer; position: relative;
}
.food-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border); transform: translateY(-2px); }
.food-card.selected { border-color: var(--primary); background: rgba(79,70,229,.02); }
.food-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: .75rem; right: .75rem;
    font-size: 1.25rem; color: var(--primary);
}

.food-img { width: 100%; height: 180px; object-fit: cover; }
.food-img-placeholder {
    width: 100%; height: 160px; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--muted); opacity: .3;
}
.food-body  { padding: 1rem; }
.food-name  { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.food-price {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
    margin-top: .5rem;
}
.food-price.free { color: var(--success); }

/* ── Sipariş Özeti ───────────────────────────────────────── */
.order-summary {
    position: sticky; top: 80px;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.order-summary-header { background: var(--primary); color: #fff; padding: 1rem 1.25rem; }
.order-summary-header h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.order-summary-body { padding: 1.25rem; }

.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); }

#empty-cart { text-align: center; padding: 2rem; color: var(--muted); font-size: .85rem; }

/* ── Sipariş Butonu ──────────────────────────────────────── */
.btn-order {
    width: 100%; padding: .875rem; margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-d));
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: opacity .2s, transform .2s;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-order:hover { opacity: .9; transform: translateY(-1px); }
.btn-order:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── 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; }

/* ── 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: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

/* ── 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: 768px) {
    .header-inner { padding: 0 1rem; }
    .header-brand h1 { font-size: 1rem; }
    .header-brand .logo-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .header-date { display: none; }

    .container { padding: 0 1rem; }
    .section { padding: 1rem 0; }

    .menu-layout { grid-template-columns: 1fr; }
    .menu-layout .order-summary {
        order: -1;
        position: static;
        margin-bottom: .75rem;
    }

    .menu-hero { padding: 1.5rem; margin-bottom: 1rem; }
    .menu-hero h2 { font-size: 1.25rem; }
    .menu-hero .menu-dates {
        flex-direction: column;
        gap: .35rem;
        font-size: .8rem;
    }

    .food-grid { grid-template-columns: 1fr; gap: .875rem; }
    .food-img { height: 160px; }
    .food-img-placeholder { height: 140px; }

    .no-menu { padding: 3rem 1rem; }
    .no-menu i { font-size: 2.5rem; margin-bottom: 1rem; }
    .no-menu h2 { font-size: 1.15rem; }

    .modal-footer { flex-direction: column; gap: .5rem; }
    .modal-footer .btn { width: 100%; justify-content: center; }

    .status-check-form { padding: 1.5rem 1rem; margin: 1rem auto; }
    .status-page { margin: 1.5rem auto; padding: 0 1rem; }
}

@media (max-width: 480px) {
    .food-grid { grid-template-columns: 1fr; }
    .food-img { height: 150px; }
}
