/* ============================
   La Floria — Dijital Menü CSS
   ============================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Arkaplan: index.php'den inline style ile inject edilir */
    background-color: #1a0808;
    color: #fff;
    position: relative;
}

/* Koyu overlay — arkaplan üzerine */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* ============================
   Container
   ============================ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 24px 16px 40px;
    margin: 0 auto;
}

/* ============================
   Header
   ============================ */
.header {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px 0;
}

.logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 8px;
    /* Çok katmanlı siyah gölge — açık arkaplanlarda bile logo net görünür */
    filter:
        drop-shadow(0 0 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: none;
    /* logo varsa gizli, logo yoksa gösterilir */
}

/* ============================
   Dil Seçici
   ============================ */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.lang-btn {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s;
}

.lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-btn.active {
    background: var(--accent, #D52B2B);
    color: #fff;
    border-color: var(--accent, #D52B2B);
}

/* RTL desteği */
[dir="rtl"] .container,
[dir="rtl"] .menu-grid {
    direction: rtl;
}

[dir="rtl"] .card-title {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.site-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

/* ============================
   Menu Grid
   ============================ */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.row {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.row-half .category-card {
    flex: 1;
    min-height: 0;
}

.row-half {
    align-items: stretch;
}

.row-half .category-card .card-inner {
    height: 100%;
}

.row-full {
    flex-direction: column;
}

/* ============================
   Category Card
   ============================ */
.category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:active {
    transform: scale(0.97);
}

.card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 28px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    min-height: 90px;
    transition: background 0.3s ease;
}

.card-wide .card-inner {
    min-height: 100px;
    padding: 32px 16px;
}

.category-card:hover .card-inner {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================
   Card Title
   ============================ */
.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    text-align: center;
}

.card-title-lg {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 2px;
}

/* ============================
   Footer
   ============================ */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 360px) {
    .card-title {
        font-size: 1.1rem;
    }

    .card-title-lg {
        font-size: 1.4rem;
    }

    .card-inner {
        padding: 22px 12px;
        min-height: 75px;
    }
}

@media (min-width: 481px) {
    .container {
        padding-top: 40px;
    }

    .card-inner {
        min-height: 100px;
    }

    .card-wide .card-inner {
        min-height: 110px;
    }
}

/* ============================
   Animasyon — Sayfa açılışında kartlar yukarıdan gelsin
   ============================ */
.row {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.row:nth-child(1) {
    animation-delay: 0.1s;
}

.row:nth-child(2) {
    animation-delay: 0.2s;
}

.row:nth-child(3) {
    animation-delay: 0.3s;
}

.row:nth-child(4) {
    animation-delay: 0.4s;
}

.row:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}