/**
 * Cento — Mobil Uygulama Teması
 * Sadece body.mobile-app-theme + max-width 768px
 */

@media (max-width: 768px) {
    body.mobile-app-theme {
        --header-h: 58px;
        --app-tabbar-h: 72px;
        --app-radius: 18px;
        --app-radius-sm: 12px;
        --app-shadow: 0 8px 32px rgba(23, 20, 15, 0.08);
        --app-shell: #f2efe8;
        background: var(--app-shell);
    }

    body.mobile-app-theme .scroll-progress { height: 2px; }

    /* ─── App header ─── */
    body.mobile-app-theme .header {
        height: var(--header-h);
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 1px 0 rgba(23, 20, 15, 0.04);
    }

    body.mobile-app-theme .header.scrolled,
    body.mobile-app-theme .header.hide {
        transform: none !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }

    body.mobile-app-theme .header-inner {
        padding: 0 16px;
        height: var(--header-h);
    }

    body.mobile-app-theme .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    body.mobile-app-theme .logo-text {
        font-size: 1.05rem;
        color: var(--ink) !important;
    }

    body.mobile-app-theme .logo-sub {
        font-size: 0.52rem;
        color: var(--muted) !important;
        letter-spacing: 0.14em;
    }

    body.mobile-app-theme .nav,
    body.mobile-app-theme .nav-toggle {
        display: none !important;
    }

    /* ─── Main shell ─── */
    body.mobile-app-theme main {
        padding-bottom: calc(var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
    }

    body.mobile-app-theme .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* ─── Hero as app card ─── */
    body.mobile-app-theme .hero {
        min-height: auto !important;
        background: var(--app-shell);
        padding-top: calc(var(--header-h) + 10px);
    }

    body.mobile-app-theme .hero-compact {
        min-height: auto;
    }

    body.mobile-app-theme .hero-ambient { display: none; }

    body.mobile-app-theme .hero-split {
        padding: 8px 0 20px;
        gap: 18px;
    }

    body.mobile-app-theme .hero-visual {
        aspect-ratio: 16/10;
        border-radius: var(--app-radius);
        overflow: hidden;
        box-shadow: var(--app-shadow);
    }

    body.mobile-app-theme .hero-showcase {
        border-radius: var(--app-radius);
    }

    body.mobile-app-theme .hero-text {
        color: var(--ink);
        padding: 0 4px;
    }

    body.mobile-app-theme .hero-eyebrow {
        color: var(--brick);
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.mobile-app-theme .hero-eyebrow::before {
        background: var(--brick);
    }

    body.mobile-app-theme .hero-title {
        color: var(--ink);
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.mobile-app-theme .hero-desc {
        color: var(--muted);
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.mobile-app-theme .hero-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.mobile-app-theme .hero-actions .btn-primary {
        background: var(--ink);
        border-radius: 999px;
        box-shadow: 0 6px 20px rgba(23, 20, 15, 0.18);
    }

    body.mobile-app-theme .hero-actions .btn-ghost {
        border-radius: 999px;
        border-color: var(--line);
        color: var(--ink);
    }

    body.mobile-app-theme .hero-meta {
        border-top-color: var(--line);
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.mobile-app-theme .hero-meta-num { color: var(--brick); }
    body.mobile-app-theme .hero-meta-label { color: var(--muted); }

    /* ─── Sections as cards ─── */
    body.mobile-app-theme .section {
        padding: 20px 0;
    }

    body.mobile-app-theme .section-compact {
        padding: 16px 0;
    }

    body.mobile-app-theme .section > .container,
    body.mobile-app-theme .section-compact > .container {
        background: var(--white);
        border-radius: var(--app-radius);
        padding: 22px 16px;
        box-shadow: var(--app-shadow);
        margin-bottom: 12px;
    }

    body.mobile-app-theme .bg-dark.section > .container,
    body.mobile-app-theme .bg-dark.section-compact > .container,
    body.mobile-app-theme .bg-cream.section > .container,
    body.mobile-app-theme .trust-band.section > .container {
        background: transparent;
        box-shadow: none;
        padding-left: 14px;
        padding-right: 14px;
    }

    body.mobile-app-theme .bg-dark,
    body.mobile-app-theme .trust-band {
        border-radius: var(--app-radius);
        margin: 0 14px 12px;
        width: auto;
    }

    body.mobile-app-theme .bg-cream {
        background: transparent;
    }

    body.mobile-app-theme .bg-cream.section > .container {
        background: var(--white);
        box-shadow: var(--app-shadow);
    }

    body.mobile-app-theme .marquee-band {
        margin: 0 14px 12px;
        border-radius: var(--app-radius-sm);
        border: 1px solid var(--line);
        background: var(--white);
    }

    /* ─── Cards & grids ─── */
    body.mobile-app-theme .project-card,
    body.mobile-app-theme .service-pill,
    body.mobile-app-theme .stat-pill,
    body.mobile-app-theme .team-card,
    body.mobile-app-theme .value-card,
    body.mobile-app-theme .work-card {
        border-radius: var(--app-radius-sm);
        overflow: hidden;
    }

    body.mobile-app-theme .project-card {
        box-shadow: var(--app-shadow);
        background: var(--white);
    }

    body.mobile-app-theme .service-pill {
        border: 1px solid var(--line);
        border-radius: var(--app-radius-sm);
        box-shadow: none;
    }

    body.mobile-app-theme .service-row {
        border-radius: var(--app-radius-sm);
        margin-bottom: 8px;
        background: var(--white);
        padding: 16px;
        border: 1px solid var(--line);
    }

    body.mobile-app-theme .cta-band.section > .container,
    body.mobile-app-theme .cta-section > .container {
        background: var(--ink);
        color: var(--paper);
        border-radius: var(--app-radius);
    }

    /* ─── Page hero ─── */
    body.mobile-app-theme .page-hero {
        margin: 0 14px;
        border-radius: var(--app-radius);
        overflow: hidden;
        min-height: 220px !important;
        padding-top: calc(var(--header-h) + 16px) !important;
    }

    body.mobile-app-theme .page-hero + .section-compact > .container,
    body.mobile-app-theme .page-hero + .section > .container {
        margin-top: 12px;
    }

    body.mobile-app-theme .page-hero-index { display: none; }

    body.mobile-app-theme .breadcrumb {
        font-size: 0.72rem;
    }

    /* ─── Footer minimal ─── */
    body.mobile-app-theme .footer {
        display: none;
    }

    /* ─── Bottom tab bar ─── */
    body.mobile-app-theme .app-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10002;
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        gap: 2px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(23, 20, 15, 0.08);
        box-shadow: 0 -8px 32px rgba(23, 20, 15, 0.06);
    }

    body.mobile-app-theme .app-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 52px;
        padding: 4px 2px;
        color: var(--muted);
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-align: center;
        transition: color 0.25s, transform 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    body.mobile-app-theme .app-tab i {
        font-size: 1.15rem;
        transition: transform 0.25s;
    }

    body.mobile-app-theme .app-tab.is-active {
        color: var(--brick);
    }

    body.mobile-app-theme .app-tab.is-active i {
        transform: scale(1.08);
    }

    body.mobile-app-theme .app-tab:active {
        transform: scale(0.94);
    }

    body.mobile-app-theme .app-tab-center {
        margin-top: -22px;
    }

    body.mobile-app-theme .app-tab-fab {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(145deg, var(--brick) 0%, var(--brick-dark) 100%);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        box-shadow: 0 8px 24px rgba(175, 84, 48, 0.45);
        border: 3px solid var(--white);
        transition: transform 0.25s, box-shadow 0.25s;
    }

    body.mobile-app-theme .app-tab-center.is-active .app-tab-fab {
        box-shadow: 0 10px 28px rgba(175, 84, 48, 0.55);
        transform: scale(1.05);
    }

    body.mobile-app-theme .app-tab-center span:last-child {
        color: var(--brick);
        font-weight: 700;
    }

    /* ─── Contact & forms ─── */
    body.mobile-app-theme .contact-form,
    body.mobile-app-theme .contact-details {
        border-radius: var(--app-radius-sm);
    }

    body.mobile-app-theme .form-group input,
    body.mobile-app-theme .form-group textarea,
    body.mobile-app-theme .form-group select {
        border-radius: var(--app-radius-sm);
        border: 1px solid var(--line);
        background: var(--app-shell);
    }

    body.mobile-app-theme .btn {
        border-radius: 999px;
    }

    /* ─── Gallery ─── */
    body.mobile-app-theme .project-gallery-grid {
        gap: 8px;
    }

    body.mobile-app-theme .project-gallery-item {
        border-radius: var(--app-radius-sm);
    }
}

/* Tabbar hidden on desktop even if theme enabled */
@media (min-width: 769px) {
    body.mobile-app-theme .app-tabbar {
        display: none;
    }
}
