/* ============================================
   RESVIDAI - MOBIL UYUM CSS (SON SÜRÜM)
   ============================================ */

@media (max-width: 768px) {
  
  html, body {
    height: auto !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .tool-zone {
    max-width: 100% !important;
    margin: 16px auto 8px !important;
    padding: 0 8px !important;
  }
  
  /* Header */
  .top-bar, .header-content {
    padding: 8px 12px !important;
  }
  
  .logo-area {
    font-size: 0.95rem !important;
  }
  
  .user-actions {
    gap: 6px !important;
    flex-wrap: wrap;
  }
  
  /* Tool Hero */
  .tool-hero {
    padding: 16px 12px !important;
    text-align: center;
  }
  
  h1 { font-size: 1.3rem !important; line-height: 1.3 !important; }
  h2 { font-size: 1.1rem !important; }
  h3 { font-size: 1rem !important; }
  .sub { font-size: 0.85rem !important; }
  
  /* Dropzone */
  #bigDropZone {
    padding: 20px 12px !important;
    min-height: 160px !important;
  }
  
  .dz-title { font-size: 1rem !important; }
  .dz-or { font-size: 0.8rem !important; }
  .dz-btn { font-size: 0.85rem !important; padding: 10px 20px !important; min-height: 44px !important; }
  .dz-icon { font-size: 2rem !important; }
  
  /* Sıralama Paneli */
  #fileListWrap { margin-top: 16px !important; }
  #fileListWrap .sf-list { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important; gap: 8px !important; }
  #fileListWrap .sf-thumb { height: 70px !important; }
  #fileListWrap .sf-card { padding: 6px !important; }
  #fileListWrap .sf-name { font-size: 0.65rem !important; }
  #fileListWrap .sf-meta { font-size: 0.6rem !important; }
  #fileListWrap .sf-order { width: 20px !important; height: 20px !important; font-size: 0.65rem !important; }
  #fileListWrap .sf-remove {
    width: 22px !important; height: 22px !important;
    font-size: 0.7rem !important;
    min-width: 22px !important; min-height: 22px !important;
  }
  
  /* Butonlar */
  .btn-primary, .btn-outline {
    font-size: 0.82rem !important;
    padding: 10px 16px !important;
    min-height: 44px !important;
    touch-action: manipulation;
  }
  .btn-primary i, .btn-outline i { font-size: 0.9rem !important; }
  
  /* Ayarlar Kutusu */
  .tool-zone > div[style*="max-width:720px"],
  .tool-zone > div[style*="max-width: 720px"] {
    padding: 16px !important;
    margin: 16px 0 0 !important;
    border-radius: 12px !important;
  }
  
  /* Form */
  input, select, textarea {
    font-size: 1rem !important;
    padding: 12px !important;
    min-height: 44px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  input[type="range"] { height: 8px !important; min-height: 8px !important; }
  label { font-size: 0.82rem !important; }
  select { background-size: 16px !important; padding-right: 36px !important; }
  
  /* Modal */
  #sfPreviewModal > div, #pdfPreviewModal > div, #fpModal > div {
    max-width: 95vw !important; max-height: 95vh !important;
  }
  #sfPreviewModal img, #pdfPreviewModal img, #fpImg { max-height: 70vh !important; }
  
  /* Similar Tools */
  .similar-tools { padding: 16px 12px !important; }
  .similar-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 8px !important; }
  
  /* Tablolar */
  table { font-size: 0.78rem !important; }
  table th, table td { padding: 6px 8px !important; }
  
  /* Announce Bar */
  .announce-bar { font-size: 0.78rem !important; padding: 8px 40px 8px 12px !important; }
  
  /* Scroll Top */
  .scroll-top { width: 44px !important; height: 44px !important; bottom: 16px !important; right: 16px !important; }
  
  /* Lang Widget */
  .lang-widget { bottom: 16px !important; left: 16px !important; font-size: 0.8rem !important; min-height: 40px !important; }
  
  /* Hamburger */
  .hamburger-btn { min-width: 44px !important; min-height: 44px !important; padding: 10px !important; }
  
  /* Touch */
  #fileListWrap .sf-card { -webkit-user-drag: element; touch-action: none; }
  
  /* Scroll */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
}

@media (max-width: 480px) {
  .container { padding-left: 8px !important; padding-right: 8px !important; }
  #fileListWrap .sf-list { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important; gap: 6px !important; }
  #fileListWrap .sf-thumb { height: 60px !important; }
  #fileListWrap .sf-name { font-size: 0.6rem !important; }
  #fileListWrap .sf-meta { font-size: 0.55rem !important; }
  .btn-primary, .btn-outline { font-size: 0.78rem !important; padding: 8px 12px !important; }
  h1 { font-size: 1.15rem !important; }
  h2 { font-size: 1rem !important; }
  h3 { font-size: 0.92rem !important; }
  #bigDropZone { padding: 16px 10px !important; min-height: 140px !important; }
  .dz-btn { font-size: 0.8rem !important; padding: 10px 16px !important; }
  .logo-area { font-size: 0.88rem !important; }
  #sfPreviewModal > div, #pdfPreviewModal > div { max-width: 98vw !important; max-height: 98vh !important; }
  #sfPreviewModal img, #pdfPreviewModal img { max-height: 60vh !important; }
  .mobile-menu { font-size: 0.9rem !important; }
  .mobile-menu a { padding: 12px 16px !important; min-height: 44px !important; }
}

@media (hover: none) and (pointer: coarse) {
  .btn-primary, .btn-outline, .dz-btn,
  #fileListWrap .sf-remove, #fileListWrap .sf-card,
  select, input {
    touch-action: manipulation;
  }
}
