/* ── FOLIO — mobile.css ── */

/* ── MOBILE WARNING OVERLAY ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.mobile-overlay.show { display: flex; }

.mobile-card {
  background: white;
  border-radius: 20px;
  padding: 32px 26px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.mobile-icon { font-size: 52px; margin-bottom: 16px; }
.mobile-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.mobile-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.mobile-steps {
  text-align: left;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}
.step:last-child { margin-bottom: 0; }
.step-num {
  width: 22px; height: 22px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.site-url-box {
  background: var(--bg);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
  word-break: break-all;
  cursor: pointer;
  transition: background 0.15s;
}
.site-url-box:hover { background: var(--accent-light); }

.mobile-btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 8px;
  transition: background 0.15s;
}
.mobile-btn-primary:hover { background: var(--accent-hover); }

.mobile-btn-skip {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.mobile-btn-skip:hover { background: var(--bg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --sidebar-w: 60px; }

  .sidebar .logo h1,
  .sidebar .logo span,
  .nav-item > span:not(.icon),
  .nav-badge,
  .sidebar-footer { display: none; }

  .nav-item { justify-content: center; padding: 10px; }
  .content { padding: 16px; }

  .editor-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .file-list { max-height: 220px; }
  .editor-panel { min-height: 400px; }

  .topbar { padding: 12px 16px; }
  .files-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .files-grid { grid-template-columns: 1fr; }
  .modal { border-radius: 10px; }
  .editor-toolbar { gap: 2px; }
  .toolbar-btn { min-width: 28px; padding: 4px 6px; }
}
