/* ═══════════════════════════════════════════════════════════
   SOSYALBOOST — css/mobile.css
   Kapsamlı Mobil Uyumluluk Düzeltmeleri
   ═══════════════════════════════════════════════════════════ */

/* ── TEMEL MOBİL DÜZELTMELER ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Tüm container'lar taşmasın */
.container,
.ft-grid-wrap,
.ft-filter-inner,
.ft-upgrade-inner,
.nav-inner,
.foot-inner,
.hero-inner,
.hqs-wrap,
.sec-head {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── NAVBAR MOBİL ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-inner {
    padding: 0 16px;
    height: var(--nav-h);
    gap: 12px;
  }

  .logo { font-size: 20px; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }

  .nav-menu { display: none; }
  .nav-actions .btn-outline,
  .nav-actions .btn-primary,
  .nav-actions .btn-nav-outline,
  .nav-actions .btn-nav-primary,
  .nav-actions .btn-admin { display: none; }

  .nav-toggle { display: flex !important; align-items: center; justify-content: center; }

  /* Mobile menü açıkken üstteki butonlar görünsün */
  #navMenu.mobile-open + .nav-actions .btn-outline,
  #navMenu.mobile-open ~ .nav-actions .btn-outline { display: none; }

  /* Sepet ve sorgula ikonları küçülsün */
  .btn-icon { width: 36px; height: 36px; font-size: 14px; }

  /* Mobile menü style */
  #navMenu.mobile-open {
    top: var(--nav-h);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 12px;
  }
}

/* ── HERO MOBİL ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero, .hero-section {
    padding: 20px 16px 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr !important;
    padding: calc(var(--nav-h) + 20px) 16px 32px !important;
    gap: 28px !important;
  }

  .hero-content h1 { font-size: 28px !important; line-height: 1.2; }
  .hero-desc { font-size: 14px !important; }

  .hero-right {
    display: block !important; /* Hızlı sipariş mobilde görünsün */
    max-width: 100%;
    width: 100%;
  }

  .hero-cta-btns { flex-direction: column; gap: 10px; }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }

  .hero-stats {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .hstat-sep { width: 100%; height: 1px; display: block; }
}

/* ── HIZLI SİPARİŞ FORMU MOBİL ─────────────────────────── */
@media (max-width: 820px) {
  .hqs-wrap, .quick-order-card {
    border-radius: 16px;
    padding: 16px !important;
    margin: 0 auto;
    max-width: 100%;
  }

  .hqs-pkg-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px;
  }

  .hqs-pkg-card {
    padding: 10px 8px !important;
  }

  .hqs-pkg-qty { font-size: 13px !important; }
  .hqs-pkg-price { font-size: 12px !important; }

  .hqs-input-wrap input,
  .hqs-btn {
    font-size: 14px;
  }

  .hqs-btn {
    padding: 13px !important;
  }
}

/* ── ÜCRETSİZ ARAÇLAR MOBİL ────────────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .ft-hero { padding: 48px 16px 56px; }
  .ft-hero h1 { font-size: 26px !important; }
  .ft-hero p { font-size: 14px; }

  /* Stats — yatay scroll yerine alt alta */
  .ft-stats {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    width: 100%;
  }
  .ft-stat-sep { width: 80%; height: 1px; }

  /* Adımlar */
  .ft-steps { gap: 6px; }
  .ft-step { padding: 7px 12px; font-size: 12px; }
  .ft-step-arrow { display: none; }

  /* Platform filtre barı */
  .ft-filter-inner {
    padding: 8px 12px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ft-filter-inner::-webkit-scrollbar { display: none; }

  .ftf-btn {
    padding: 7px 14px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Kart grid */
  .ft-grid-wrap {
    grid-template-columns: 1fr !important;
    padding: 0 12px 40px;
    gap: 14px;
  }

  /* Kart form - input + buton alt alta */
  .ft-card-form {
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 12px;
  }

  .ft-input-wrap { width: 100%; }
  .ft-btn {
    width: 100%;
    justify-content: center;
    padding: 12px !important;
  }

  /* Trust notları */
  .ft-trust {
    flex-direction: column;
    gap: 6px;
    padding: 8px 16px 14px;
  }

  /* Upgrade banner */
  .ft-upgrade-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 16px;
    gap: 20px;
  }
  .ft-upgrade-inner > div:last-child {
    justify-content: center;
  }
}

/* ── PAKETLER MOBİL ─────────────────────────────────────── */
@media (max-width: 768px) {
  .packs-grid { grid-template-columns: 1fr !important; }
  .pack-card { padding: 20px 16px; }

  .pack-features li { font-size: 13px; }

  section { padding: 44px 0; }
  .sec-title { font-size: 26px !important; }
  .sec-sub { font-size: 14px; }
}

/* ── PLATFORM SAYFASI MOBİL ─────────────────────────────── */
@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }

  .platform-card { padding: 12px 8px; }
  .platform-icon { font-size: 24px; }
  .platform-name { font-size: 11px; }
}

@media (max-width: 480px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── SEPET SAYFASI MOBİL ────────────────────────────────── */
@media (max-width: 768px) {
  .cart-wrap,
  .cart-layout { 
    flex-direction: column !important;
    gap: 20px;
    padding: 0 12px;
  }

  .cart-items { width: 100% !important; }
  .cart-summary { width: 100% !important; }

  .cart-item {
    flex-direction: column;
    gap: 12px;
  }

  .cart-item-img { width: 60px; height: 60px; }
}

/* ── ÖDEME SAYFASI MOBİL ────────────────────────────────── */
@media (max-width: 768px) {
  .odeme-layout,
  .checkout-layout {
    flex-direction: column !important;
    padding: 0 12px;
    gap: 20px;
  }

  .odeme-main, .odeme-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .payment-method-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }

  .payment-method-card { padding: 12px; }
}

/* ── GİRİŞ / KAYIT SAYFASI MOBİL ───────────────────────── */
@media (max-width: 768px) {
  .auth-card,
  .login-card,
  .register-card {
    padding: 24px 16px !important;
    border-radius: 16px;
    margin: 20px 12px;
    max-width: 100%;
  }

  .auth-wrap {
    padding: 20px 0;
    min-height: auto;
  }
}

/* ── HESABIM SAYFASI MOBİL ──────────────────────────────── */
@media (max-width: 768px) {
  .hesabim-layout,
  .account-layout {
    flex-direction: column !important;
    gap: 16px;
    padding: 0 12px;
  }

  .hesabim-sidebar {
    width: 100% !important;
    position: static !important;
  }

  .hesabim-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hesabim-nav a {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 10px !important;
    font-size: 12px;
  }

  .hesabim-content { width: 100% !important; }

  .orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .orders-table { min-width: 600px; }
}

/* ── FOOTER MOBİL ───────────────────────────────────────── */
@media (max-width: 768px) {
  .foot-inner,
  .foot-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 40px 16px 24px;
  }

  .foot-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 16px;
    font-size: 12px;
  }

  .foot-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ── BLOG MOBİL ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 0 12px;
  }
}

/* ── MODAL MOBİL ────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal-box {
    border-radius: 20px 20px 0 0 !important;
    padding: 24px 16px !important;
    width: 100%;
    max-width: 100% !important;
  }
}

/* ── GENEL BUTON / FORM MOBİL ───────────────────────────── */
@media (max-width: 480px) {
  .btn-cta-primary,
  .btn-cta-secondary,
  .btn-outline,
  .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important; /* iOS zoom önleme */
  }

  /* Padding küçültme */
  .container { padding: 0 12px; }
  section { padding: 36px 0; }
}

/* ── ANNOUNCE BAR MOBİL ─────────────────────────────────── */
@media (max-width: 768px) {
  .announce-bar { font-size: 11px; padding: 8px 36px 8px 12px; }
  .announce-inner { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .announce-timer { font-size: 12px; }
  .announce-badge { display: none; }
}

/* ── YÖN BUTON GELİŞTİRME (Touch Target) ───────────────── */
@media (max-width: 768px) {
  a, button {
    -webkit-tap-highlight-color: transparent;
  }

  /* Minimum 44px touch target */
  .btn-icon,
  .nav-toggle,
  .ftf-btn,
  .faq-item {
    min-height: 44px;
  }

  .faq-q { padding: 14px 16px !important; }
}

/* ── STICKY FILTER BAR MOBİL ────────────────────────────── */
@media (max-width: 768px) {
  .ft-filter-bar {
    top: var(--nav-h, 60px);
  }
}

/* ── SCROLLBAR GİZLE (MOBİL) ────────────────────────────── */
@media (max-width: 768px) {
  .ft-filter-inner,
  .orders-table-wrap {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ft-filter-inner::-webkit-scrollbar,
  .orders-table-wrap::-webkit-scrollbar { display: none; }
}
