/**
 * BADO Solutions - Mobil ve Tablet Uyumluluk (responsive.css)
 * -----------------------------------------------------------
 * Mobil cihazlarda header butonlarını (EN/TR ve REQUEST BRIEFING)
 * açılır menüye taşıyan ve sıfır taşma (no overflow) sağlayan mimari.
 */

/* ============================================================
   1. MASAÜSTÜ VARSAYILANLARI (Desktop Defaults)
   ============================================================ */
.mobile-nav-actions {
  display: none !important;
}

.mobile-menu-toggle {
  display: none;
}

/* ============================================================
   2. TABLET / DİZÜSTÜ (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cloud-arch-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .datasheet-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .main-nav {
    gap: 20px;
    margin: 0 16px;
  }

  .nav-link {
    font-size: 1rem;
  }
}

/* ============================================================
   3. AKILLI TELEFON / MOBİL (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Genel Taşmayı Engelleyen Kalkan */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Üst Header: Sadece Logo ve Hamburger Menü */
  .site-header {
    height: 70px;
  }

  .header-inner {
    height: 70px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .brand-logo-link {
    height: 50px;
  }

  .brand-logo-img {
    height: 50px;
    max-width: 160px;
    object-fit: contain;
  }

  /* Masaüstü Butonlarını Header'dan Kaldır (Açılır Menüye Taşındı) */
  .desktop-header-actions {
    display: none !important;
  }

  /* Mobil Menü Butonu (☰) */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(2, 24, 43, 0.7);
    border: 1px solid rgba(92, 225, 230, 0.35);
    color: var(--color-radar-cyan);
    font-size: 1.35rem;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-menu-toggle:hover {
    background: rgba(92, 225, 230, 0.15);
    border-color: var(--color-radar-cyan);
  }

  /* Mobil Açılır Menü (Kapalıyken ASLA Ekranda Görünmez veya Taşma Yapmaz) */
  .main-nav {
    display: none !important;
  }

  .main-nav.active {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(1, 20, 46, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 20px 40px;
    gap: 16px;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    animation: mobileNavFadeIn 0.25s ease-out forwards;
  }

  @keyframes mobileNavFadeIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    color: #e2e8f0;
  }

  /* Mobil Menü İçine Taşınan EN/TR ve REQUEST BRIEFING Bölümü */
  .mobile-nav-actions {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(92, 225, 230, 0.2);
    width: 100%;
  }

  .mobile-nav-actions .lang-switch {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
  }

  .mobile-nav-actions .lang-btn {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  .mobile-nav-actions .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* Hero Alanı ve Nokta Göstergeleri */
  .hero-section {
    min-height: calc(100vh - 70px);
    padding-bottom: 40px;
  }

  .hero-video-switcher {
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    gap: 8px;
  }

  .video-switch-dot {
    width: 8px;
    height: 8px;
  }

  .hero-cta-group {
    width: 100%;
    padding: 0 16px;
    display: flex;
    justify-content: center;
  }

  .hero-step-btn {
    width: 100%;
    max-width: 320px;
    font-size: 0.88rem;
    padding: 13px 18px;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  /* Bölümler ve Başlıklar */
  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-wrap: break-word;
    letter-spacing: 0.02em;
  }

  .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  /* Kartlar */
  .capability-card {
    padding: 24px 18px;
  }

  .capability-title {
    font-size: 1.4rem;
  }

  .datasheet-card {
    padding: 24px 18px;
  }

  .radar-app-card {
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .radar-app-icon-box {
    width: 72px;
    height: 72px;
  }

  .radar-app-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .radar-app-actions .btn {
    width: 100%;
    text-align: center;
  }

  .radar-step-card {
    padding: 20px 16px;
  }

  .ini-config-box {
    padding: 16px;
    font-size: 0.78rem;
  }

  /* İletişim */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-form-wrap {
    padding: 20px 16px;
  }

  /* Footer */
  .site-footer {
    padding: 60px 0 30px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding-top: 24px;
  }

  .top-telemetry-bar {
    display: none;
  }
}

/* ============================================================
   4. KÜÇÜK MOBİL EKRANLAR (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.45rem;
  }

  .brand-logo-img {
    height: 44px;
    max-width: 140px;
  }

  .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}
