/* ==========================================================================
   1. TEMA DEĞİŞKENLERİ (CSS VARIABLES)
   ========================================================================== */
:root {
    --bg-body: #eaeaea;
    --bg-container: #f8f9fa;
    --bg-card: #ffffff;
    --bg-topbar: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent: #444444; 
    --border-card: transparent;
    --shadow: rgba(0, 0, 0, 0.04);
}

body.dark-theme {
    --bg-body: #0d0d11;
    --bg-container: #111116;
    --bg-card: #1c1c22;
    --bg-topbar: #16161c;
    --text-main: #f5f5f7;
    --text-muted: #a1a1aa;
    --accent: #e5b869; 
    --border-card: rgba(255, 255, 255, 0.04);
    --shadow: rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   2. GENEL AYARLAR VE ESNEK MOBİL KONTEYNER
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-body); 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.mobile-container {
    width: 100%;
    max-width: 430px; 
    min-height: 100vh;
    background-color: var(--bg-container);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   SABİT ÜST BAR (STICKY TOPBAR)
   ========================================================================== */
.sticky-topbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 430px;
    background: var(--bg-topbar);
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.sticky-topbar.show { transform: translateY(0); }

.topbar-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    padding: 8px 0 4px 0;
    border-bottom: 1px solid var(--border-card);
}

.topbar-categories { display: flex; gap: 15px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; }
.topbar-categories::-webkit-scrollbar { display: none; }

.topbar-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 4px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.topbar-item.active {
    color: var(--accent);
}

/* ==========================================================================
   3. HERO & SLIDER
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vw; 
    max-height: 300px;
    overflow: hidden;
}

.slider-container { width: 100%; height: 100%; position: relative; z-index: 1; }
.slider { display: flex; width: 200%; height: 100%; transition: transform 0.6s ease-in-out; }
.slide { width: 50%; height: 100%; object-fit: cover; }

.slider-arrow-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff; width: 36px; height: 36px; border-radius: 50%; font-size: 12px;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 6;
    opacity: 0.7; transition: all 0.2s ease;
}
.slider-arrow-btn:active { transform: translateY(-50%) scale(0.9); background: rgba(0, 0, 0, 0.6); }
.slider-arrow-btn.prev { left: 12px; }
.slider-arrow-btn.next { right: 12px; }

.theme-toggle-btn {
    position: absolute; top: 16px; right: 16px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff; width: 40px; height: 40px; border-radius: 50%; font-size: 16px;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 5;
    transition: transform 0.2s, background-color 0.3s;
}
.theme-toggle-btn:active { transform: scale(0.9); }

body.dark-theme .theme-toggle-btn { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); color: #e5b869; }
body:not(.dark-theme) .theme-toggle-btn { background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(0, 0, 0, 0.05); color: #333333; }

/* ==========================================================================
   YENİ DÜZ BAŞLIK VE LOGO ALANI (KUTUSUZ & SOLA HİZALI)
   ========================================================================== */
.brand-profile-section {
    padding: 32px 16px 12px 16px; /* Biraz daha nefes alanı */
    background: var(--bg-container);
}

.brand-info-plain {
    display: flex;
    align-items: center;
    gap: 20px; /* Logo ile yazı arasındaki boşluk */
    width: 100%;
}

.brand-logo-plain {
    width: 64px; /* Logoyu 48px'den 64px'e büyüttük */
    height: 64px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25); /* Biraz daha derinlik */
    flex-shrink: 0;
    overflow: hidden;
}

.brand-logo-plain .main-logo-img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* 'cover' yerine 'contain' kullan ki logo tam sığsın */
    display: block;
}

.brand-text-plain {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Yazı satırları arası biraz açıldı */
}

.brand-name-plain {
    font-size: 24px; /* İsmi 20px'den 24px'e büyüttük (daha çarpıcı) */
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.location-plain {
    font-size: 13px; /* Konum bilgisini de biraz büyüttük */
    font-weight: 500;
    color: var(--text-muted);
}

/* ==========================================================================
   4. ARAMA ALANI
   ========================================================================== */
.search-section { display: flex; padding: 16px 16px 4px 16px; gap: 10px; align-items: center; }
.search-bar-container { flex: 1; position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; color: var(--text-muted); font-size: 14px; }
.search-bar-container input {
    width: 100%; padding: 12px 16px 12px 42px; border-radius: 24px; border: var(--border-card);
    background: var(--bg-card); color: var(--text-main); box-shadow: 0 2px 8px var(--shadow); font-size: 13px; outline: none;
}

/* ==========================================================================
   🔥 ULTRA VURUCU VE BÜYÜK FIÇI BİRA ALANI STİLLERİ
   ========================================================================== */
.draft-beer-featured-section {
    padding: 14px 16px;
    background: var(--bg-container);
}

.featured-beer-card-premium {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(229,184,105,0.08) 100%);
    border-radius: 28px;
    padding: 16px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1.5px solid rgba(229,184,105,0.25); /* Dikkat çekici gold çizgi hattı */
    position: relative;
    overflow: hidden;
}

/* Telefon ekranında kartın arkasından tatlı bir pub parlaması efekti */
.featured-beer-card-premium::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 150px; height: 150px;
    background: rgba(229,184,105,0.05);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.beer-card-img-large {
    width: 115px; /* Fotoğraf ciddi oranda büyütüldü */
    height: 115px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.beer-card-img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beer-card-details-large {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 4px;
}

.beer-badge-premium {
    align-self: flex-start;
    background: #e5b869; /* Tamamen dolu gold arka plan ile ultra dikkat çekici */
    color: #111116; /* Ters kontrast ile anında okunur */
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 6px rgba(229,184,105,0.3);
}

body:not(.dark-theme) .beer-badge-premium {
    background: #111116;
    color: #ffffff;
    box-shadow: none;
}

.beer-title-large {
    font-size: 17px; /* Başlık büyütüldü */
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
    margin-top: 2px;
}

.beer-price-large {
    font-size: 26px; /* Fiyat devasa boyuta getirildi, ıskalamak imkansız */
    font-weight: 800;
    color: #e5b869;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-top: 2px;
    text-shadow: 0 2px 8px rgba(229,184,105,0.15);
}

body:not(.dark-theme) .beer-price-large {
    color: #2e7d32;
    text-shadow: none;
}
/* ==========================================================================
   5. KATEGORİLER (SADECE TEXT RENK DEĞİŞTİRİR - SEÇİLİ ÇERCEVE KALDIRILDI)
   ========================================================================== */
.categories-section {
    display: flex; gap: 10px; padding: 12px 16px 16px 16px; overflow-x: auto; scrollbar-width: none;
    cursor: grab; user-select: none; -webkit-user-select: none;
}
.categories-section::-webkit-scrollbar { display: none; }

.category-card {
    flex: 0 0 85px; background: var(--bg-card); padding: 6px; border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    box-shadow: 0 2px 6px var(--shadow); border: 1.5px solid var(--border-card);
}
/* Çerçeve yanma olayı tamamen silindi, sadece ismin rengi değişecek */
.category-card.active span { color: var(--accent) !important; font-weight: 600; }
.category-card img { width: 100%; height: 56px; border-radius: 14px; object-fit: cover; pointer-events: none; }
.category-card span { font-size: 11px; font-weight: 500; color: var(--text-main); text-align: center; width: 100%; }

/* ==========================================================================
   6. YEMEK LİSTESİ VE KARTLARI
   ========================================================================== */
.menu-section { padding: 10px 16px 20px 16px; }
.category-group-block { margin-bottom: 30px; scroll-margin-top: 100px; }
.category-title { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; border-left: 4px solid var(--accent); padding-left: 8px; }

.menu-item { 
    display: flex; background: var(--bg-card); border-radius: 20px; padding: 10px; gap: 12px; 
    margin-bottom: 12px; box-shadow: 0 3px 10px var(--shadow); border: 1px solid var(--border-card); 
    cursor: pointer;
}
.item-img-container { position: relative; width: 95px; height: 95px; flex-shrink: 0; }
.item-img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }

.item-details { display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding: 2px 0; }
.item-details h3 { font-size: 14px; font-weight: 600; color: var(--text-main); }
.item-desc { font-size: 11px; color: var(--text-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ==========================================================================
   7. KURUMSAL FOOTER ALANI
   ========================================================================== */
.menu-footer {
    background: var(--bg-card); padding: 30px 20px; text-align: center; border-top: 1px solid var(--border-card);
    margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.footer-logo h3 { font-size: 15px; color: var(--text-main); font-weight: 600; }
.footer-socials { display: flex; gap: 20px; }
.social-icon {
    width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 18px; color: #ffffff; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.2s;
}
.social-icon:active { transform: scale(0.9); }
.social-icon.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.phone { background: #2e7d32; }
.social-icon.email { background: #c62828; }
.footer-copy { font-size: 10px; color: var(--text-muted); }

/* ==========================================================================
   8. PREMIUM AÇILIR PENCERE (EKRANIN ORTASINDA POP-UP)
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    z-index: 200; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-content {
    width: 90%; max-width: 380px; background: var(--bg-container); border-radius: 28px;
    overflow: hidden; position: relative; transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-content { transform: scale(1); }

.modal-close-btn {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); color: #ffffff; border: none; font-size: 20px;
    cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.modal-img-container { width: 100%; height: 200px; }
.modal-img-container img { width: 100%; height: 100%; object-fit: cover; }

.modal-body-details { padding: 20px; color: var(--text-main); }
.modal-body-details h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.modal-divider { height: 1px; margin: 12px 0; border-bottom: 1px solid rgba(128,128,128,0.1); }
.modal-body-details h3 { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.modal-desc { font-size: 12px; color: var(--text-main); line-height: 1.45; margin-bottom: 16px; }

.modal-extra-info { display: flex; gap: 8px; }
.info-tag {
    background: var(--bg-card); padding: 5px 10px; border-radius: 10px; font-size: 10px;
    font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 4px;
    border: 1px solid var(--border-card); box-shadow: 0 2px 6px var(--shadow);
}
.info-tag i { color: var(--accent); }

/* ==========================================================================
   YÜZEN EN ÜSTE DÖN BUTONU
   ========================================================================== */
.floating-btn {
    position: fixed; bottom: 24px; right: calc(50% - 195px); width: 46px; height: 46px; border-radius: 50%;
    background: #ffffff !important; color: #2e7d32 !important; border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); cursor: pointer; display: flex;
    justify-content: center; align-items: center; font-size: 16px; z-index: 99;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

@media (max-width: 430px) { .floating-btn { right: 20px; } }
.floating-btn.show { opacity: 1; visibility: visible; }
.floating-btn:active { transform: scale(0.92); background: #f5f5f7 !important; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #111116; z-index: 9999; display: flex;
    justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; }
.preloader-content { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-logo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    /* Gölge efekti (box-shadow) tamamen kaldırıldı */
    animation: pulseLogo 2s infinite ease-in-out;
}
.preloader-placeholder { font-size: 42px; font-weight: 700; color: #e5b869; }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(229, 184, 105, 0.2); border-top-color: #e5b869; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* ==========================================================================
   İLK AÇILIŞ DUYURU POP-UP (SADECE GÖRSEL ODAKLI YENİ YAPI)
   ========================================================================== */
.welcome-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.welcome-overlay.open { opacity: 1; visibility: visible; }

.welcome-content-image-only {
    width: 88%; max-width: 360px; position: relative;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: scale(0.8); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
}
.welcome-overlay.open .welcome-content-image-only { transform: scale(1); }

.welcome-promo-img {
    width: 100%; height: auto; object-fit: contain;
    border-radius: 24px; pointer-events: none;
}

.welcome-close-btn {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.6); color: #ffffff; border: 1px solid rgba(255,255,255,0.2);
    font-size: 20px; cursor: pointer; z-index: 10;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: background 0.2s;
}
.welcome-close-btn:active { background: rgba(0, 0, 0, 0.8); }
/* --- ÖNE ÇIKAN ÜRÜN ROZET & AÇIKLAMA STİLLERİ --- */
.beer-badge-large {
    display: inline-block;
    width: fit-content;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent, #e5b869);
    background: rgba(229, 184, 105, 0.12);
    border: 1px solid rgba(229, 184, 105, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.beer-desc-large {
    font-size: 12px;
    color: var(--text-muted, #a1a1aa);
    line-height: 1.4;
    margin-top: 3px;
    margin-bottom: 8px;
}