/* style.css - Exact Match Redesign */

:root {
    --bg-color: whitesmoke;
    /* Default Background */
    --accent-light: #f3d5b5;
    /* Light accent color */
    --card-bg: #ffffff;
    --text-dark: #583101;
    /* Dark / Text & Branding */
    --text-muted: #8e8e8e;
    --purple-overlay-start: rgba(88, 49, 1, 0.85);
    /* Dark color with opacity */
    --purple-overlay-end: rgba(88, 49, 1, 0.4);
    /* Dark color with lower opacity */
    --badge-purple: #583101;
    /* Using Dark color for badges/accents */
    --divider: #e0ddd5;
    --link-color: #583101;
    /* Using Dark color for links */
}

body {
    background-color: var(--bg-color);
    font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Other Font Family fallback */
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* App Container - Restricts width on desktop to resemble a mobile app */
.app-container {
    max-width: 600px;
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.bg-light-cream {
    background-color: var(--accent-light) !important;
}

/* Top bar / Logo */
.lang-btn {
    color: var(--text-dark);
    font-size: 0.85rem;
    background: transparent;
    border: none;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 0;
    color: #3d3d3d;
}

/* Sticky Category Nav */
.category-nav-wrapper {
    background-color: var(--bg-color);
    /* Matches the app container */
    z-index: 1020;
    /* Bootstrap sticky-top is 1020 */
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
}

.category-scroll-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.category-scroll-nav::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.cat-nav-link {
    color: var(--text-dark);
    background-color: var(--accent-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-block;
}

.cat-nav-link:hover,
.cat-nav-link.active {
    background-color: var(--text-dark) !important;
    color: var(--bg-color) !important;
}

/* Category Blocks */
.menu-accordion {
    padding: 0 16px;
}

.category-block {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.category-header {
    position: relative;
    height: 120px;
    /* Exact height to match large cards */
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-header:active {
    transform: scale(0.98);
}

.cat-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--purple-overlay-start) 0%, var(--purple-overlay-end) 100%);
    z-index: 2;
}

.cat-title {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    margin: 0;
    padding-left: 24px;
}

/* Item Lists */
.category-body {
    background-color: transparent;
}

.menu-item-row {
    border-bottom: 1px solid var(--divider);
}

.menu-item-row:last-child {
    border-bottom: none;
}

.item-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* slight shadow for the image matching the reference */
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography inside item rows */
.item-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.badge-yeni {
    background-color: var(--badge-purple);
    font-weight: 500;
    font-size: 0.65rem;
    padding: 0.35em 0.65em;
    letter-spacing: 0.5px;
}

.item-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-link {
    font-size: 0.85rem;
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--link-color);
    display: inline-block;
    width: fit-content;
    padding-bottom: 1px;
    transition: opacity 0.2s;
}

.menu-item-row:hover .item-link {
    opacity: 0.7;
}

/* Detail Modal Overrides */
.detail-img {
    height: 350px;
    object-fit: cover;
}

.detail-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.detail-price {
    font-size: 1.2rem;
    color: var(--badge-purple);
}

.modal-content {
    background-color: var(--bg-color);
}

.btn-close.detail-close {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

/* Improve mobile modal UX to avoid full screen and add margins */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 1.5rem;
    }

    .modal-content {
        border-radius: 1rem !important;
    }
}

/* Responsive Logo */
.qr-logo {
    max-width: 85vw;
    /* Mobil: Yatayda ekranın büyük kısmını kaplayabilir, sağa sola taşmaz */
    height: 125px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .qr-logo {
        width: 575px;
        height: 175px;
        max-width: none;
        max-height: none;
        /* Desktop */
    }
}