/* ══════════════════════════════════════════════
   FRAMEUP — loading.css
   Terminal-style boot screen
   Para desativar: remover <link> no index.html
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #e5e5e5;
  overflow: hidden;
}

#loading-screen.ls-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

/* ── Title bar ─────────────────────────────── */
.ls-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #151515;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.ls-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ls-dot--r { background: #ff5f57; }
.ls-dot--y { background: #febc2e; }
.ls-dot--g { background: #28c840; }
.ls-titlebar span:last-child {
  margin-left: 10px;
  letter-spacing: .04em;
}

/* ── Main content ──────────────────────────── */
.ls-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
  max-width: 640px;
}

.ls-path {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.ls-explorer {
  font-size: 10px;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 20px;
}

/* ── File tree ─────────────────────────────── */
.ls-tree {
  list-style: none;
  font-size: 13px;
  line-height: 1.9;
}
.ls-tree li {
  opacity: 0;
  transform: translateY(4px);
}
.ls-tree li.ls-show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .15s ease, transform .15s ease;
}
.ls-folder {
  color: #3B82F6;
}
.ls-file {
  color: rgba(255,255,255,.45);
  padding-left: 20px;
}

/* ── Command line ──────────────────────────── */
.ls-cli {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.8;
}
.ls-prompt {
  color: #7C3AED;
}
.ls-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #e5e5e5;
  vertical-align: text-bottom;
  animation: ls-blink .6s step-end infinite;
  margin-left: 1px;
}
@keyframes ls-blink {
  50% { opacity: 0; }
}

.ls-confirm {
  color: #28c840;
  opacity: 0;
}
.ls-confirm.ls-show {
  opacity: 1;
  transition: opacity .2s ease;
}

/* ── Status bar ────────────────────────────── */
.ls-statusbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  background: linear-gradient(90deg, #3B82F6, #7C3AED);
  font-size: 11px;
  color: rgba(255,255,255,.9);
  letter-spacing: .02em;
}
.ls-statusbar span {
  opacity: .85;
}

/* ── Reduced motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #loading-screen {
    display: none !important;
  }
}

/* ── Mobile adjustments ────────────────────── */
@media (max-width: 600px) {
  .ls-body {
    padding: 24px 20px;
  }
  .ls-tree {
    font-size: 12px;
    line-height: 1.8;
  }
  .ls-tree .ls-file-mobile-hide {
    display: none;
  }
  .ls-cli {
    font-size: 12px;
  }
}
