/* =====================================================================
   Lawyerupx — Mobil uygulama görünümü
   Sadece 760px ve altı ekranlarda (iOS / Android uygulaması, telefon
   tarayıcısı) devreye girer. Masaüstü görünümüne dokunmaz.
   ===================================================================== */

.app-topbar,
.app-home,
.app-tabbar {
    display: none;
}

@media (max-width: 760px) {
    body.app-mode {
        background: #f3f5f9;
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
        -webkit-tap-highlight-color: transparent;
        overscroll-behavior-y: none;
    }

    /* Web sitesi parçalarını telefonda gizle */
    body.app-mode .site-header,
    body.app-mode .footer,
    body.app-mode .scroll-top {
        display: none !important;
    }
    body.app-home-page > main:not(.app-home) {
        display: none !important;
    }

    /* ---------- Üst uygulama çubuğu ---------- */
    .app-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 60;
        padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
        background: rgba(16, 32, 51, .97);
        color: #fff;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .app-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        font-weight: 800;
        font-size: 17px;
        letter-spacing: -.01em;
        color: #fff;
    }
    .app-brand img {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        flex-shrink: 0;
    }
    .app-brand span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .app-icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .1);
        color: #fff;
        font-size: 18px;
        flex-shrink: 0;
    }
    .app-icon-btn:active { background: rgba(255, 255, 255, .2); }

    /* ---------- Ana sayfa ---------- */
    .app-home {
        display: block;
        padding: 0 0 12px;
    }

    .app-hero-card {
        position: relative;
        overflow: hidden;
        margin: 0;
        padding: 22px 20px 24px;
        background: linear-gradient(160deg, #102033 0%, #17324f 55%, #0f766e 140%);
        color: #fff;
        border-radius: 0 0 26px 26px;
    }
    .app-hero-card::after {
        content: "";
        position: absolute;
        right: -60px;
        top: -40px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(208, 178, 122, .28), transparent 70%);
        pointer-events: none;
    }
    .app-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .12);
        color: #e7d3ab;
        font-size: 12px;
        font-weight: 600;
    }
    .app-hero-card h1 {
        margin: 14px 0 8px;
        font-size: 28px;
        line-height: 1.15;
        letter-spacing: -.02em;
        color: #fff;
    }
    .app-hero-card p {
        margin: 0;
        color: #c9d6e3;
        font-size: 14.5px;
        line-height: 1.55;
    }
    .app-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
        position: relative;
        z-index: 1;
    }
    .app-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        border-radius: 14px;
        font-weight: 700;
        font-size: 15px;
        transition: transform .12s ease, opacity .12s ease;
    }
    .app-btn:active { transform: scale(.97); opacity: .9; }
    .app-btn-primary { background: #d0b27a; color: #102033; }
    .app-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
    .app-btn-dark { background: var(--navy, #102033); color: #fff; }

    .app-section {
        padding: 22px 16px 0;
    }
    .app-section-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 12px;
    }
    .app-section-head h2 {
        margin: 0;
        font-size: 18px;
        letter-spacing: -.01em;
    }
    .app-section-head a {
        font-size: 13px;
        font-weight: 700;
        color: var(--teal, #0f766e);
    }

    /* Modül kutucukları */
    .app-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .app-tile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 12px;
        min-height: 112px;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .05);
        transition: transform .12s ease;
    }
    .app-tile:active { transform: scale(.96); }
    .app-tile i {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-size: 17px;
    }
    .app-tile b {
        font-size: 13.5px;
        line-height: 1.2;
        color: var(--ink, #111827);
    }
    .app-tile small {
        font-size: 11.5px;
        line-height: 1.3;
        color: var(--muted, #64748b);
        margin-top: -6px;
    }
    .tone-blue i   { background: #eff6ff; color: #2563eb; }
    .tone-amber i  { background: #fffbeb; color: #d97706; }
    .tone-teal i   { background: #ecfdf5; color: #0f766e; }
    .tone-violet i { background: #f5f3ff; color: #7c3aed; }
    .tone-gold i   { background: #fbf6ec; color: #9a7b3f; }
    .tone-rose i   { background: #fff1f2; color: #e11d48; }

    /* Yatay kaydırmalı avantaj kartları */
    .app-carousel {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -16px;
        padding: 2px 16px 6px;
        scrollbar-width: none;
    }
    .app-carousel::-webkit-scrollbar { display: none; }
    .app-perk {
        flex: 0 0 72%;
        scroll-snap-align: start;
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 16px;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .05);
    }
    .app-perk i {
        font-size: 20px;
        color: var(--teal, #0f766e);
        margin-top: 2px;
    }
    .app-perk b { display: block; font-size: 14.5px; }
    .app-perk span { display: block; font-size: 12.5px; color: var(--muted, #64748b); line-height: 1.45; margin-top: 2px; }

    /* Fiyat kartı */
    .app-price {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 18px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .05);
    }
    .app-price-label { font-size: 12px; font-weight: 700; color: var(--muted, #64748b); text-transform: uppercase; letter-spacing: .04em; }
    .app-price-amount { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
    .app-price-amount small { font-size: 13px; font-weight: 600; color: var(--muted, #64748b); }
    .app-price-sub { font-size: 12.5px; color: var(--muted, #64748b); margin-top: 4px; }
    .app-price .app-btn { min-height: 44px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }

    /* Liste satırları */
    .app-list {
        background: #fff;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .05);
    }
    .app-list a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 16px;
        font-size: 15px;
        font-weight: 600;
    }
    .app-list a + a { border-top: 1px solid #eef1f5; }
    .app-list a:active { background: #f6f8fb; }
    .app-list a > i:first-child { width: 22px; text-align: center; color: var(--navy, #102033); }
    .app-list a > span { flex: 1; min-width: 0; }
    .app-list a > span small { display: block; font-size: 12px; font-weight: 500; color: var(--muted, #64748b); }
    .app-list a > i:last-child { color: #c0c8d4; font-size: 13px; }

    .app-copy {
        text-align: center;
        font-size: 12px;
        color: #94a3b8;
        padding: 22px 16px 6px;
    }

    /* ---------- Alt sekme çubuğu ---------- */
    .app-tabbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid #e5e9f0;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .app-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 52px;
        border-radius: 12px;
        font-size: 10.5px;
        font-weight: 600;
        color: #8391a5;
    }
    .app-tabbar a i { font-size: 19px; }
    .app-tabbar a.active { color: var(--navy, #102033); }
    .app-tabbar a.active i { color: var(--teal, #0f766e); }
    .app-tabbar a.app-tab-cta i {
        width: 46px;
        height: 46px;
        margin-top: -22px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #d0b27a;
        color: #102033;
        font-size: 18px;
        box-shadow: 0 8px 18px rgba(16, 32, 51, .25);
        border: 3px solid #fff;
    }
    .app-tabbar a.app-tab-cta { color: var(--navy, #102033); }

    /* Alt sayfalar: içerik başlığı uygulama çubuğunun altında kalsın */
    body.app-mode:not(.app-home-page) .page-hero {
        padding-top: 28px;
    }
}
