body {
    background: #000;
    color: #fff;
}

/* KATEGORİ KARTI */
.cat-card {
    position: relative;
    cursor: pointer;
    display: block;
    background: #111;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.cat-card:hover {
    transform: translateY(-3px);
}

.cat-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* KATEGORİ ADI */
.overlay {
    background: #111;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 12px 10px;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 3.4rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

/* ===== MOBİL UYUM ===== */
@media (max-width: 576px) {
    /* Kartları 2 sütuna sabitlemek için (Bootstrap col kullanıyorsanız) */
    .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .cat-card {
        border-radius: 0.4rem;
    }

    .cat-card img {
        aspect-ratio: 1 / 1;    /* mobilde kare daha dengeli */
    }

    .overlay {
        font-size: 0.78rem;      /* uzun isimler sığsın */
        padding: 8px 6px;
        min-height: 3rem;
        line-height: 1.2;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 380px) {
    .overlay {
        font-size: 0.7rem;
        padding: 6px 4px;
        min-height: 2.8rem;
    }
}

.d-none {
    display: none !important;
}

.menu-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.splash-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

#splash > .position-absolute {
    z-index: 2;
}

.social-icons {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.btn-lang {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.6);
    min-width: 260px;
    text-align: center;
    text-transform: uppercase;
}

.btn-lang:hover {
    background-color: #2563eb;
}

.lang-btn {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 999;
}

/* STATUS MODAL */
#status-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

#status-modal-content {
    position: relative;
    width: 100%;
    max-width: 750px;
    min-width: 340px;
    height: auto;
    max-height: 92vh;
    background-color: #fff;
    color: #333;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 0;
    overflow: hidden;
    display: flex;
}

#status-modal-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: #e9ecef;
    color: #555;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#status-modal-close-btn:hover {
    background-color: #dee2e6;
    color: #000;
}

#status-iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* YEMEK DETAY MODAL */
.meal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.meal-modal .modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Swipe sırasında yumuşak geçiş */
.meal-modal .modal-content.swiping   { transition: none; }
.meal-modal .modal-content.snap-back { transition: transform 0.25s ease-out; }

.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;                    /* sol üst */
    right: auto;                   /* sağdaki eski konumu iptal */
    width: 46px;
    height: 46px;
    background: #e53935;           /* kırmızı */
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.8);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.modal-close-btn:hover {
    background: #ff1744;
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(255, 23, 68, 1);
}

.modal-close-btn:active {
    transform: scale(0.95);
    background: #b71c1c;
}

/* MOBİL */
@media (max-width: 576px) {
    .modal-close-btn {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-width: 2px;
    }
}

.modal-image-container {
    width: 100%;
    height: 50%;
    flex-shrink: 0;
    background-color: #111;
    position: relative;    /* oklar için gerekli */
}

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

.modal-info-container {
    height: 50%;
    background-color: #000;
    color: #fff;
    padding: 30px;
    overflow-y: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#modal-meal-name {
    font-size: 2rem;
    font-weight: bold;
}

#modal-meal-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 15px;
    max-width: 700px;
}

#modal-meal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-top: 20px;
}

/* YEMEK DETAY MODAL - MOBİL */
@media (max-width: 576px) {
    .modal-info-container {
        padding: 20px 15px;
    }

    #modal-meal-name {
        font-size: 1.4rem;
    }

    #modal-meal-description {
        font-size: 1rem;
        margin-top: 10px;
    }

    #modal-meal-price {
        font-size: 1.2rem;
        margin-top: 12px;
    }

    #status-modal-content {
        min-width: 0;
        width: 100%;
    }
}

/* ===== YEMEK KARTLARI ===== */
.menu-card {
    background: #111;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-3px);
}

.menu-card img,
.menu-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Yemek adı - 2 satırda kesilir */
.meal-name,
.menu-card .title,
.menu-card h5,
.menu-card h6 {
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    padding: 8px 6px 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    word-break: break-word;
    overflow-wrap: anywhere;
    min-height: 2.4rem;
}

/* Açıklama - 2 satırda kesilir */
.meal-desc,
.menu-card .desc,
.menu-card p {
    font-size: 0.8rem;
    color: #bbb;
    line-height: 1.25;
    padding: 0 6px 8px;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Fiyat */
.meal-price,
.menu-card .price {
    font-size: 0.95rem;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    padding-bottom: 10px;
}

/* ===== MOBİL ===== */
@media (max-width: 576px) {
    /* 2 sütun */
    .menu-row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 10px;
    }

    .menu-card {
        border-radius: 0.4rem;
    }

    .menu-card img,
    .menu-img {
        aspect-ratio: 1 / 1;
    }

    .meal-name,
    .menu-card .title,
    .menu-card h5,
    .menu-card h6 {
        font-size: 0.8rem;
        line-height: 1.15;
        min-height: 2rem;
        padding: 6px 4px 2px;
    }

    .meal-desc,
    .menu-card .desc,
    .menu-card p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        padding: 0 4px 6px;
    }

    .meal-price,
    .menu-card .price {
        font-size: 0.85rem;
        padding-bottom: 8px;
    }
}

/* Çok küçük ekran - tek sütun */
@media (max-width: 360px) {
    .menu-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   YENİ: NAVİGASYON (Kategori + Sayaç + Kapat)
   ============================================ */

/* Üst bar: kategori adı + sayaç */
.meal-modal .modal-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: flex-end;   /* sağa yasla */
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.meal-modal .modal-topbar > * {
    pointer-events: auto;
}

.meal-modal .nav-counter {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: background 0.3s;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    /* margin-right: auto;  ← SİLİNDİ */
}

.meal-modal .nav-counter span {
    white-space: nowrap;
}

/* ============================================
   RESİM KENARINDAKİ OK BUTONLARI
   ============================================ */
.meal-modal .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 22;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    line-height: 1;
}

.meal-modal .nav-arrow i {
    pointer-events: none;
    line-height: 1;
}

.meal-modal .nav-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.meal-modal .nav-arrow:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(0, 188, 212, 0.8);
}

.meal-modal .nav-arrow-left {
    left: 18px;
}

.meal-modal .nav-arrow-right {
    right: 18px;
}

.meal-modal .nav-arrow:disabled,
.meal-modal .nav-arrow.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* Fotoğraf notu (resmin altında) */
.meal-modal .photo-note {
    background: #111;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
    padding: 6px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

/* ===== NAV MOBİL UYUM ===== */
@media (max-width: 576px) {
    .meal-modal .modal-topbar {
        padding: 12px 14px;
    }
    .meal-modal .nav-counter {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    .meal-modal .nav-arrow {
        width: 46px;
        height: 46px;
        font-size: 1.5rem;
    }
    .meal-modal .nav-arrow-left  { left: 10px; }
    .meal-modal .nav-arrow-right { right: 10px; }
}

@media (max-width: 380px) {
    .meal-modal .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    .meal-modal .nav-counter {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}