/* ============================================
   TUMA RESTAURANT - QR MENÜ ANA SAYFA
   Modern, sade ve mobil uyumlu tasarım
   ============================================ */

/* ===== GENEL SIFIRLAMA ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== KÖK DEĞİŞKENLERİ (KAPADOKYA RENK PALETİ) =====
   - Terracotta (peri bacalarının kil tonu)
   - Gün batımı turuncu (Kapadokya günbatımı)
   - Kum / krem (mağara taşı)
   - Volkan koyu kahve (arka plan)
*/
:root {
    --bg-dark: #1c1410;            /* Volkanik koyu kahve */
    --bg-card: rgba(212, 165, 116, 0.08);
    --bg-card-hover: rgba(212, 165, 116, 0.16);
    --accent: #c8754a;             /* Terracotta */
    --accent-light: #e89968;       /* Gün batımı turuncu */
    --accent-dark: #8b3a1e;        /* Derin pas */
    --accent-glow: rgba(200, 117, 74, 0.4);
    --sand: #d4a574;               /* Mağara kumu */
    --cream: #f4e4d4;              /* Krem */
    --text-white: #f4e4d4;
    --text-muted: rgba(244, 228, 212, 0.6);
    --border: rgba(212, 165, 116, 0.15);
}

/* ===== GÖVDE (Body) ===== */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== ANA KONTEYNER (Telefon görünümü) ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* ============================================
   HERO ALANI (Üstteki yemek fotoğrafı)
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

/* Arka plandaki yemek fotoğrafı */
.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?w=800&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

/* Fotoğrafa yavaş bir zoom animasyonu (modern his) */
@keyframes slowZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

/* Fotoğrafın üzerine koyu degrade (yazıların okunması için) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        var(--bg-dark) 100%
    );
}

/* ===== DİL SEÇİM SİSTEMİ ===== */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

/* Sağ üstteki dil seçim butonu */
.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Açılır dil menüsü */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Tek bir dil seçeneği */
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
    background: var(--accent);
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-name {
    flex: 1;
}

/* ============================================
   LOGO ALANI (Hero ile alt kısmın birleşim yeri)
   ============================================ */
.logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -55px;
    z-index: 5;
}

.logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 10px 40px var(--accent-glow);
    animation: logoFloat 3s ease-in-out infinite;
}

/* Logo'ya yumuşak yukarı-aşağı süzülme animasyonu */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================
   İÇERİK ALANI (Alt kısım)
   ============================================ */
.content {
    padding: 20px 24px 40px;
    text-align: center;
}

/* Restoran adı */
.restaurant-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-top: 16px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Restoran sloganı */
.restaurant-tagline {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
    margin-bottom: 32px;
}

/* ============================================
   BUTON SATIRLARI
   ============================================ */
.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Üç sütunlu satır (yorum siteleri için) */
.button-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ===== AKSİYON BUTONLARI ===== */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Üzerine gelince parlama efekti için */
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn:active {
    transform: translateY(-1px);
}

/* Ana butonlar (Menü ve Wi-Fi) - Terracotta tonlu */
.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    border-color: transparent;
    box-shadow: 0 8px 25px var(--accent-glow);
    padding: 24px 12px;
}

.action-btn.primary:hover {
    box-shadow: 0 12px 35px var(--accent-glow);
    transform: translateY(-4px);
}

/* Buton içindeki ikon */
.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.action-btn:hover .btn-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Buton içindeki yazı */
.btn-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* Ana butonlardaki yazı daha büyük */
.action-btn.primary .btn-text {
    font-size: 16px;
    font-weight: 600;
}

/* ============================================
   SOSYAL MEDYA İKONLARI
   ============================================ */
.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* ============================================
   ALT BİLGİ (Footer)
   ============================================ */
.footer-text {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ============================================
   MOBİL UYUMLULUK (Responsive)
   ============================================ */
@media (max-width: 380px) {
    .restaurant-name {
        font-size: 26px;
    }

    .hero {
        height: 280px;
    }

    .logo {
        width: 95px;
        height: 95px;
    }

    .action-btn {
        padding: 16px 8px;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
    }
}

/* Sayfa açılış animasyonu */
.content > * {
    animation: fadeInUp 0.6s ease backwards;
}

.restaurant-name { animation-delay: 0.1s; }
.restaurant-tagline { animation-delay: 0.2s; }
.button-row:nth-of-type(1) { animation-delay: 0.3s; }
.button-row:nth-of-type(2) { animation-delay: 0.4s; }
.social-links { animation-delay: 0.5s; }
.footer-text { animation-delay: 0.6s; }

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

/* ============================================
   MENÜ SAYFASI (menu.html için)
   ============================================ */

/* Menü sayfasındaki hero biraz daha kısa */
.menu-hero {
    height: 220px;
}

/* Sol üstteki geri butonu */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

/* Menü sayfa başlığı (hero üzerinde) */
.menu-page-title {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Kategori listesi konteyneri */
.categories {
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tek bir kategori kartı */
.category-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

    /* Animasyon başlangıç durumu */
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

/* Her kategori sırayla görünür (stagger animation) */
.category-item:nth-child(1)  { animation-delay: 0.05s; }
.category-item:nth-child(2)  { animation-delay: 0.10s; }
.category-item:nth-child(3)  { animation-delay: 0.15s; }
.category-item:nth-child(4)  { animation-delay: 0.20s; }
.category-item:nth-child(5)  { animation-delay: 0.25s; }
.category-item:nth-child(6)  { animation-delay: 0.30s; }
.category-item:nth-child(7)  { animation-delay: 0.35s; }
.category-item:nth-child(8)  { animation-delay: 0.40s; }
.category-item:nth-child(9)  { animation-delay: 0.45s; }
.category-item:nth-child(10) { animation-delay: 0.50s; }
.category-item:nth-child(11) { animation-delay: 0.55s; }
.category-item:nth-child(12) { animation-delay: 0.60s; }
.category-item:nth-child(13) { animation-delay: 0.65s; }
.category-item:nth-child(14) { animation-delay: 0.70s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateX(6px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Sol kenardaki ince kırmızı çizgi (hover'da) */
.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease;
}

.category-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* Kategori ikonu */
.cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Kategori ismi */
.cat-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Sağdaki ok ikonu */
.cat-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-item:hover .cat-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Arapça (RTL - sağdan sola yazım) için düzenleme */
[dir="rtl"] .category-item {
    animation-name: slideInRtl;
}

[dir="rtl"] .cat-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .back-btn svg {
    transform: scaleX(-1);
}

[dir="rtl"] .language-selector {
    right: auto;
    left: 20px;
}

[dir="rtl"] .back-btn {
    left: auto;
    right: 20px;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
    transform-origin: top left;
}

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

/* ============================================
   ÜRÜN LİSTESİ SAYFASI (products.html)
   ============================================ */

/* Üst gezinti çubuğu (Kategori | Ana Sayfa | TR) */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: white;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
}

.nav-btn:hover {
    opacity: 0.85;
}

.nav-btn svg {
    width: 22px;
    height: 22px;
}

/* Geri butonu - öne çıkması için arka plan ve animasyon */
.nav-btn-back {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 6px 14px;
    transition: all 0.25s ease;
}

.nav-btn-back:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateX(-3px);
    opacity: 1;
}

/* RTL'de geri butonu sağa kaysın */
[dir="rtl"] .nav-btn-back svg {
    transform: scaleX(-1);
}

[dir="rtl"] .nav-btn-back:hover {
    transform: translateX(3px);
}

/* Gezinti çubuğundaki dil seçici (header'a uyumlu) */
.top-nav .language-selector {
    position: relative;
    top: auto;
    right: auto;
}

.top-nav .language-btn {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    font-size: 12px;
}

/* Kategori başlığı (ürünler üstündeki) */
.category-title {
    text-align: center;
    padding: 24px 20px 8px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 1px;
}

.category-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Ürün kartlarının listesi */
.products-list {
    padding: 0 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Tek bir ürün kartı */
.product-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.40s; }

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

/* Ürün fotoğrafı */
.product-image {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: var(--bg-card-hover);
}

/* Ürün bilgileri (orta kısım) */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
    line-height: 1.3;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.5px;
}

.product-ingredients {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "i" bilgi butonu */
.product-info-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    color: var(--sand);
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
    cursor: pointer;
    align-self: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.product-info-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Boş durum (kategoride ürün yoksa) */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* RTL desteği (Arapça) */
[dir="rtl"] .product-card {
    animation-name: slideInRtl;
}

/* ============================================
   ÜRÜN DETAY MODAL (Pop-up)
   ============================================ */

/* Modal arka plan (karartma) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal kutusu */
.modal {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

/* Modal üst kısmı - ürün fotoğrafı */
.modal-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

/* Kapatma (X) butonu */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-dark);
    transform: rotate(90deg) scale(1.05);
}

/* Modal içerik kısmı (kaydırılabilir) */
.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
}

/* Ürün adı (modal içinde) */
.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--cream);
    text-align: center;
    margin-bottom: 4px;
}

/* Fiyat (başlığın altında) */
.modal-price {
    text-align: center;
    color: var(--accent-light);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Sekme başlıkları (Açıklama | Alerjenler | Besin) */
.modal-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.modal-tab {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.modal-tab:hover {
    color: var(--cream);
}

/* Aktif sekme */
.modal-tab.active {
    color: var(--accent-light);
}

/* Aktif sekmenin altındaki çizgi */
.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--accent-light);
    border-radius: 3px 3px 0 0;
    animation: tabSlide 0.3s ease;
}

@keyframes tabSlide {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Sekme içerikleri */
.tab-panel {
    display: none;
    color: var(--cream);
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* Besin değerleri için ızgara */
.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.nutrition-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.nutrition-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.nutrition-value {
    color: var(--accent-light);
    font-size: 20px;
    font-weight: 700;
}

.nutrition-unit {
    color: var(--cream);
    font-size: 12px;
    font-weight: 400;
    margin-left: 2px;
}

.nutrition-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 12px;
    font-style: italic;
}

/* Ürün kartının tıklanabilir görünmesi */
.product-card {
    cursor: pointer;
}

/* RTL düzeltmesi */
[dir="rtl"] .modal-close {
    right: auto;
    left: 16px;
}

/* ============================================
   YAPAY ZEKA ÖNERİCİ
   Ana sayfada görünen büyük "Sana Ne Önerelim?" kartı
   ============================================ */
.ai-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 10px 30px var(--accent-glow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Kartın üzerinde dolaşan parıltı animasyonu */
.ai-card::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
    );
    animation: aiShine 3s ease-in-out infinite;
}

@keyframes aiShine {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(50%); }
}

.ai-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--accent-glow);
}

.ai-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    z-index: 1;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.ai-card-text {
    flex: 1;
    z-index: 1;
}

.ai-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ai-card-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

.ai-card-arrow {
    font-size: 22px;
    opacity: 0.8;
    z-index: 1;
}

/* ============================================
   YAPAY ZEKA SİHİRBAZ MODAL'I
   ============================================ */

/* Adım göstergesi (noktalar) */
.ai-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 8px;
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    transition: all 0.3s ease;
}

.ai-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-light);
}

.ai-dot.done {
    background: var(--accent);
}

/* Soru başlığı */
.ai-question {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--cream);
    padding: 20px 24px 24px;
    line-height: 1.3;
}

/* Cevap seçenekleri konteyneri */
.ai-options {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tek bir cevap seçeneği */
.ai-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    color: var(--cream);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    transition: all 0.25s ease;
}

.ai-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateX(4px);
}

.ai-option.selected {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent-light);
    color: white;
    box-shadow: 0 6px 20px var(--accent-glow);
}

.ai-option-icon {
    font-size: 26px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.ai-option-label {
    flex: 1;
}

/* Sihirbaz altı (geri/devam) butonları */
.ai-nav {
    display: flex;
    gap: 10px;
    padding: 6px 20px 22px;
}

.ai-nav-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ai-nav-btn.secondary {
    background: var(--bg-card);
    color: var(--cream);
    border: 1px solid var(--border);
}

.ai-nav-btn.secondary:hover {
    background: var(--bg-card-hover);
}

.ai-nav-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 6px 18px var(--accent-glow);
}

.ai-nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.ai-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Karşılama (intro) ekranı ===== */
.ai-intro {
    text-align: center;
    padding: 30px 24px 10px;
}

.ai-intro-icon {
    font-size: 56px;
    margin-bottom: 12px;
    animation: aiPulse 2s ease-in-out infinite;
}

.ai-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
}

.ai-intro-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* ===== Sonuç (öneri) ekranı ===== */
.ai-result {
    padding: 24px 20px 10px;
    text-align: center;
}

.ai-result-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--accent-light);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.ai-result-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--accent-glow);
    animation: resultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resultPop {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.ai-result-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.ai-result-body {
    padding: 16px;
}

.ai-result-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 4px;
}

.ai-result-price {
    color: var(--accent-light);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-result-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ===== Çoklu öneri listesi ===== */
.ai-result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mini sonuç kartı (3 öneri için yatay düzen) */
.ai-result-card.mini {
    display: flex;
    align-items: stretch;
    gap: 0;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: all 0.3s ease;
    animation: resultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.ai-result-card.mini:nth-child(1) { animation-delay: 0.0s; }
.ai-result-card.mini:nth-child(2) { animation-delay: 0.1s; border-color: var(--border); }
.ai-result-card.mini:nth-child(3) { animation-delay: 0.2s; border-color: var(--border); }

.ai-result-card.mini:hover {
    transform: translateY(-3px);
    border-color: var(--accent-light);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.ai-result-image.mini {
    width: 100px;
    height: auto;
    min-height: 100px;
    border-radius: 0;
    flex-shrink: 0;
}

.ai-result-body.mini {
    flex: 1;
    padding: 12px 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-result-body.mini .ai-result-name {
    font-size: 15px;
    margin-bottom: 2px;
}

.ai-result-body.mini .ai-result-price {
    font-size: 15px;
    margin-bottom: 4px;
}

.ai-result-body.mini .ai-result-desc {
    font-size: 11.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sıralama rozeti (sol üst köşede) */
.ai-rank-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: 2px solid var(--bg-dark);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    z-index: 2;
}

.ai-rank-badge.top {
    width: auto;
    min-width: 28px;
    height: 28px;
    border-radius: 14px;
    padding: 0 8px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
    font-size: 11px;
    gap: 2px;
}

/* RTL düzeltmesi */
[dir="rtl"] .ai-rank-badge {
    left: auto;
    right: -8px;
}

/* Düşünüyor animasyonu (3 nokta) */
.ai-thinking {
    text-align: center;
    padding: 60px 20px;
    color: var(--cream);
}

.ai-thinking-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: aiPulse 0.8s ease-in-out infinite;
}

.ai-thinking-text {
    font-size: 16px;
    color: var(--text-muted);
}

.ai-thinking-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ============================================
   DUYURULAR ŞERİDİ (admin panelden gelir)
   ============================================ */
.announcements-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 20px;
    padding: 0;
}

.ann-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(232, 153, 104, 0.15), rgba(200, 117, 74, 0.1));
    border: 1px solid rgba(232, 153, 104, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--cream);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: annSlideIn 0.5s ease;
}

@keyframes annSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ann-banner:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(232, 153, 104, 0.22), rgba(200, 117, 74, 0.16));
    border-color: rgba(232, 153, 104, 0.4);
}

.ann-banner.system {
    background: linear-gradient(135deg, rgba(74, 143, 200, 0.15), rgba(74, 143, 200, 0.08));
    border-color: rgba(74, 143, 200, 0.3);
}

.ann-banner.warning {
    background: linear-gradient(135deg, rgba(200, 81, 46, 0.18), rgba(200, 81, 46, 0.1));
    border-color: rgba(200, 81, 46, 0.35);
}

.ann-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ann-banner-body {
    flex: 1;
    min-width: 0;
}

.ann-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ann-banner-content {
    font-size: 11px;
    color: rgba(244, 228, 212, 0.75);
    margin-top: 2px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Duyuru detay modal stili (ürün modalını yeniden kullanıyor) */
.ann-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ann-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ann-modal {
    width: 100%;
    max-width: 380px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 24px;
    text-align: center;
}

.ann-modal-overlay.open .ann-modal {
    transform: scale(1);
}

.ann-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.ann-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--cream);
    margin-bottom: 8px;
}

.ann-modal-content {
    font-size: 14px;
    color: rgba(244, 228, 212, 0.85);
    line-height: 1.5;
    margin-bottom: 18px;
}

.ann-modal-close {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
