/* ═══════════════════════════════════════════════════════════
   BY CHEF — Restoran Menyu Dizayn Sistemi
   Modern · Bakı · 2025
═══════════════════════════════════════════════════════════ */

/* ─── DIZAYN TOKENLERİ ──────────────────────────────────── */
:root {
    --bg:            #1A1814;
    --surface:       #221F1A;
    --surface-2:     #2A2620;
    --surface-3:     #332E27;
    --border:        #38332C;
    --border-light:  #47413A;

    --gold:          #D49520;
    --gold-light:    #F0B840;
    --gold-pale:     rgba(212, 149, 32, 0.12);
    --gold-dark:     #A07010;

    --text:          #EDE6D8;
    --text-2:        #9A9080;
    --text-3:        #524E44;

    --green-bg:      #1A4A2E;
    --green-text:    #6DFFAA;
    --red-bg:        #4A1818;
    --red-text:      #FFAA80;

    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', system-ui, sans-serif;

    --header-h:  68px;
    --catnav-h:  60px;
    --radius:    12px;
    --radius-sm: 8px;
    --transition: 0.22s ease;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(26, 24, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 0 var(--border), 0 8px 40px rgba(0, 0, 0, 0.7);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color var(--transition);
    letter-spacing: 0.2px;
}

.main-nav a:hover { color: var(--text); }

.main-nav .nav-cta {
    background: var(--gold);
    color: #0C0C0C;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: background var(--transition), box-shadow var(--transition);
}

.main-nav .nav-cta:hover {
    background: var(--gold-light);
    color: #0C0C0C;
    box-shadow: 0 4px 18px rgba(212, 149, 32, 0.4);
}

/* Header'da her zaman görünen CTA — sadece mobilde */
.header-cta {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
    background: var(--gold);
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}

.ticker-content {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0C0C0C;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    flex-shrink: 0;
    padding-right: 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h) - 34px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

.hero-label::before,
.hero-label::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-2);
    margin-bottom: 36px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 48px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--gold);
    color: #0C0C0C;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 4px 22px rgba(212, 149, 32, 0.42);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--border-light);
    color: var(--text-2);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-pale);
}

.btn-maps {
    border-color: var(--border-light);
    color: var(--text-2);
    background: transparent;
}

.btn-maps:hover {
    border-color: #4A90E2;
    color: #7AB4F5;
    background: rgba(74, 144, 226, 0.1);
}

/* ─── FEATURES ───────────────────────────────────────────── */
.features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: var(--surface);
    padding: 44px 36px;
    text-align: center;
    transition: background var(--transition);
    border-right: 1px solid var(--border);
}

.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--surface-2); }

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* ─── CATEGORY NAV ───────────────────────────────────────── */
.cat-nav-wrap {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    background: rgba(26, 24, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: var(--catnav-h);
}

.cat-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    height: var(--catnav-h);
    scrollbar-width: none;
    padding: 0 4px;
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.cat-nav-item:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border-light);
}

.cat-nav-item.active {
    background: var(--gold);
    color: #0C0C0C;
    font-weight: 700;
    border-color: var(--gold);
}

.cat-nav-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.cat-nav-item.active .cat-nav-img {
    border-color: rgba(12, 12, 12, 0.25);
}

/* ─── MENU PAGE ──────────────────────────────────────────── */
.menu-page { background: var(--bg); }

.menu-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

/* ─── CATEGORY SECTION ───────────────────────────────────── */
.cat-section { margin-top: 52px; }

/* ─── CATEGORY BANNER ────────────────────────────────────── */
.cat-banner {
    position: relative;
    height: 210px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--surface-2);
}

.cat-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cat-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.42) 48%,
        rgba(0, 0, 0, 0.08) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 22px 26px;
}

.cat-banner-content {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.cat-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
}

.cat-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(212, 149, 32, 0.2);
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid rgba(212, 149, 32, 0.35);
}

/* ─── ITEMS GRID ─────────────────────────────────────────── */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ─── ITEM CARD ──────────────────────────────────────────── */
.item-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.item-card--set {
    border-color: rgba(212, 149, 32, 0.22);
    background: linear-gradient(160deg, var(--surface) 0%, rgba(212, 149, 32, 0.05) 100%);
}

.item-card--set:hover {
    border-color: rgba(212, 149, 32, 0.45);
    box-shadow: 0 6px 28px rgba(212, 149, 32, 0.14);
}

.item-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding: 12px 16px 8px;
    background: var(--surface);
}

.item-img-placeholder {
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

.item-card--set .item-img-placeholder {
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.item-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.item-badges:empty { display: none; }

.badge {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.badge-new { background: var(--green-bg); color: var(--green-text); }
.badge-hot { background: var(--red-bg);   color: var(--red-text); }
.badge-set {
    background: var(--gold-pale);
    color: var(--gold-light);
    border: 1px solid rgba(212, 149, 32, 0.3);
}

.item-name {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
}

.item-desc {
    font-size: 0.775rem;
    color: var(--text-2);
    line-height: 1.58;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

/* Description popup */
.desc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.desc-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.desc-popup {
    background: var(--surface);
    border: 1px solid rgba(212, 149, 32, 0.28);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    max-width: 320px;
    width: 100%;
    position: relative;
    transform: translateY(10px);
    transition: transform 0.18s ease;
}
.desc-backdrop.open .desc-popup {
    transform: translateY(0);
}
.desc-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    transition: color var(--transition);
}
.desc-popup-close:hover { color: var(--gold); }
.desc-popup-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
    padding-right: 20px;
    line-height: 1.3;
}
.desc-popup-text {
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}

.item-price {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: auto;
    letter-spacing: -0.3px;
}

/* ─── EMPTY ──────────────────────────────────────────────── */
.empty-menu {
    text-align: center;
    color: var(--text-2);
    padding: 80px 0;
    font-size: 1rem;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 52px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px 72px;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 14px;
}

.footer-info {
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.75;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 210px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: all var(--transition);
    white-space: nowrap;
}

.footer-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.footer-link:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface-3);
}

.footer-link--wa:hover  { border-color: #25D366; color: #25D366; }
.footer-link--maps:hover { border-color: #4A90E2; color: #7AB4F5; }
.footer-link--phone:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
    grid-column: 1 / -1;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    font-size: 0.775rem;
    color: var(--text-3);
    text-align: center;
}

/* ─── WHATSAPP FAB ────────────────────────────────────────── */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 22px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* ─── ERROR PAGES ─────────────────────────────────────────── */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.error-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 12px;
}

.error-text {
    color: var(--text-2);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .items-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --header-h:  60px;
        --catnav-h:  56px;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(26, 24, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 24px 28px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        /* visibility: hidden garantili gizleme — translateY tek başına yetmez */
        visibility: hidden;
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0.25s;
        z-index: 99;
    }

    .main-nav.active {
        visibility: visible;
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0s;
    }

    /* Desktop nav-cta mobilde burgera girmesin */
    .main-nav .nav-cta { display: none; }

    .burger { display: flex; }

    /* Header'daki sabit CTA butonu */
    .header-cta {
        display: inline-flex;
        align-items: center;
        background: var(--gold);
        color: #0C0C0C;
        padding: 8px 15px;
        border-radius: var(--radius-sm);
        font-weight: 700;
        font-size: 0.82rem;
        letter-spacing: 0.2px;
        white-space: nowrap;
        transition: background var(--transition);
    }

    .header-cta:hover { background: var(--gold-light); }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .feature-card:last-child { border-bottom: none; }

    .cat-banner  { height: 165px; }
    .cat-name    { font-size: 1.6rem; }

    .items-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-right {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-link {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .items-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cat-banner  { height: 145px; }
    .cat-name    { font-size: 1.4rem; }

    .item-body   { padding: 10px 12px 12px; }
    .item-name   { font-size: 0.88rem; }
    .item-price  { font-size: 1rem; }

    .hero-meta { flex-direction: column; gap: 8px; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn { justify-content: center; }

    .footer-right { flex-direction: column; }
    .footer-link  { min-width: unset; justify-content: flex-start; }
}
