/* ════════════════════════════════════════════════════════════════════════
   HIZIX CV — MOBILE FIXES v1 (12 May 2026)
   ──────────────────────────────────────────────────────────────────────
   Bu dosya MEVCUT CSS'leri DEĞIŞTIRMEZ, sadece üzerine ekler.
   index.html ve builder/index.html'e <link> ile eklenir.

   Çözülen sorunlar:
   1. Yatay scroll (saga sola kayma)
   2. Builder preview (resume ready) bozuk görünme
   3. AI Reference dil chip listesi mobilde kötü → 50+ dil özet
   4. Testimonials mobilde gözükmüyor / kötü görünüyor
   ════════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────────
   1. YATAY SCROLL ENGELLE — Tüm sayfada
   ──────────────────────────────────────────────────────────────────── */
html, body {
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100vw;
}
* { max-width: 100%; box-sizing: border-box; }
img, video, iframe, svg, canvas { max-width: 100%; height: auto; }

/* Watermark dönmüş haldeyken viewport dışına taşmasın */
.bd-watermark, .bd-watermark-2 {
  contain: layout paint;
  max-width: 100%;
}

/* ────────────────────────────────────────────────────────────────────
   2. PRICING — AI Reference 50+ dil özetı
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Tüm dil chip'lerini gizle, tek bir özet göster */
  .price-ref-langs .price-ref-lang { display: none; }
  .price-ref-langs::before {
    content: '🌍 50+ languages · EN · TR · ES · DE · FR · ZH · AR · JA · …';
    display: inline-block;
    padding: 8px 14px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--purple, #7c3aed);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
  }

  /* Reference kart layout düzeltmesi */
  .price-ref {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.5rem !important;
    gap: 1.25rem !important;
  }
  .price-ref > div:last-child {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .price-ref .price-feats { grid-row: auto !important; grid-column: 1 !important; }
  .price-ref::before { left: 16px !important; transform: none !important; }
}

/* Tablet — 23 chip yine gözüksün ama küçük */
@media (min-width: 641px) and (max-width: 900px) {
  .price-ref-langs .price-ref-lang {
    font-size: 10.5px;
    padding: 2px 7px;
  }
}

/* ────────────────────────────────────────────────────────────────────
   3. BUILDER PREVIEW — "Your resume is ready" mobile fix
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Preview container'ı tam genişlik kullanmalı, taşmamalı */
  .bd-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 0 !important;
  }

  /* Rail (template listesi) yatay scroll'a düşsün, yukarda dursun */
  .bd-rail {
    position: static !important;
    margin: 0 -1rem 0.5rem !important;
    padding: 0 1rem !important;
  }
  .bd-rail-list {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
    padding-bottom: 0.5rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bd-rail-list::-webkit-scrollbar { display: none !important; }

  /* Stage (paper) ortalanmış, max width viewport-1rem */
  .bd-stage { order: 1 !important; margin: 0 auto !important; width: 100% !important; }

  /* Paper — aspect-ratio koru, içeriği fit et */
  .bd-paper {
    max-width: 100% !important;
    max-height: 70vh !important;
    aspect-ratio: 612 / 792 !important;
    margin: 0 auto !important;
  }
  .bd-paper-inner { overflow: hidden !important; }
  .bd-paper-inner svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* Watermark mobilde küçülsün, viewport içinde kalsın */
  .bd-watermark span { font-size: 0.85rem !important; }
  .bd-watermark-2 span { font-size: 0.65rem !important; }
  .bd-watermark-stamp {
    padding: 0.5rem 1rem !important;
    font-size: 0.7rem !important;
  }
  .bd-watermark-stamp small { font-size: 0.5rem !important; }

  /* Swipe nav butonlar paper içinde durağan kalsın */
  .bd-swipe-nav {
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
  .bd-swipe-prev { left: 8px !important; }
  .bd-swipe-next { right: 8px !important; }

  /* Match card (hire-rate score) — bd-preview-header altında */
  .bd-preview-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .bd-match-card {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Locked pill mobilde küçülsün */
  .bd-locked-pill {
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
    top: 10px !important;
    right: 10px !important;
  }
}

/* Çok küçük telefonlar */
@media (max-width: 380px) {
  .bd-paper { max-height: 65vh !important; }
  .bd-watermark span { font-size: 0.75rem !important; }
  .bd-watermark-2 span { font-size: 0.55rem !important; }
}

/* ────────────────────────────────────────────────────────────────────
   4. TESTIMONIALS — Mobilde garanti gözüksün
   ──────────────────────────────────────────────────────────────────── */
.testimonial-carousel {
  display: block !important;
  visibility: visible !important;
}

@media (max-width: 640px) {
  .testimonial-carousel {
    padding: 0 1rem !important;
    margin: 2rem auto 0 !important;
  }
  .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }
  .testimonial-images {
    height: 280px !important;
    max-width: 240px !important;
    margin: 0 auto !important;
  }
  .tc-image {
    height: 280px !important;
    max-width: 240px !important;
  }
  .tc-image img { border-radius: 16px !important; }
  .testimonial-content {
    gap: 1rem !important;
    text-align: center !important;
    padding: 0 !important;
  }
  .testimonial-name {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }
  .testimonial-role {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }
  .testimonial-quote {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
  .testimonial-controls {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .testimonial-btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* Çok küçük telefonlar */
@media (max-width: 380px) {
  .testimonial-images, .tc-image {
    height: 240px !important;
    max-width: 200px !important;
  }
  .testimonial-quote { font-size: 0.9rem !important; }
}

/* ────────────────────────────────────────────────────────────────────
   5. EKSTRA: Nav & hero mobilde tertiplensin
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container, .container-wide { padding-left: 1rem !important; padding-right: 1rem !important; }
  .nav-inner { padding-left: 1rem !important; padding-right: 1rem !important; }
  /* CTA butonlar dokunma alanı ≥44px */
  .btn { min-height: 44px !important; }
  .btn-lg { min-height: 48px !important; }
}

/* ────────────────────────────────────────────────────────────────────
   6. EKSTRA: Builder steps (voice/photo/template selection)
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .bd-container, .bd-container-wide {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .bd-title { font-size: 1.5rem !important; line-height: 1.25 !important; }
  .bd-sub   { font-size: 0.95rem !important; line-height: 1.5 !important; }
  .bd-stage-cta .btn { width: 100% !important; }
}

/* ────────────────────────────────────────────────────────────────────
   7. EKSTRA: hero swipable, content padded
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem !important; overflow: hidden; }
  .hero-actions { flex-direction: column !important; gap: 0.75rem !important; width: 100%; }
  .hero-actions .btn { width: 100% !important; }
}
