/* ==========================================================
   LA VINIA – MENU.CSS (FINAL VERSION CLEAN)
   ✔ Desktop tamamen korunur
   ✔ Mobile %100 hizalama (NR sola – Preis sağa)
   ✔ Page-title kompakt
   ✔ Tablo tam ekran
   ✔ Çakışmalar tamamen kaldırıldı
   ========================================================== */


/* ==========================================================
   PAGE TITLE (SPEISEKARTE – DESKTOP)
   ========================================================== */
.page-title {
    text-align: center;
    margin: 2rem auto 1.5rem auto;
}

.page-title h1 {
    font-family: "Times New Roman", serif;
    font-size: 2rem;
    letter-spacing: 0.25em;
    margin: 0 0 0.4rem 0;
}

.page-title .divider {
    width: 60px;
    height: 2px;
    margin: 0.3rem auto 0.6rem auto;
    background: var(--gold);
}

.page-title p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.5rem auto 0 auto;
    line-height: 1.45;
}


/* ==========================================================
   PANEL (DESKTOP)
   ========================================================== */
.panel {
    background: radial-gradient(circle at top left, #191919 0, #090909 55%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 45px rgba(0,0,0,0.75);
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    margin: 0 auto 1.75rem auto;
    max-width: 1060px;
}

.panel-title {
    font-family: "Times New Roman","Georgia",serif;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}


/* ==========================================================
   TABLE – GLOBAL (DESKTOP)
   ========================================================== */

.menu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

/* Kolon genişlikleri */
.menu-table th:nth-child(1),
.menu-table td.menu-no {
    width: 55px;
}

.menu-table th:nth-child(3),
.menu-table td.menu-price {
    width: 70px;
}

/* TABLE HEADERS */
.menu-table thead th {
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0 0 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* TABLE BODY */
.menu-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.menu-table tbody tr:last-child {
    border-bottom: none;
}

.menu-table td {
    padding: 0.35rem 0;
    vertical-align: top;
}

/* NR */
.menu-no {
    color: var(--text-muted);
    white-space: nowrap;
    vertical-align: middle;
}

/* YEMEK İSMİ */
.menu-name {
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
}

/* AÇIKLAMA */
.menu-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* FİYAT */
.menu-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: var(--gold-soft);
    vertical-align: middle;
}

/* Safari'de görünür hover için: td üzerine uygulanmalı */
.menu-table tbody tr:hover td {
    background-color: rgba(213,165,70,0.10) !important;
    cursor: pointer;
    transition: background-color 0.15s ease-out;
}

/* Gizli link tüm satırı tıklanabilir yapar */
.row-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    text-decoration: none;
}

/* ============================================================
   📱 MOBILE OPTIMIZATION (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* PAGE-TITLE ULTRA KOMPAKT */
    .page-title {
        margin: 0 !important;
        padding: 0.8rem 0.5rem !important;
    }

    .page-title h1 {
        font-size: 1.4rem !important;
        margin: 0 0 0.3rem 0 !important;
        letter-spacing: 0.18em !important;
    }

    .page-title .divider {
        width: 40px !important;
        height: 2px !important;
        margin: 0.2rem auto 0.4rem auto !important;
    }

    .page-title p {
        font-size: 0.9rem !important;
        line-height: 1.25 !important;
        margin: 0 auto !important;
        max-width: 90%;
    }


    /* <main> boşluk temizliği */
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    main > section {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }


    /* PANEL TAM EKRAN */
    .panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0.8rem 0 !important;
        border-radius: 0 !important;
    }


    /* TABLE TAM EKRAN */
    .menu-table {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        table-layout: fixed !important;
    }

    .menu-table td,
    .menu-table th {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        font-size: 1rem !important;
    }


    /* NR – SOLA TAM YAPIŞIK */
    .menu-no {
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        width: 35px !important;
    }


    /* GERICHT ORTA SÜTUN */
    .menu-table td:nth-child(2) {
        padding-left: 8px !important;
        padding-right: 8px !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .menu-name {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }

    .menu-desc {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }


    /* PREIS – SAĞA TAM YAPIŞIK */
    .menu-price {
        text-align: right !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
        width: 60px !important;
        white-space: nowrap !important;
    }
}
