/* ═══════════════════════════════════════════════════════
   DIJITAL RESTORAN MENÜSÜ — DARK-GOLD TEMA
   Mobile-First / Premium UI
   ═══════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────── */
:root {
    /* Gold tones */
    --gold:           #D4A843;
    --gold-light:     #E8C96A;
    --gold-dark:      #B8922E;
    --gold-glow:      rgba(212, 168, 67, 0.25);
    --gold-subtle:    rgba(212, 168, 67, 0.08);

    /* Dark backgrounds */
    --bg-primary:     #0A0A0F;
    --bg-secondary:   #111118;
    --bg-card:        rgba(255, 255, 255, 0.03);
    --bg-card-hover:  rgba(255, 255, 255, 0.06);
    --bg-glass:       rgba(17, 17, 24, 0.85);
    --bg-overlay:     rgba(0, 0, 0, 0.7);

    /* Text */
    --text-primary:   #F5F5F7;
    --text-secondary: #A1A1AA;
    --text-muted:     #6B6B76;

    /* Borders */
    --border:         rgba(255, 255, 255, 0.06);
    --border-hover:   rgba(212, 168, 67, 0.3);

    /* Spacing */
    --header-h:       64px;
    --cat-bar-h:      56px;

    /* Radius */
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --radius-full:    9999px;

    /* Shadows */
    --shadow-card:    0 4px 24px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
    --shadow-glow:    0 0 30px rgba(212, 168, 67, 0.15);
    --shadow-modal:   0 25px 60px rgba(0,0,0,0.5);

    /* Transitions */
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --duration:       0.3s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ─── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ─── PAGE LOADER ───────────────────────────────────── */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    text-align: center;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ─── HEADER ────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: transform var(--duration) var(--ease);
}

.header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.header-logo img.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* ─── LANGUAGE TOGGLE ───────────────────────────────── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--duration) var(--ease);
}

.lang-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.lang-active {
    color: var(--gold);
}

.lang-divider {
    color: var(--text-muted);
    font-weight: 300;
}

.lang-inactive {
    color: var(--text-muted);
}

/* ─── LIGHT MODE THEME ───────────────────────────────── */
body.theme-light {
    --bg-primary: #FDFBF7;
    --bg-secondary: #F4EFE6;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFAFA;
    --bg-glass: rgba(253, 251, 247, 0.9);
    --text-primary: #1A1D20;
    --text-secondary: #495057;
    --text-muted: #8B8276;
    --border: rgba(0, 0, 0, 0.08);
}

body.theme-light .hero {
    background: linear-gradient(165deg, #FDFBF7 0%, #F4EFE6 50%, #E8DFD1 100%);
}
body.theme-light .hero.has-image .hero-overlay {
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0.2), rgba(253, 251, 247, 0.9));
}

/* ─── THEME TOGGLE BUTTON ──────────────────────────── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: var(--gold);
}

/* ─── HERO SECTION ──────────────────────────────────── */
.hero {
    position: relative;
    height: 20vh; /* Daha da küçültüldü */
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(165deg, var(--bg-secondary), var(--bg-primary));
    margin-top: var(--header-h);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero.has-image .hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.4), rgba(10, 10, 15, 0.85));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px;
    animation: heroFadeIn 1s var(--ease) forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(20px); }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2rem); /* Daha da küçültüldü */
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.04em;
}

.hero-scroll-indicator {
    display: none; /* Artık hero çok küçük, scroll okuna gerek yok */
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ─── CATEGORY BAR ──────────────────────────────────── */
.category-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 900;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: 76px; /* İyice büyütüldü */
}

.category-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px; /* Aralık arttırıldı */
    padding: 0 16px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px; /* İYİCE BÜYÜTÜLDÜ */
    border-radius: var(--radius-full);
    font-size: 1.25rem; /* İYİCE BÜYÜTÜLDÜ */
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    scroll-snap-align: start;
}

.cat-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.cat-btn.active {
    color: var(--bg-primary);
    background: var(--gold);
    border-color: var(--gold);
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.cat-btn-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* ─── MENU CONTENT ──────────────────────────────────── */
.menu-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 16px 80px;
}

/* ─── CATEGORY SECTION ──────────────────────────────── */
.category-section {
    margin-bottom: 48px;
    scroll-margin-top: calc(var(--header-h) + var(--cat-bar-h) + 16px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.category-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
}

.category-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.01em;
}

/* ─── PRODUCT CARD ──────────────────────────────────── */
.product-grid {
    display: grid;
    gap: 12px;
}

.product-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
    animation: cardSlideUp 0.5s var(--ease) forwards;
    opacity: 0;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-image-wrapper {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: transparent; /* Changed from var(--bg-secondary) so contain looks cleaner */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0.3;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.02em;
}

/* ─── NO IMAGE CARD (daha kompakt) ──────────────────── */
.product-card.no-image {
    padding: 14px 16px;
}

.product-card.no-image .product-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card.no-image .product-name-desc {
    flex: 1;
    min-width: 0;
}

.product-card.no-image .product-price {
    flex-shrink: 0;
}

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 16px 24px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 28px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

.footer-link:hover {
    color: var(--gold);
}

.footer-link svg {
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.7;
}

/* Sosyal Medya */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}

.social-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-subtle);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── CAMPAIGN MODAL ────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.4s var(--ease) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    animation: modalSlideUp 0.5s var(--ease) forwards;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    transition: all var(--duration) var(--ease);
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

.modal-image-wrapper {
    width: 100%;
    max-height: 300px; /* Don't force strict 16:9, just limit height */
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1.3;
}

.modal-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 168, 67, 0.4);
}

/* ─── EMPTY STATE ───────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state-text {
    font-size: 1rem;
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (min-width: 480px) {
    .product-image-wrapper {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 768px) {
    .menu-content {
        padding: 48px 24px 100px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-image-wrapper {
        width: 110px;
        height: 110px;
    }

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

    .footer-bottom {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 400px;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .product-card {
        padding: 18px;
    }
}

/* ─── UTILITY ANIMATIONS ────────────────────────────── */
.fade-in {
    animation: fadeIn 0.6s var(--ease) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ─── STAGGER ANIMATION DELAYS ──────────────────────── */
.product-card:nth-child(1)  { animation-delay: 0.05s; }
.product-card:nth-child(2)  { animation-delay: 0.1s; }
.product-card:nth-child(3)  { animation-delay: 0.15s; }
.product-card:nth-child(4)  { animation-delay: 0.2s; }
.product-card:nth-child(5)  { animation-delay: 0.25s; }
.product-card:nth-child(6)  { animation-delay: 0.3s; }
.product-card:nth-child(7)  { animation-delay: 0.35s; }
.product-card:nth-child(8)  { animation-delay: 0.4s; }
.product-card:nth-child(9)  { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }

/* ─── SCROLL TO TOP ─────────────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--gold-light);
}
