@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --ek-bg: #090909;
    --ek-surface: #111111;
    --ek-surface-raised: #171717;
    --ek-surface-soft: #1d1d1d;
    --ek-gold: #d4af37;
    --ek-gold-soft: #e2c56a;
    --ek-text: #f7f3e8;
    --ek-muted: #a6a29a;
    --ek-line: rgba(255, 255, 255, 0.08);
    --ek-gold-line: rgba(212, 175, 55, 0.28);
    --ek-radius-sm: 12px;
    --ek-radius-md: 18px;
    --ek-radius-lg: 26px;
    --ek-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

html {
    color-scheme: dark;
    background: var(--ek-bg);
    scroll-behavior: smooth;
}

body {
    background-color: var(--ek-bg);
    color: var(--ek-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.font-serif, .font-headline, [class*="font-headline"] {
    font-family: 'Playfair Display', Georgia, serif !important;
}

::selection {
    color: #0a0a0a;
    background: var(--ek-gold);
}

/* Eski sayfalardaki farklı altın tonlarını tek marka rengine bağla */
.text-amber-400, .text-amber-500, .text-amber-600, .text-secondary {
    color: var(--ek-gold-soft) !important;
}

.bg-amber-500, .bg-amber-600, .bg-secondary {
    background-color: var(--ek-gold) !important;
}

.border-amber-500, .border-amber-600, .border-secondary {
    border-color: var(--ek-gold) !important;
}

.hover\:text-amber-500:hover, .hover\:text-secondary:hover {
    color: var(--ek-gold-soft) !important;
}

.hover\:bg-amber-600:hover, .hover\:bg-secondary:hover {
    background-color: var(--ek-gold) !important;
}

:focus-visible {
    outline: 2px solid var(--ek-gold) !important;
    outline-offset: 3px;
}

button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

button, a[role="button"] {
    touch-action: manipulation;
}

/* Ana sayfa üst menüsü */
#navbar[data-brand-header] {
    border-bottom: 1px solid transparent;
}

#navbar[data-brand-header]::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    opacity: 0.7;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.34), transparent);
}

#navbar[data-brand-header] nav > a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

#navbar[data-brand-header] nav > button {
    border-radius: 999px;
    border-color: var(--ek-gold-line);
    color: var(--ek-gold-soft);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Menü ve ürün sayfalarının ortak üst çubuğu */
body > header[data-brand-header="menu"] {
    position: sticky;
    top: 0;
    isolation: isolate;
    background: rgba(12, 12, 12, 0.88) !important;
    border-bottom: 1px solid var(--ek-line) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24) !important;
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

body > header[data-brand-header="menu"]::before {
    content: '';
    position: absolute;
    z-index: -1;
    right: 12%;
    bottom: -1px;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ek-gold), transparent);
    opacity: 0.38;
}

body > header[data-brand-header="menu"] h1 {
    color: var(--ek-gold-soft) !important;
    font-weight: 600;
    letter-spacing: 0.13em !important;
}

body > header[data-brand-header="menu"] > div:first-child > a:first-child {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ek-line);
    border-radius: 999px;
    background: rgba(255,255,255,0.025);
}

body > header[data-brand-header="menu"] > a:first-child {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ek-line);
    border-radius: 999px;
    background: rgba(255,255,255,0.025);
}

body > header[data-brand-header="menu"] [id^="lang-"] {
    min-width: 38px;
    min-height: 32px;
    justify-content: center;
}

body > header[data-brand-header="menu"] [id^="lang-"] span {
    font-family: 'Inter', sans-serif;
}

/* Ortak yüzeyler ve kontroller */
#menu-search,
#reservation-modal input,
#reservation-modal select,
#reservation-modal textarea {
    border-radius: var(--ek-radius-sm) !important;
    border-color: var(--ek-line) !important;
    background: rgba(10, 10, 10, 0.82) !important;
}

#menu-search:focus,
#reservation-modal input:focus,
#reservation-modal select:focus,
#reservation-modal textarea:focus {
    border-color: rgba(212, 175, 55, 0.58) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

#product-modal > div,
#reservation-modal #modal-content {
    border-color: var(--ek-gold-line) !important;
    background: linear-gradient(155deg, #191919, #101010) !important;
    box-shadow: var(--ek-shadow) !important;
}

/* Mobil öncelikli ölçüler */
@media (max-width: 767px) {
    #navbar[data-brand-header] {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        background: linear-gradient(180deg, rgba(8,8,8,.88), rgba(8,8,8,.52), transparent) !important;
    }

    #navbar[data-brand-header] > div {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    #navbar[data-brand-header] img {
        height: 50px !important;
        max-width: 116px;
    }

    #mobile-menu {
        gap: 22px !important;
        padding: max(72px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
        background: radial-gradient(circle at 50% 14%, rgba(212,175,55,.1), transparent 30%), #090909 !important;
    }

    #mobile-menu > a:not([aria-label]) {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
        line-height: 1.25;
        letter-spacing: .16em !important;
    }

    body > header[data-brand-header="menu"] > div:first-child {
        min-height: 64px;
        padding: 10px 12px !important;
        gap: 8px;
    }

    body > header[data-brand-header="menu"] h1 {
        max-width: 40vw;
        overflow: hidden;
        font-size: clamp(.94rem, 4.4vw, 1.12rem) !important;
        line-height: 1.1;
        letter-spacing: .06em !important;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body > header[data-brand-header="menu"] > div:first-child > a:first-child {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    body > header[data-brand-header="menu"] [id^="lang-"] {
        min-width: 27px;
        min-height: 32px;
        padding-right: 5px !important;
        padding-left: 5px !important;
    }

    body > header[data-brand-header="menu"] > div:first-child > div:last-child,
    body > header[data-brand-header="menu"] > div:last-child {
        gap: 2px !important;
        padding: 3px !important;
    }

    body > header[data-brand-header="menu"] [id^="lang-"] img {
        width: 15px;
        height: 15px;
    }

    body > header[data-brand-header="menu"] [id^="lang-"] span {
        display: none;
    }

    #category-tabs {
        gap: 8px !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
        scroll-padding-inline: 10px;
    }

    #category-tabs a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    #menu-container {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    #product-modal,
    #reservation-modal {
        padding: 10px !important;
    }

    #product-modal > div,
    #reservation-modal #modal-content {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        border-radius: var(--ek-radius-md) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
