/* ================================================================
   LMS — RESPONSIVE ADDITIONS
   This file ONLY adds rules not covered by main.css.
   It does NOT override any existing layout rules.
   ================================================================ */

/* ── Course view (mobile styles live in course.php inline <style>) ── */
/* price-card responsive for mobile */
@media (max-width: 768px) {
  .price-card-thumb { display: none !important; }
}

/* ── Discount form grid ─────────────────────────────────────── */
.disc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 580px) {
  .disc-form-grid { grid-template-columns: 1fr !important; }
}
#disc-alert { padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }
#disc-alert.alert-success { background: rgba(16,185,129,0.12); color: var(--emerald); }
#disc-alert.alert-error   { background: rgba(244,63,94,0.12);  color: var(--rose); }

/* ── Campaign top grid ─────────────────────────────────────── */
.camp-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) {
  .camp-top-grid { grid-template-columns: 1fr !important; }
}

/* ── Video player — sidebar below video on tablet/mobile ────── */
@media (max-width: 1024px) {
  .player-layout  { flex-direction: column !important; height: auto !important; }
  .player-main    { flex: none !important; width: 100% !important; }
  .player-sidebar {
    display: flex !important; position: static !important;
    width: 100% !important; max-height: 50vh;
    height: auto !important; overflow-y: auto;
    border-left: none !important; border-top: 1px solid var(--border);
  }
  .video-container { position: sticky !important; top: 68px !important; z-index: 10 !important; border-radius: 0 !important; }
}
@media (max-width: 480px) {
  .player-info  { padding: 12px !important; }
  .player-title { font-size: 0.9rem !important; }
  .lecture-item { padding: 10px 12px; }
  .lecture-item-title { font-size: 0.82rem; }
  .week-header  { padding: 8px 12px 4px; font-size: 0.67rem; }
}

/* ── Payment page ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .payment-two-col { grid-template-columns: 1fr !important; }
  .payment-sticky  { position: static !important; }
}

/* ── Profile tabs ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .profile-tab-btn { font-size: 0.78rem !important; padding: 10px 4px !important; }
}

/* ── iOS form input zoom prevention ────────────────────────── */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="tel"], select, textarea {
    font-size: 16px !important;
  }
}

/* ── Toast notifications ────────────────────────────────────── */
#toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 99998;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; width: calc(100% - 40px);
  pointer-events: none;
}
@media (max-width: 480px) {
  #toast-container { top: auto; bottom: 16px; right: 12px; left: 12px; width: auto; max-width: none; }
}

/* ── Drip builder ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .drip-builder { grid-template-columns: 1fr !important; }
}

/* ── Admin users action column ──────────────────────────────── */
@media (max-width: 640px) {
  .users-action-col { flex-direction: column !important; gap: 4px !important; }
  .users-action-col .btn { width: 100% !important; text-align: center !important; }
  .col-device, .col-joined { display: none !important; }
}

/* ── Sidebar backdrop (only needs to show, main.css hides it) ── */
.sidebar-backdrop { 
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 149;
  backdrop-filter: blur(2px);
}
.sidebar-backdrop.show { display: block; }
