/**
 * My Cafe — Müşteri giriş hub (index.php)
 * Renkler: mycafe-theme-unify + menu-web / admin panel (#0f8ca8 / #0b4058)
 */

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

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

body.landing-app {
    min-height: 100dvh;
    min-height: 100vh;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--mc-page-bg, #f1f5f9);
    color: var(--mc-text, #111827);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body.landing-app.land-modal-open {
    overflow: hidden;
}

.land-shell {
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.land-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1.75rem;
    overflow: hidden;
    background: var(--mc-card-bg, #ffffff);
    border: 1px solid var(--mc-border-strong, #e5e7eb);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

/* Üst bölüm — menü hero / admin başlık gradyanı */
.land-head {
    text-align: center;
    padding: 1.85rem 1.35rem 1.45rem;
    background: linear-gradient(135deg, var(--mc-hero-dark, #0f172a) 0%, var(--land-brand-dark) 55%, var(--land-brand) 100%);
    color: #fff;
    position: relative;
}

.land-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.08));
    pointer-events: none;
}

.land-logo-wrap {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.land-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.land-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.land-tagline {
    position: relative;
    z-index: 1;
    margin-top: 0.45rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
}

.land-table-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
}

/* 3×3 grid — açık zemin, koyu belirgin yazılar */
.land-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.15rem 1.25rem 1rem;
    background: var(--mc-sheet-bg, #f8fafc);
}

.land-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 100px;
    padding: 0.7rem 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    color: var(--land-brand-dark);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, background 0.15s;
}

.land-tile:hover:not(:disabled),
.land-tile:active:not(:disabled) {
    border-color: var(--land-brand);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 140, 168, 0.18);
}

.land-tile:active:not(:disabled) {
    transform: scale(0.97);
}

.land-tile:disabled,
.land-tile.land-tile-muted {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.land-tile:disabled .land-tile-label,
.land-tile.land-tile-muted .land-tile-label {
    color: #64748b;
}

.land-tile-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.3rem;
    color: var(--land-brand);
    background: var(--mc-brand-soft, rgba(15, 140, 168, 0.14));
}

.land-tile-icon-g {
    font-size: 1.2rem;
}

.land-tile-label {
    font-size: 0.6875rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.015em;
    color: var(--land-brand-dark);
    max-width: 100%;
    word-break: break-word;
}

.land-foot {
    padding: 0 1.25rem 1.1rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mc-muted, #6b7280);
    background: var(--mc-sheet-bg, #f8fafc);
}

.land-foot a {
    color: var(--land-brand-dark);
    text-decoration: none;
}

.land-foot a:hover {
    color: var(--land-brand);
}

/* Modals */
.land-modal[hidden] {
    display: none !important;
}

.land-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

@media (min-width: 480px) {
    .land-modal {
        align-items: center;
        padding: 1rem;
    }
}

.land-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.land-modal-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    color: #111827;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 480px) {
    .land-modal-sheet {
        border-radius: 1.25rem;
    }
}

.land-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, var(--mc-hero-dark, #0f172a), var(--land-brand-dark));
    color: #fff;
}

.land-modal-head h2 {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.land-modal-x {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.land-modal-body {
    padding: 1rem 1.15rem;
}

.land-modal-foot {
    padding: 0 1.15rem 1.15rem;
}

.land-modal-foot-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.5rem;
}

.land-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.4rem;
}

.land-input,
.land-textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    margin-bottom: 0.75rem;
}

.land-input:focus,
.land-textarea:focus {
    outline: none;
    border-color: var(--land-brand);
    box-shadow: 0 0 0 3px var(--mc-brand-soft, rgba(15, 140, 168, 0.15));
}

.land-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.land-preset {
    padding: 0.4rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--land-brand-dark);
    cursor: pointer;
}

.land-preset:hover {
    border-color: var(--land-brand);
    background: var(--mc-brand-soft, rgba(15, 140, 168, 0.12));
}

.land-feedback {
    min-height: 1.25rem;
    font-size: 0.875rem;
    color: var(--land-brand-dark);
    font-weight: 700;
}

.land-wifi-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.land-wifi-k {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #475569;
}

.land-wifi-v {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    word-break: break-all;
}

.land-copy {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--land-brand);
    cursor: pointer;
}

.land-hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.45;
}

.land-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
}

.land-btn-primary {
    background: linear-gradient(135deg, var(--land-brand), var(--land-brand-dark));
    color: #fff;
    box-shadow: 0 4px 14px var(--mc-brand-glow, rgba(15, 140, 168, 0.35));
}

.land-btn-ghost {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
}

.land-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(120%);
    z-index: 200;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--land-brand-dark);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(11, 64, 88, 0.35);
    transition: transform 0.25s ease;
    pointer-events: none;
    max-width: calc(100% - 2rem);
    text-align: center;
}

.land-toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 360px) {
    .land-head {
        padding: 1.5rem 1rem 1.25rem;
    }

    .land-grid {
        gap: 0.55rem;
        padding: 1rem;
    }

    .land-tile {
        min-height: 92px;
        padding: 0.55rem 0.3rem;
    }

    .land-tile-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .land-tile-label {
        font-size: 0.625rem;
    }

    .land-title {
        font-size: 1.35rem;
    }

    .land-tagline {
        font-size: 0.875rem;
    }
}

@media (min-width: 480px) {
    .land-tile {
        min-height: 108px;
    }

    .land-tile-label {
        font-size: 0.75rem;
    }

    .land-title {
        font-size: 1.625rem;
    }
}
