/* ==========================================================================
   LuxeMenu — Tanıtım Sayfası ÖZEL MOBİL TASARIM KATMANI (mobile.css)
   --------------------------------------------------------------------------
   Bu dosya style.css'in ÜSTÜNE yüklenir ve yalnızca mobil/dokunmatik
   ekranlarda devreye girer. Amaç:
     • Dokunmatik ekranda "takılı hover" yüzünden görsel büyüyüp tasarımın
       kaymasını (yatay taşma) TAMAMEN engellemek.
     • Sade, app benzeri, tek sütunlu premium bir mobil deneyim sunmak.
   ========================================================================== */

/* ==========================================================================
   0) YATAY SÜRÜKLEME KİLİDİ
   'overflow-x: clip' görsel taşmayı keser ama dokunmatik ekranda parmakla
   yana çekince tarayıcı yine de yatay "esneme/kayma" (rubber-band) yapabilir.
   Aşağıdaki kurallar dokunma hareketini yalnızca dikey (+ pinch-zoom) ile
   sınırlar ve yatay overscroll'u kapatır → sayfa yanlara kaymaz, sabit kalır.
   ========================================================================== */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        position: relative;
        overscroll-behavior-x: none;
        /* Yalnızca dikey kaydırma + erişilebilirlik için pinch-zoom serbest;
           yatay parmak sürüklemesi (yan kaydırma) devre dışı. */
        touch-action: pan-y pinch-zoom;
    }
}

/* Gerçek mobil cihazlarda (User-Agent) ekran genişliğinden bağımsız uygula. */
body.is-mobile,
html:has(body.is-mobile) {
    overflow-x: hidden;
    max-width: 100%;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
}

/* Meşru yatay kaydırma gereken küçük iç bileşenler serbest kalsın
   (ör. mockup içi kategori şeridi). Sayfa geneli kilitliyken bunlar çalışır. */
@media (max-width: 768px) {
    .screen-cat-pill-container,
    .demo-modal {
        touch-action: auto;
    }
}

/* ==========================================================================
   1) DOKUNMATİK CİHAZLAR — "yapışan hover" efektlerini nötrle
   Telefona/karta dokununca büyüyen 3D transform'lar ekranda takılıp
   layout'u kaydırıyordu. Bu blok bunları kesin olarak devre dışı bırakır.
   ========================================================================== */
@media (hover: none), (pointer: coarse) {

    /* --- Hero telefon mockup'ları: tüm hover büyümelerini iptal et --- */
    .phone-mockup-container:hover .phone-left,
    .phone-mockup-container:hover .phone-right,
    .phone-mockup-container:hover .phone-center,
    .phone-mockup-container .phone-left:hover,
    .phone-mockup-container .phone-center:hover,
    .phone-mockup-container .phone-right:hover,
    .phone-mockup-container:hover .phone-mockup:not(:hover) {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }

    /* --- Canlı önizleme galerisi: dokununca büyüyüp taşmasın --- */
    .demo-gallery-item:hover {
        transform: none !important;
        box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.28) !important;
        border-color: var(--border-color) !important;
    }
    .demo-gallery-item:hover img {
        transform: none !important;
    }

    /* --- Kart/panel hover büyümeleri (kaydırmayı önle) --- */
    .glass-panel:hover,
    .legal-card:hover,
    .feature-card:hover,
    .timeline-card:hover .timeline-number {
        transform: none !important;
    }
}

/* ==========================================================================
   2) MOBİL DÜZEN (≤768px) — sade, tek sütun, app benzeri tasarım
   ========================================================================== */
@media (max-width: 768px) {

    /* --- Genel: yatay taşmayı garanti altına al --- */
    html, body {
        overflow-x: clip;
        max-width: 100%;
    }

    .container {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    /* ---------- HERO: telefonları tek, sabit ve güvenli göster ---------- */
    .hero {
        min-height: auto;
        padding-top: 6.5rem;
        padding-bottom: 2.5rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .badge {
        align-self: center;
    }
    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    .hero-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    /* 3D perspektifi ve absolute konumları kaldır → hiçbir şey taşmaz/kaymaz.
       Yalnızca ortadaki telefon, akışa oturmuş şekilde gösterilir. */
    .phone-mockup-container {
        perspective: none;
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 250 / 500;
        margin: 2rem auto 0;
    }
    .phone-mockup {
        transition: none;
    }
    .phone-left,
    .phone-right {
        display: none !important;
    }
    .phone-center {
        position: static;
        transform: none !important;
        width: 100%;
        height: auto;
        aspect-ratio: 250 / 500;
        margin: 0 auto;
        opacity: 1 !important;
        box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.35),
                    0 0 30px rgba(179, 142, 71, 0.12);
    }
    .phone-glow {
        width: 320px;
        height: 320px;
    }

    /* ---------- Başlık & tipografi ölçekleme ---------- */
    .hero-title {
        font-size: 2rem;
        line-height: 1.22;
    }
    .hero-title br,
    .section-title br,
    .contact-info .section-title br {
        display: none;
    }
    .hero-subtitle {
        font-size: 0.98rem;
    }
    .section {
        padding: 3.5rem 0;
    }
    .section-header {
        margin-bottom: 2.25rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .legal-title,
    .demo-cta-title {
        font-size: 1.6rem;
    }

    /* ---------- Kartlar: iç boşluk sadeleştirme ---------- */
    .contact-form,
    .contrast-card,
    .feature-card,
    .pricing-card,
    .ai-demo-card,
    .testimonial-card,
    .legal-card,
    .contact-card {
        padding: 1.6rem 1.3rem;
    }
    .ai-console-screen {
        padding: 1.3rem;
        min-height: 220px;
    }

    /* Köşedeki mutlak konumlu etiketler başlığa binmesin */
    .contrast-tag {
        position: static;
        display: inline-block;
        margin-bottom: 0.9rem;
    }
    .pricing-card .badge {
        position: static !important;
        align-self: flex-start;
        margin: 0 0 0.5rem 0 !important;
    }

    /* ---------- Canlı önizleme galerisi: tek sütun, temiz ---------- */
    .demo-gallery {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 1.1rem;
    }
    /* Dokunmatikte "büyütmek için tıklayın" ipucu her zaman görünür olsun */
    .demo-gallery-hint {
        opacity: 1;
        transform: none;
    }
    .demo-cta-panel {
        padding: 2.25rem 1.5rem;
        gap: 1.75rem;
    }
    .demo-cta-title {
        font-size: 1.55rem;
    }

    /* ---------- İstatistikler ---------- */
    .stat-number {
        font-size: 1.85rem;
    }
    .stat-item {
        padding: 1rem 0.5rem;
    }

    /* ---------- Fiyatlandırma ---------- */
    .price-value {
        font-size: 2rem;
    }

    /* ---------- Ambient ışıkları ekran içinde tut ---------- */
    .ambient-glow {
        filter: blur(85px);
    }
    .glow-gold-1 { width: 240px; height: 240px; left: -50px; }
    .glow-gold-2 { width: 280px; height: 280px; right: -60px; }
    .glow-gold-3 { width: 240px; height: 240px; left: 28%; }

    /* ---------- Görsel büyütme modalı: mobil için tam ekran hizası ---------- */
    .demo-modal {
        padding: 1rem;
    }
    .demo-modal-img {
        max-width: 94vw;
        max-height: 86vh;
    }
    .demo-modal-close {
        top: 0.9rem;
        right: 1rem;
    }
}

/* ==========================================================================
   3) ÇOK KÜÇÜK TELEFONLAR (≤380px)
   ========================================================================== */
@media (max-width: 380px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.55rem; }
    .legal-title,
    .demo-cta-title { font-size: 1.45rem; }
    .logo { font-size: 1.25rem; }
    .logo-icon { width: 1.7rem; height: 1.7rem; }
    .phone-mockup-container { max-width: 220px; }
}

/* ==========================================================================
   4) MOBİL SABİT ALT AKSİYON ÇUBUĞU (app benzeri)
   Gerçek mobil cihazlarda (body.is-mobile) ekranın altında sabit durur.
   ========================================================================== */
.mobile-cta-bar {
    display: none;
}

body.is-mobile .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -6px 24px rgba(24, 24, 27, 0.06);
}

body.is-mobile .mobile-cta-bar .btn {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

/* Alt çubuk içeriğin son kısmını örtmesin diye footer'a boşluk bırak */
body.is-mobile footer {
    padding-bottom: 6rem;
}

/* Sağ alttaki chatbot balonu, alt çubuğun üstüne çıksın (çakışmayı önle) */
body.is-mobile #luxebot-launcher,
body.is-mobile .luxebot-launcher,
body.is-mobile .chatbot-launcher {
    bottom: 5.25rem !important;
}

/* ==========================================================================
   5) YAPAY ZEKA MENÜ ASİSTANI — mobil sadeleştirme (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    .ai-assistant-wrapper {
        gap: 1.5rem;
    }
    .ai-demo-card {
        padding: 1.5rem 1.3rem;
        gap: 1.15rem;
    }
    .ai-demo-card h3 {
        font-size: 1.25rem;
    }
    .ai-sample-item {
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }
    #btn-run-ai {
        padding: 0.95rem 1rem;
    }

    /* Konsol ekranı: mobilde kompakt, taşmasız */
    .ai-console-screen {
        padding: 1.2rem;
        min-height: 200px;
        border-radius: 0.85rem;
    }
    .ai-console-output {
        font-size: 0.82rem;
    }

    /* Besin değerleri: donut üstte, kartlar altta — ortalı ve şık */
    .ai-nutri-chart-wrapper {
        flex-direction: column;
        gap: 1.1rem;
        padding: 1rem 0.85rem;
        text-align: center;
    }
    .ai-donut {
        width: 92px;
        height: 92px;
    }
    .ai-donut-inner {
        width: 70px;
        height: 70px;
    }
    .ai-nutri-labels {
        width: 100%;
    }
    /* Uzun alerjen/açıklama metinleri satıra sığsın, taşmasın */
    .ai-console-output p,
    .ai-console-output span {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ==========================================================================
   6) KARŞILAŞTIRMA TABLOSU → mobilde ŞIK KART DÜZENİ (≤768px)
   Yatay kaydırmayı (min-width:850px) tamamen kaldırır; her satır, başlığı ve
   üç seçeneği etiketli olarak gösteren müstakil bir karta dönüşür.
   Sütun sırası sabit olduğundan etiketler nth-of-type ile CSS'ten verilir
   (HTML değişikliği gerekmez).
   ========================================================================== */
@media (max-width: 768px) {
    .comparison-container {
        overflow-x: visible;
        border: none;
        background: transparent;
        box-shadow: none;
        margin-top: 2.5rem;
    }

    .comparison-table {
        min-width: 0;
        width: 100%;
        display: block;
    }
    .comparison-table thead {
        display: none; /* başlık satırı gizlenir, etiketler karta gömülür */
    }
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    /* Her satır = bir kart */
    .comparison-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 1.15rem;
        margin-bottom: 1.25rem;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    }
    .comparison-table tr:last-child {
        margin-bottom: 0;
    }

    .comparison-table td {
        border: none !important;
        padding: 0.85rem 1.15rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    /* 1. hücre: özellik adı = kart başlığı */
    .comparison-table td:first-child {
        background: rgba(24, 24, 27, 0.03);
        padding: 1.1rem 1.15rem;
        border-bottom: 1px solid var(--border-color) !important;
    }
    .comparison-feature-name {
        font-size: 1.02rem;
    }
    .comparison-feature-desc {
        margin-top: 0.35rem;
    }

    /* 2–4. hücreler: küçük etiket + durum değeri */
    .comparison-table td:not(:first-child)::before {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }
    .comparison-table td:nth-of-type(2)::before { content: "Kağıt Menü"; }
    .comparison-table td:nth-of-type(3)::before { content: "Sıradan QR (PDF)"; }
    .comparison-table td:nth-of-type(4)::before { content: "LuxeMenu AI SaaS"; }

    /* Durum satırları arasında ince ayraç */
    .comparison-table td:nth-of-type(3),
    .comparison-table td:nth-of-type(4) {
        border-top: 1px solid var(--border-color) !important;
    }

    /* Vurgulu (LuxeMenu) hücre öne çıksın */
    .comparison-table td.highlight {
        background: rgba(var(--primary-gold-rgb), 0.06);
    }
    .comparison-table td.highlight::before {
        color: var(--primary-gold);
    }

    /* Durum metinleri: emoji + metin düzgün hizalı, sığsın */
    .comparison-table .comp-status-yes,
    .comparison-table .comp-status-no,
    .comparison-table .comp-status-partial {
        font-size: 0.85rem;
        line-height: 1.4;
        align-items: flex-start;
    }
}
