/* ============================================
   CROES — MOBİL UYUM (max-width: 768px)
   Tüm EJS dosyalarına <head> içine ekle:
   <link rel="stylesheet" href="/css/mobile.css">
   ============================================ */

@media (max-width: 768px) {

  /* ── HEADER ── */
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-sol {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  /* Nav'ı gizle, hamburger ekle */
nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #101416;
  border-bottom: 1px solid #1F2937;
  flex-direction: column;
  padding: 12px 16px;
  gap: 6px;
  z-index: 999;
}

nav.mobil-acik {
  display: flex;
}

nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
}

/* Hamburger butonu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

  /* Header sağ butonlar */
  .btn-header-giris,
  .btn-header-uye {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* ── ANASAYFA ── */
  .hero {
    padding: 40px 20px;
    min-height: auto;
  }

  .hero-logo-wrapper {
    flex-direction: column;
    text-align: center;
    margin-bottom: 24px;
  }

  .hero-logo { height: 52px; }

  .hero-logo-alt {
    text-align: center;
    max-width: 100%;
  }

  .hero-slogan {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .hero-metin {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .hero-butonlar {
    flex-direction: column;
    width: 100%;
  }

  .btn-ana,
  .btn-ikincil {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .scroll-ok { margin-top: 36px; }

  .slider-bolum { padding: 40px 16px; }

  .demo-slider { border-radius: 12px; }

  /* ── TÜM HİSSELER ── */
  .sayfa-konteyner {
    flex-direction: column;
    padding: 20px 16px;
    gap: 20px;
  }

  .tablo-wrapper {
    flex: none;
    width: 100%;
    padding: 18px 14px;
    border-radius: 16px;
  }

  .tablo-baslik-kapsul {
    margin-bottom: 18px;
  }

  .tablo-baslik-kapsul h2 {
    font-size: 15px;
  }

  table { font-size: 13px; }

  th { padding: 10px 8px; font-size: 12px; }
  td { padding: 12px 8px; font-size: 13px; }

 /* ── MOBİL YORUM MODAL ── */
@media (max-width: 768px) {

  /* Yorum kutusunu normal akıştan çıkar */
  .grafik-wrapper {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 500 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    align-items: flex-end !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  .grafik-wrapper.aktif {
    display: flex !important;
  }

  /* İç alan — ekranın altından yukarı çıkan sheet */
  .grafik-ic-alan {
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 24px 20px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    animation: slideUp 0.3s ease !important;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  /* Kapatma butonu */
  .modal-kapat-btn {
    display: block !important;
  }
}

/* Masaüstünde kapatma butonu gizli */
.modal-kapat-btn {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  background: #1F2937;
  border: none;
  color: #fff;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

  /* ── VİTRİN ── */
  .vitrin-sayfa-konteyner,
  main.sayfa-konteyner {
    padding: 24px 16px;
  }

  .tablo-kutusu {
    border-radius: 12px;
    overflow-x: auto; /* Tablo taşarsa yatay scroll */
  }

  .tablo-kutusu table {
    min-width: 420px; /* Tablo minimum genişlik — scroll ile görünür */
  }

  .puan-rozet {
    padding: 4px 8px;
    font-size: 12px;
  }

  /* Kilit overlay */
  .kilit-overlay h2 { font-size: 17px; }
  .kilit-overlay p  { font-size: 13px; }
  .btn-giris        { padding: 10px 22px; font-size: 13px; }

  /* ── FOOTER ── */
  footer {
    padding: 30px 20px !important;
  }

  footer > div > div:first-child {
    flex-direction: column;
    gap: 24px;
  }

  footer > div > div:first-child > div:last-child {
    flex-direction: column;
    gap: 24px;
  }

  footer > div > div:last-child {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  footer > div > div:last-child p:last-child {
    text-align: center;
  }

  /* ── GENEL ── */
  .copyright-alt { padding: 16px 20px; }

}

/* Tablet için orta boyut */
@media (max-width: 1024px) and (min-width: 769px) {

  header { padding: 14px 24px; }

  nav a { padding: 8px 14px; font-size: 13px; }

  .sayfa-konteyner { padding: 24px; gap: 24px; }

  .grafik-wrapper { flex: 0.9; }

  .hero-slogan { font-size: 32px; }

}