/* ============================================================
   Eddys Development — TERMINAL / DEV-STUDIO layout layer
   Scoped to body.terminal. Turns the landing into an IDE-style
   shell: a fixed left sidebar + a "deploy console" hero.
   Builds on styles.css + landing.css (tokens, bg, buttons,
   cards, premium pass, green "ship" accents). Layout/skin only —
   every JS hook (#nav, #navToggle, #navLinks, #navAuth, the
   Supabase form) is preserved.
   ============================================================ */

.terminal { --sidebar-w: 0px; }

/* ---------- Top bar: full-width content (no sidebar offset) ---- */
.terminal #main,
.terminal .footer { margin-left: 0; }

/* ---------- Top navigation bar (the #nav element) ------ */
.terminal .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  background: rgba(22, 16, 11, .82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.terminal .nav.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .34); }

.terminal .nav-inner {
  width: min(1180px, 100%);
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 24px;
  gap: 18px;
}

.terminal .sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-bottom: 0;
  flex: none;
}
.terminal .nav-word {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.15;
}
.terminal .nav-word small {
  font: 500 11px var(--font-mono);
  color: var(--faint);
  letter-spacing: 0;
  margin-top: 2px;
}

/* nav as a horizontal command list, centered */
.terminal .nav-links {
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin: 0;
  flex: 1;
  justify-content: center;
}
.terminal .nav-links > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  font: 500 14px var(--font-mono);
  color: var(--muted);
  text-transform: lowercase;
}
.terminal .nav-links > a::before { content: "\203a"; color: var(--violet); opacity: .55; }
.terminal .nav-links > a::after { display: none; }   /* drop the premium-pass underline here */
.terminal .nav-links > a:hover { background: rgba(245, 165, 36, .10); color: var(--text); }
.terminal .nav-links > a:hover::before { opacity: 1; }

/* foot: auth pinned to the right of the bar */
.terminal .sidebar-foot {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: none;
}
.terminal .nav-auth {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.terminal .nav-auth .nav-cta,
.terminal .nav-auth .nav-cta-ghost {
  width: auto;
  text-align: center;
  padding: 9px 16px;
}
.terminal .account-chip { justify-content: flex-start; }
.terminal .sidebar-status { display: none; }

.terminal .nav-toggle { display: none; }

/* ---------- Console hero -------------------------------- */
.terminal .hero {
  padding: clamp(36px, 6vw, 84px) clamp(18px, 4vw, 52px) clamp(28px, 4vw, 56px);
}
.terminal .console {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(17, 17, 22, .72);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 34px 80px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.terminal .console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .025);
  border-bottom: 1px solid var(--border);
}
.terminal .console-bar .dots { display: inline-flex; gap: 7px; }
.terminal .console-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.terminal .console-bar .dots i:nth-child(1) { background: #ff5f57; }
.terminal .console-bar .dots i:nth-child(2) { background: #febc2e; }
.terminal .console-bar .dots i:nth-child(3) { background: #28c840; }
.terminal .console-path { font: 500 13px var(--font-mono); color: var(--faint); }
.terminal .console-body { padding: clamp(26px, 4vw, 54px); }

.terminal .hero .eyebrow { margin: 0 0 20px; }
.terminal .hero-title { text-align: left; font-size: clamp(36px, 5.6vw, 66px); margin: 0 0 20px; }
.terminal .hero-sub { text-align: left; margin: 0; max-width: 600px; }

/* the deploy log */
.terminal .ship-log {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 11px;
  font: 500 15px var(--font-mono);
}
.terminal .ship-log li { display: flex; align-items: baseline; gap: 11px; color: var(--text); }
.terminal .ship-log li::before { flex: none; width: 14px; font-weight: 700; }
.terminal .ship-log .ok::before { content: "\2713"; color: var(--success); }
.terminal .ship-log .next::before { content: "\2192"; color: var(--violet-bright); }
.terminal .ship-log li span { color: var(--faint); font-weight: 400; }
.terminal .hero-cta { justify-content: flex-start; }

/* ---------- Sections: left-aligned + terminal headers --- */
.terminal .section-head { text-align: left; margin-left: 0; margin-right: auto; }
.terminal .kicker {
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0;
}
.terminal .kicker::before { content: "// "; color: var(--violet); opacity: .7; }

/* ---------- Responsive: sidebar -> top bar + drawer ----- */
@media (max-width: 920px) {
  .terminal .nav {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .terminal .nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 12px 18px;
    gap: 10px;
  }
  .terminal .sidebar-head {
    flex: 1;
    padding: 0;
    border-bottom: 0;
  }
  .terminal .nav-toggle { display: flex; }
  .terminal .nav-links,
  .terminal .sidebar-foot {
    flex-basis: 100%;
    width: 100%;
    display: none;
    margin: 0;
    border: 0;
    padding: 0;
  }
  /* keep the drawer in normal flow (undo landing.css's absolute dropdown) */
  .terminal .nav-links {
    position: static;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .terminal .nav.open .nav-links { display: flex; padding-top: 6px; }
  .terminal .nav.open .sidebar-foot { display: flex; padding-top: 12px; border-top: 1px solid var(--border); }
  .terminal .nav-auth { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .terminal .nav-auth .nav-cta,
  .terminal .nav-auth .nav-cta-ghost { width: auto; flex: 1; }
  .terminal .sidebar-status { display: none; }
  .terminal #main,
  .terminal .footer { margin-left: 0; }
}
