/*
 * responsive.css — AcademyPia Mobile Responsive Styles
 *
 * Bu dosya, mevcut css/main.css dosyasına dokunmadan tüm responsive
 * CSS kurallarını barındırır. main.css'den sonra yüklenmelidir:
 *
 *   <link rel="stylesheet" href="css/responsive.css">
 *
 * Breakpoint sistemi:
 *   xl  : ≥1200px  — Geniş masaüstü (değişiklik yok)
 *   lg  : 992–1199px — Masaüstü (değişiklik yok)
 *   md  : 768–991px  — Tablet
 *   sm  : 576–767px  — Büyük telefon
 *   xs  : ≤575px     — Küçük telefon
 *
 * Gereksinimler: 1.2, 1.3, 1.4, 1.5
 */

/* =================================== */
/*  Temel Altyapı — Global Kurallar
/* =================================== */

/* Gereksinim 1.3: box-sizing tüm elemanlara uygulanır */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Gereksinim 1.2, 1.4: Yatay taşma engellenir */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Gereksinim 1.5: Görseller kapsayıcılarından taşmaz */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* =================================== */
/*  Header İkon Butonları (tüm ekranlar)
/* =================================== */

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px !important;
  max-height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 15px;
  margin-right: 8px;
  flex-shrink: 0;
  box-sizing: content-box;
  transition: background .2s;
  text-decoration: none;
}

.header-icon-btn:hover {
  background: rgba(255,255,255,.3);
  color: #fff;
}

/* =================================== */
/*  Navigasyon Bileşeni
/* =================================== */

/* Gereksinim 2.1: Masaüstü nav gizle, hamburger göster */
@media (max-width: 768px) {
  #nav-menu-container {
    display: none;
  }

  /* Gereksinim 2.2: Toggle butonu — header-top altında görünür */
  #mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #444;
    font-size: 24px;
    position: fixed;
    top: 48px;   /* header-top yüksekliğinin altı */
    right: 10px;
    z-index: 10000;
  }

  #mobile-nav-toggle i {
    color: #444 !important;
  }
}
#mobile-nav {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: #0f172a;
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.3s ease;
  padding: 20px 0;
}

/* Gereksinim 2.5: Panel açık durumu */
body.mobile-nav-active #mobile-nav {
  left: 0;
}

/* Mobil nav link stilleri */
#mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-nav ul li a {
  display: block;
  padding: 12px 20px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 44px;
  display: flex;
  align-items: center;
}

#mobile-nav ul li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Logo kısıtlaması */
@media (max-width: 767px) {
  #logo img {
    max-width: 60%;
  }
}

/* =================================== */
/*  Header Top Bileşeni
/* =================================== */

/* Gereksinim 2.6, 2.7: Header-top kompakt mobil görünüm */
@media (max-width: 767px) {
  .header-top {
    display: flex !important;
  }

  .header-top .book-now span {
    display: none;
  }

  .header-top .book-now {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Randevu Al butonu mobilde kompakt */
  .header-top-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .header-top-right .book-now {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
    min-height: unset;
    display: inline-flex !important;
    align-items: center;
    border-radius: 4px;
  }

  .header-top-right .book-now svg {
    width: 13px !important;
    height: 13px !important;
    margin-right: 4px !important;
  }
}

/* =================================== */
/*  Banner ve Hero Alanı
/* =================================== */

/* Gereksinim 3.1, 3.2: Ana banner yüksekliği ve içerik hizalaması */
@media (max-width: 767px) {
  /* main.css'deki 700px !important kuralını override et */
  .fullscreen {
    height: 500px !important;
    max-height: 500px;
  }

  /* Gereksinim 3.3: Banner içeriği ortalanmış */
  .banner-content {
    text-align: center;
    width: 100%;
    padding: 0 20px;
  }
}

/* Gereksinim 3.4: Küçük ekranlarda başlık font boyutu */
@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 28px;
  }
}

/* Gereksinim 3.5: İç sayfa banner (about-banner) başlık ve breadcrumb */
@media (max-width: 767px) {
  .about-banner .about-content h1 {
    font-size: 24px;
  }

  .about-banner .link-nav {
    font-size: 13px;
  }
}

/* =================================== */
/*  İçerik Izgara Sistemi ve Kart Bileşenleri
/* =================================== */

/* Gereksinim 4.3, 4.4: Tablet breakpoint'te about-area dikey yığılma */
@media (max-width: 991px) {
  .about-area .about-left {
    order: -1;
    text-align: center;
    margin-bottom: 30px;
  }

  .about-area .about-right {
    padding-left: 15px;
  }
}

/* Gereksinim 4.1, 4.2: Mobil breakpoint'te about-area sütun yığılma */
@media (max-width: 767px) {
  .about-area .about-right {
    padding-left: 15px;
    width: 100%;
  }

  .about-area .about-left {
    width: 100%;
    margin-top: 30px;
    text-align: center;
  }

  /* Gereksinim 4.5: Feature kartları tam genişlik */
  .single-feature {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Gereksinim 4.6: Eğitmen kartları (team-area) tam genişlik */
  .team-area .col-lg-3,
  .team-area .col-md-4,
  .team-area .col-lg-4 {
    width: 100%;
  }

  /* Takvim kartları tam genişlik */
  #upcoming-schedule .col-lg-4,
  #upcoming-schedule .col-md-6,
  #past-schedule .col-lg-4,
  #past-schedule .col-md-6 {
    width: 100%;
  }
}

/* =================================== */
/*  İletişim Formu ve Harita
/* =================================== */

/* Gereksinim 5.1, 5.2, 5.3, 5.4, 5.5 */
@media (max-width: 767px) {
  /* Harita tam genişlik ve max 300px yükseklik */
  .map-wrap {
    height: 300px !important;
    margin-bottom: 30px;
  }

  .map-wrap iframe {
    height: 300px !important;
  }

  /* Adres kartları dikey yığılma */
  .address-wrap {
    width: 100%;
    margin-bottom: 30px;
  }

  .single-contact-address {
    margin-bottom: 20px;
    flex-direction: column;
  }

  /* Form input ve textarea minimum touch hedefi */
  .common-input,
  .common-textarea {
    min-height: 44px;
  }

  /* Gönder butonu tam genişlik */
  .contact-form .genric-btn {
    width: 100%;
    float: none;
  }
}

/* =================================== */
/*  Üye Paneli (member.html)
/* =================================== */

/* Gereksinim 6.1, 6.2: Giriş bölümü mobil padding ve genişlik */
@media (max-width: 575px) {
  #login-section {
    margin: 20px auto;
    padding: 28px 20px;
    border-radius: 8px;
    width: calc(100% - 30px);
    max-width: 100%;
  }

  /* Gereksinim 6.3: Kayıt formu ad/soyad alanları tam genişlik */
  #register-form-wrap .col-6 {
    width: 100%;
  }

  /* Panel wrapper padding */
  .panel-wrapper {
    padding: 16px 12px 40px;
  }

  /* Gereksinim 6.4: Hoşgeldin banner tek sütun */
  .welcome-banner {
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }

  .welcome-banner .welcome-icon {
    display: none;
  }
}

/* Gereksinim 6.5, 6.6, 6.7: Tablet ve mobil üye paneli bileşenleri */
@media (max-width: 767px) {
  /* Gereksinim 6.5: Sekme navigasyonu yatay kaydırılabilir */
  .member-nav-tabs {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .member-nav-tabs .nav-item {
    display: inline-block;
  }

  /* Gereksinim 6.6: Video kartları tam genişlik */
  .video-card {
    width: 100%;
  }

  /* Gereksinim 6.6: Chat container yükseklik */
  .chat-container {
    height: 80vh;
    max-height: 80vh;
  }

  /* Gereksinim 6.7: Chat input klavye görünürlüğü */
  .chat-input-area {
    position: sticky;
    bottom: 0;
    z-index: 10;
  }
}

/* =================================== */
/*  Footer Alanı
/* =================================== */

/* Gereksinim 7.1, 7.2, 7.3, 7.4: Footer tek sütun, bülten formu tam genişlik, footer-text ortalanmış */
@media (max-width: 767px) {
  /* Üç sütunlu düzen tek sütuna geçiş */
  .footer-area .col-lg-3,
  .footer-area .col-lg-4,
  .footer-area .col-lg-5 {
    width: 100%;
    margin-bottom: 24px;
  }

  /* Bülten formu tam genişlik */
  .footer-area .navbar-form {
    width: 100%;
  }

  .footer-area .input-group {
    width: 100%;
  }

  /* Alt bilgi metni ortalanmış */
  .footer-text {
    text-align: center;
  }
}

/* =================================== */
/*  Tipografi ve Touch Hedefleri
/* =================================== */

/* Gereksinim 8.1, 8.2: Minimum font boyutu ve satır yüksekliği */
@media (max-width: 767px) {
  body {
    font-size: 14px;
    line-height: 1.6em;
  }

  /* Gereksinim 8.3: Butonlar tam genişlik */
  .primary-btn,
  .genric-btn.primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Gereksinim 8.4: Touch target minimum boyut — ikon butonları hariç */
  button,
  .nav-link,
  .primary-btn,
  .genric-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Header-top ikon linkleri — sabit kare boyut (global .header-icon-btn ile yönetilir) */
  .header-top-right .book-now {
    width: auto !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
  }  /* Gereksinim 8.5: Section gap dolgu */
  .section-gap {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* =================================== */
/*  Eğitim Takvimi Sayfası
/* =================================== */

/* Gereksinim 9.1, 9.2, 9.3, 9.4 */
@media (max-width: 767px) {
  /* Bölüm başlığı font boyutu ve hizalaması */
  .section-title-wrap h1 {
    font-size: 22px;
    text-align: center;
  }

  /* Boş durum mesajı */
  #no-schedule-msg {
    text-align: center;
    font-size: 14px;
    padding: 20px;
  }
}

/* =================================== */
/*  Blog Sayfaları
/* =================================== */

/* Gereksinim 10.1, 10.2, 10.3: Blog kartları tek sütun, sidebar alt konumlandırma */
@media (max-width: 767px) {
  /* Blog kartları (index.html) tam genişlik */
  .single-blog {
    width: 100%;
    margin-bottom: 30px;
  }

  .single-blog .thumb img {
    width: 100%;
  }

  /* Sidebar ana içeriğin altına (blog-home.html, blog-single.html) */
  .sidebar-widgets {
    margin-top: 40px;
  }

  /* Gereksinim 10.4: Meta bilgileri taşma önleme */
  .meta-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* =================================== */
/*  Performans ve Görsel Optimizasyon
/* =================================== */

/* Gereksinim 11.3: Mobilde kullanılmayan arka plan görseli gizle */
@media (max-width: 767px) {
  .cta-one-area {
    background-image: none;
  }
}

.mt-60 {
  margin-top: 60px;
}

/* =================================== */
/*  Video Galerisi — 9:16 Modern
/* =================================== */

.video-swipe-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 24px;
  scrollbar-width: none;
}

.video-swipe-track::-webkit-scrollbar {
  display: none;
}

.video-swipe-loading {
  color: #888;
  padding: 40px;
  text-align: center;
  width: 100%;
}

.video-card-9x16 {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  position: relative;
  cursor: pointer;
}

/* 9:16 oranı */
.video-card-9x16::before {
  content: '';
  display: block;
  padding-top: 177.78%;
}

.video-card-9x16 video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.vc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s;
}

.vc-play-btn {
  background: rgba(0,147,223,.85);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,147,223,.4);
  transition: transform .15s, background .15s;
}

.vc-play-btn:hover {
  transform: scale(1.1);
  background: rgba(0,147,223,1);
}

.vc-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,147,223,.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
}

@media (min-width: 768px) {
  .video-card-9x16 {
    width: 230px;
  }
}

@media (min-width: 1200px) {
  .video-card-9x16 {
    width: 260px;
  }
}

/* =================================== */
/*  Stats Counter Bölümü
/* =================================== */

.stats-area {
  background: linear-gradient(135deg, #0093df 0%, #005f8e 100%);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
  color: #fff;
}

.stat-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: .85;
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-suffix {
  font-size: 32px;
  font-weight: 700;
}

.stat-label {
  font-size: 14px;
  opacity: .85;
  font-weight: 500;
  letter-spacing: .5px;
}

@media (max-width: 767px) {
  .stat-item { padding: 16px 8px; }
  .stat-number { font-size: 32px; }
  .stat-suffix { font-size: 24px; }
  .stat-icon { font-size: 28px; }
}

/* =================================== */
/*  Eğitmen Kartları — Hover Overlay
/* =================================== */

.instructor-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}

.instructor-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.instructor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.instructor-card:hover .instructor-photo {
  transform: scale(1.06);
}

.instructor-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructor-photo-placeholder i {
  font-size: 64px;
  color: #94a3b8;
}

.instructor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,30,60,.88) 0%, rgba(0,147,223,.6) 100%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .3s;
}

.instructor-card:hover .instructor-overlay {
  opacity: 1;
}

.instructor-overlay-content {
  padding: 20px;
  width: 100%;
  transform: translateY(12px);
  transition: transform .3s;
}

.instructor-card:hover .instructor-overlay-content {
  transform: translateY(0);
}

.instr-bio {
  color: rgba(255,255,255,.9);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instr-socials {
  display: flex;
  gap: 8px;
}

.instr-social {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}

.instr-social:hover {
  background: #0093df;
  color: #fff;
}

.instructor-info {
  padding: 18px 20px;
  text-align: center;
}

.instructor-info h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a1a2e;
}

.instr-specialty {
  color: #0093df;
  font-size: 13px;
  font-weight: 600;
}

/* =================================== */
/*  Neden AcademyPia Bölümü
/* =================================== */

.why-us-area {
  background: #f8f9fa;
}

.why-us-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}

.why-us-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

.why-us-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0093df, #00c6ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #fff;
  transition: transform .25s;
}

.why-us-card:hover .why-us-icon {
  transform: scale(1.1) rotate(-5deg);
}

.why-us-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.why-us-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.why-us-item {
  margin-bottom: 24px;
}
