/* Kurumsal Logo Renkleri */
:root {
    --logo-yellow: #F2B705;  /* "CEDRIC" yazısı ve ortadaki "C" sarısı */
    --logo-red: #A61214;     /* Amblem halkasındaki tok kırmızı */
    --logo-dark: #000000;    /* Logonun asil siyahı */
}

/* Reset & Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--logo-dark);
}

/* Arka Plan Resmi ve Blur Efekti */
.blur-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/bg-cedric.png') no-repeat center center;
    background-size: cover;
    filter: blur(15px) brightness(0.25);
    opacity: 0.2;
    transform: scale(1.15);
    z-index: 1;
}

/* İçerik Katmanı */
.welcome-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 24px;
    color: #fff;
    text-align: center;
}

/* Üst Dil Alanı */
.lang-selector {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lang-selector span { cursor: pointer; opacity: 0.6; transition: 0.2s; }
.lang-selector span:hover { opacity: 1; }
.lang-selector span.active { opacity: 1; color: var(--logo-yellow); }

/* Logo ve Başlık alanı */
.brand-hero {
    margin-top: 10px;
}
.main-logo {
    width: 130px;
    height: auto;
    margin-bottom: 12px;
}
.brand-hero h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.subtitle {
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--logo-yellow); /* Alt başlık kurumsal sarı oldu */
}

/* Butonlar Grubu */
.action-buttons {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.btn:active {
    transform: scale(0.98);
}

/* Ana Buton: Kurumsal Kırmızı */
.btn-primary {
    background: var(--logo-red);
    color: #fff;
}
.btn-primary:hover { 
    background: #8A0E10; /* Hafif koyu kırmızı tonu */
    box-shadow: 0 6px 20px rgba(166, 18, 20, 0.4);
}

/* İkincil Buton: Şeffaf Cam Efekti + Hafif Sarı Akcent border */
.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid rgba(242, 183, 5, 0.25); /* Logodaki sarı tonunda ince border */
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { 
    background: rgba(242, 183, 5, 0.1);
    border-color: var(--logo-yellow);
}

/* Kampanya Butonu: Kurumsal Cheddar Sarısı */
.btn-discount {
    background: var(--logo-yellow);
    color: var(--logo-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-discount:hover { 
    background: #D9A304; 
    box-shadow: 0 6px 20px rgba(242, 183, 5, 0.3);
}

/* İndirim Rozeti: Kontrast için Kırmızı Yapıldı */
.badge {
    background: var(--logo-red);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Şeffaf Alt Kısım */
.agency-footer {
    font-size: 12px;
    opacity: 0.4;
    letter-spacing: 1px;
}
.brand-code {
    font-weight: 700;
}


/* --- İç Sayfalar Genel Stili --- */
.inner-page-body {
    background-color: #0d0d0d;
    color: #ffffff;
    min-height: 100%;
    overflow-y: auto; /* İç sayfalarda kaydırma aktif */
}

.main-content {
    padding: 100px 20px 40px 20px; /* Header ve FAB mesafesi için padding */
}

/* --- Global Header Tasarımı --- */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--logo-red);
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-mini-logo {
    width: 35px;
    height: auto;
}
.global-header h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

/* --- Kategori Grid (Kare Kartlar) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Yan yana 2 kare kart (Tam mobil uyumlu) */
    gap: 16px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.category-card {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    aspect-ratio: 1 / 1; /* Kartların tam kare kalmasını sağlar */
}

.category-card:active {
    transform: scale(0.96);
    border-color: var(--logo-yellow);
    background: #1c1c1c;
}

.card-icon-wrapper {
    width: 65%;
    height: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.card-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

/* --- Sağ Alttaki Hamburger FAB Menü --- */
.floating-menu-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--logo-red);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(166, 18, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.fab-main-btn:active { transform: scale(0.9); }

.fab-menu-content {
    background: #1c1c1c;
    border: 1px solid rgba(242, 183, 5, 0.3);
    border-radius: 14px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    
    /* Başlangıçta gizli ve aşağıda */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Menü Açık Durumu */
.fab-menu-content.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-menu-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s;
}

.fab-menu-content a:hover, .fab-menu-content a:active {
    background: rgba(242, 183, 5, 0.15);
    color: var(--logo-yellow);
}


/* --- Ürünler Sayfası Stilleri --- */
.category-header {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px auto;
    text-align: left;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--logo-yellow);
    border-left: 4px solid var(--logo-red);
    padding-left: 10px;
    letter-spacing: 0.5px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Ürün Kartı Ana Yapısı */
.product-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Mobil ekranlarda dikey daha estetik durur */
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: border-color 0.2s;
}

/* Görsel Alanı ve Rozetler */
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo / Rozet Konumlandırma */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between; /* Sağ ve sol köşelere yasla */
    pointer-events: none;
}

.badge-item {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
}

/* Favori Logosu */
.badge-item.favorite {
    background: #fff;
    color: var(--logo-red);
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* Kampanya Logosu */
.badge-item.campaign {
    background: var(--logo-red);
    color: #fff;
}

/* Ürün Bilgi Alanı */
.product-info-wrapper {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--logo-yellow);
    white-space: nowrap;
}

.product-ingredients {
    font-size: 13px;
    color: #b3b3b3;
    line-height: 1.5;
}

/* Alt Meta Bilgiler (Kalori, Alerjen) */
.product-meta-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.meta-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1f1f1f;
}

.meta-badge.calorie {
    color: #00f2fe; /* Kalori için soft neon mavi */
}

.meta-badge.allergen {
    color: #ff9f43; /* Alerjen uyarısı için soft turuncu */
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(255, 159, 67, 0.2);
}

.meta-badge.allergen:active {
    background: rgba(255, 159, 67, 0.1);
}

/* --- Yenilenen Sarı-Kırmızı Dil Butonları --- */
.lang-selector {
    align-self: flex-end;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4); /* Butonların arkadan kopması için koyu kapsül matlığı */
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 34px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800; /* Yazılar iyice okunsun */
    text-decoration: none;
    transition: all 0.25s ease;
}

/* TR Butonu - Kırmızı Tema */
.lang-btn.lang-tr {
    color: var(--logo-red);
    border: 2px solid var(--logo-red);
}
/* TR Aktifken: Dolu Kırmızı + Beyaz Yazı + Neon Kırmızı Işıma */
.lang-btn.lang-tr.active {
    background: var(--logo-red);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(166, 18, 20, 0.6);
    opacity: 1;
}

/* EN Butonu - Sarı Tema */
.lang-btn.lang-en {
    color: var(--logo-yellow);
    border: 2px solid var(--logo-yellow);
}
/* EN Aktifken: Dolu Sarı + Siyah Yazı + Neon Sarı Işıma */
.lang-btn.lang-en.active {
    background: var(--logo-yellow);
    color: var(--logo-dark);
    box-shadow: 0 0 12px rgba(242, 183, 5, 0.6);
    opacity: 1;
}

/* Aktif olmayan butonun dikkat dağıtmaması için hafif soluklaştırma */
.lang-btn:not(.active) {
    opacity: 0.5;
    background: transparent;
}
.lang-btn:not(.active):hover {
    opacity: 1;
    transform: scale(1.05);
}



/* --- Gelişmiş Alerjen Modalı Stilleri --- */
.allergen-modal-content {
    border: 2px solid #ff9f43 !important; /* Alerjen yumuşak turuncusu */
    box-shadow: 0 10px 30px rgba(255, 159, 67, 0.15);
    background: #141414 !important;
    animation: modalPopUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Modalı hafifçe büyüterek ekrana getiren tatlı animasyon */
@keyframes modalPopUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Dikkat çeken ikon animasyonu */
.allergen-icon-wrap {
    font-size: 42px;
    color: #ff9f43;
    margin-bottom: 12px;
    animation: pulseWarning 2.5s infinite;
}

@keyframes pulseWarning {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.allergen-modal-content h3 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.allergen-modal-content p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    padding: 0 5px;
}

/* Köşeli parantez içindeki alerjen listesini canlandıran vurgu sınıfı */
.allergen-list-highlight {
    display: inline-block;
    background: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid rgba(255, 159, 67, 0.2);
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* Tamam Butonunun Alerjen Modalıyla Renk Uyumu */
.allergen-modal-content .btn-confirm {
    background: #ff9f43;
    color: #111;
    transition: background 0.2s, transform 0.1s;
}
.allergen-modal-content .btn-confirm:active {
    transform: scale(0.97);
    background: #e08b35;
}












.custom-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: #161616; padding: 30px; border-radius: 16px; border: 1px solid var(--logo-yellow); width: 100%; max-width: 320px; text-align: center; }
.modal-content h3 { color: var(--logo-yellow); margin-bottom: 8px; }
.modal-content p { font-size: 14px; color: #aaa; margin-bottom: 15px; }
.modal-content input { width: 100%; padding: 12px; background: #222; border: 1px solid #333; border-radius: 8px; color: #fff; text-align: center; font-size: 16px; font-weight: 700; outline: none; margin-bottom: 15px; }
.modal-buttons { display: flex; gap: 10px; }
.modal-btn { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.btn-cancel { background: #333; color: #fff; }
.btn-confirm { background: var(--logo-red); color: #fff; }