/* ============================================================
   SynergyOS — mobile.css
   Mobil cihazlar için responsive kurallar (≤768px).
   Desktop CSS'e DOKUNULMAZ — yalnızca bu dosya override yapar.
   ============================================================ */

@media (max-width: 768px) {

  /* ── Layout ── */
  .game-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr;
    position: relative;
  }

  /* Sol ve sağ paneller default gizli */
  .panel-left,
  .panel-right {
    position: fixed !important;
    top: var(--topbar-h, 52px) !important;
    bottom: 56px !important; /* dock yüksekliği */
    width: 82vw !important;
    max-width: 320px !important;
    z-index: 500 !important;
    background: var(--clr-surface) !important;
    transform: translateX(-110%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    border: none !important;
  }

  .panel-left  { left: 0; border-right: 1px solid var(--clr-border) !important; }
  .panel-right { right: 0; left: auto !important; transform: translateX(110%) !important; border-left: 1px solid var(--clr-border) !important; }

  /* Açık haller */
  body.mobile-left-open  .panel-left  { transform: translateX(0) !important; }
  body.mobile-right-open .panel-right { transform: translateX(0) !important; }

  /* Overlay (panel açıkken arka plan karartma) */
  body.mobile-left-open::before,
  body.mobile-right-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 499;
  }

  /* Orta panel tam genişlik */
  .panel.panel-center {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    padding: 10px 8px !important;
  }

  /* ── Topbar kompakt ── */
  .topbar { padding: 0 8px !important; }
  .topbar-center { gap: 6px !important; font-size: 0.8rem !important; }
  .topbar-center .topbar-stat { gap: 3px !important; }
  .topbar-right { gap: 6px !important; }
  .topbar-right .btn-icon { width: 32px !important; height: 32px !important; font-size: 1rem !important; }

  /* ── Swipe tetikleyici butonlar (sol/sağ kenar) ── */
  .mobile-swipe-trigger-left,
  .mobile-swipe-trigger-right {
    display: flex !important;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 490;
    background: rgba(var(--clr-primary-rgb, 99, 102, 241), 0.18);
    border: 1px solid rgba(var(--clr-primary-rgb, 99, 102, 241), 0.3);
    border-radius: 0 8px 8px 0;
    padding: 10px 4px;
    cursor: pointer;
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
  }
  .mobile-swipe-trigger-left  { left: 0; border-radius: 0 8px 8px 0; }
  .mobile-swipe-trigger-right { right: 0; border-radius: 8px 0 0 8px; }

  /* ── Dock mobil ── */
  #venue-bottom-bar {
    height: 56px !important;
    padding: 0 4px !important;
  }

  /* ── Slot kartları mobil ── */
  .slot-card { padding: 12px 10px !important; }
  .slot-card h3 { font-size: 1rem !important; }
  .action-card { min-width: unset !important; width: 100% !important; }

  /* ── Scrollbar gizle (mobil) ── */
  .panel-center::-webkit-scrollbar { display: none; }
  .panel-center { -ms-overflow-style: none; scrollbar-width: none; }

}

/* Trigger butonları desktop'ta gizli */
@media (min-width: 769px) {
  .mobile-swipe-trigger-left,
  .mobile-swipe-trigger-right { display: none !important; }
}
