/* ==========================================================================
   GÜR MÜZİK SANAT MERKEZİ - Gelişmiş Mobil & Tablet Responsive Kuralları (responsive.css)
   Telefon (iOS/Android), Tablet (iPad/Android) ve Küçük Ekran Uyumu
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tablet Uyumu (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }

  .hero-clean-title {
    font-size: 2.4rem;
  }

  .instructor-card-clean {
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .products-grid-clean {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .contact-clean-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   2. Mobil & Tablet Geçişi (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Genel Tipografi & Boşluklar */
  html {
    font-size: 15px;
  }

  .section-padding {
    padding: 45px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .page-banner {
    padding: 35px 0 25px;
  }

  .page-banner-title {
    font-size: 1.65rem;
  }

  /* Mobil Menü / Hamburger Drawer */
  .mobile-toggle-btn {
    display: flex;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 1.2rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: #111116;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 85px 24px 30px;
    gap: 12px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  .nav-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-actions .btn-header-cta {
    display: none;
  }

  /* Hero Alanı */
  .hero-clean {
    padding: 45px 0 35px;
  }

  .hero-clean-title {
    font-size: 1.95rem;
    line-height: 1.25;
  }

  .hero-clean-desc {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }

  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-btn-group .btn {
    width: 100%;
    padding: 13px 20px;
  }

  /* Kategori Filtre Butonları (Yatay Kaydırılabilir / Dokunmatik) */
  .catalog-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    padding: 7px 16px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  /* Kartlar & Gridler */
  .products-grid-clean {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Eğitmen Kartı */
  .instructor-card-clean {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
    gap: 20px;
  }

  .instructor-img-clean {
    max-width: 160px;
    margin: 0 auto;
  }

  .instructor-info-clean h2 {
    font-size: 1.4rem;
  }

  .instructor-info-clean div[style*="display: flex"] {
    flex-direction: column;
    width: 100%;
  }

  .instructor-info-clean .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Form Girdileri (iOS Otomatik Yakınlaştırma Engeli: font-size 16px) */
  .form-control {
    font-size: 16px !important;
    padding: 12px 14px;
  }

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

  .contact-card-clean {
    padding: 20px 16px;
  }

  .contact-big-phone {
    padding: 18px 14px;
  }

  .contact-big-phone .num {
    font-size: 1.4rem;
  }

  .contact-big-phone div[style*="display: flex"] {
    flex-direction: column;
    gap: 8px;
  }

  .contact-big-phone .btn {
    width: 100%;
  }

  /* Sıkça Sorulan Sorular */
  .faq-clean-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
    gap: 10px;
  }

  .faq-clean-answer {
    padding: 0 16px 14px;
    font-size: 0.86rem;
  }

  /* Modallar */
  .modal-card {
    padding: 22px 16px;
    width: 94%;
    max-height: 88vh;
  }

  /* Footer */
  .footer-clean-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-clean-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  /* Yüzen WhatsApp Butonu (Mobil Safe Area) */
  .floating-whatsapp {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}

/* --------------------------------------------------------------------------
   3. Çok Küçük Telefonlar (<= 380px iPhone SE, küçük Android cihazlar)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .hero-clean-title {
    font-size: 1.7rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .time-slots-grid-clean {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-btns-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
