/* Sabit background */
body.menu-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(240, 235, 224, 0.65), rgba(240, 235, 224, 0.65)),
        url("../images/J1.webp");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

body.menu-page {
    margin: 0;
    padding: 0;
    background-color: var(--cream);
}

.menu-section {
    padding: 140px 5% 80px 5%;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
}

.menu-header {
    margin-bottom: 50px;
}

.menu-subtitle {
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.12em;
    color: var(--crimson);
    display: block;
    margin-bottom: 12px;
}

.menu-title {
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: 0.03em;
    color: var(--ink);
    margin: 0;
}

/* Kategori filtreleri */
.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 70px;
    padding-top: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(23, 23, 23, 0.08);
    color: var(--ink);
    padding: 12px 28px;
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson);
    transform: translateY(-4px);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Yemek Kartları (Article) Stili */
.menu-item.full-width-style {
    width: 100%;
    max-width: 380px;
    height: 100%;
}

.full-width-style .item-inner {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.full-width-style:hover .item-inner {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.full-width-style .item-img-wrapper {
    width: 100%;
    height: 250px;
    flex: 0 0 250px;
    overflow: hidden;
}

.full-width-style .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.full-width-style .item-text-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.full-width-style .item-front {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.full-width-style .item-name {
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--ink);
    margin: 0;
    line-height: 1.1;
}

.full-width-style .item-price {
    font-family: 'The Seasons', serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--crimson);
    background: rgba(169, 17, 16, 0.08);
    padding: 2px 12px;
    border-radius: 20px;
    margin: 0;
}

.full-width-style .item-details p {
    font-family: 'Inria Serif', serif;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

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

/* Mobil Görünüm */
@media (max-width: 768px) {
    .menu-section {
        padding-top: 90px;
    }
    .menu-title {
        font-size: 32px;
    }
    .menu-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 20px;
        margin-left: -5%;
        margin-right: -5%;
        scrollbar-width: none;
    }
    .menu-filters::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex: 0 0 auto;
        padding: 10px 22px;
        font-size: 13px;
        border-radius: 30px;
        white-space: nowrap;
    }
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .full-width-style .item-inner {
        flex-direction: row;
        height: 130px;
        border-radius: 12px;
        align-items: center;
    }
    .full-width-style .item-img-wrapper {
        width: 120px;
        height: 100%;
        flex: 0 0 120px;
        border-radius: 12px 0 0 12px;
    }
    .full-width-style .item-text-wrapper {
        padding: 10px 14px;
        justify-content: center;
    }
    .full-width-style .item-front {
        margin-bottom: 6px;
        gap: 4px;
    }
    .full-width-style .item-name {
        font-size: 16px;
    }
    .full-width-style .item-price {
        font-size: 14px;
        padding: 2px 8px;
    }
    .full-width-style .item-details p {
        font-size: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}