@charset "UTF-8";
/* ============================================================
   EREBUS — CLICKJACKER PROJECT PAGE
   Dependency: load AFTER the main stylesheet. Reuses --tokens.

   The demo is a scoped recreation of the ClickJacker CLI tool's
   UI, contained in an "app window" panel rather than the tool's
   full-viewport takeover, so it sits inside the normal page flow.
   ============================================================ */
.cj-back {
  display: inline-block;
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  text-decoration: none;
}
.cj-back:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------
   DEMO — APP WINDOW
   ------------------------------------------------------------ */
.cj-demo {
  margin: var(--space-xl) 0;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.cj-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cj-bar__dots {
  display: flex;
  gap: 0.375rem;
}
.cj-bar__dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border-mid);
}

.cj-bar__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ------------------------------------------------------------
   CONTROLS
   ------------------------------------------------------------ */
.cj-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border);
}

.cj-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cj-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: lowercase;
  white-space: nowrap;
}

.cj-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  outline: none;
}
.cj-input:focus {
  border-color: var(--accent);
}

.cj-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--accent-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cj-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cj-btn--sm {
  font-size: 0.6rem;
  padding: 0.25rem 0.5rem;
}

.cj-btn--danger {
  border-color: var(--err);
  color: var(--err);
}
.cj-btn--danger:hover {
  background: var(--err-dim);
  color: #fca5a5;
  border-color: var(--err);
}

/* ------------------------------------------------------------
   STAGE — framed target + side panels
   ------------------------------------------------------------ */
.cj-stage {
  display: flex;
  height: 30rem;
}

.cj-frame-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.cj-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.cj-side {
  width: 17rem;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.cj-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 0.75rem;
  overflow: hidden;
}

.cj-panel--term {
  border-top: 1px solid var(--border);
}

.cj-panel__title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: lowercase;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cj-panel__hint {
  color: var(--text-dim);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* -- session history --------------------------------------- */
.cj-history {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
}

.cj-history__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.cj-history__item:last-child {
  border-bottom: none;
}

.cj-history__url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* -- collaborator terminal log ----------------------------- */
.cj-term {
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.5;
}

.cj-term__empty {
  color: var(--text-dim);
  margin: 0;
}

.cj-term__hit {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.cj-term__hit:last-child {
  border-bottom: none;
}

.cj-term__req {
  color: var(--accent-dim);
  word-break: break-all;
}

.cj-term__body {
  color: #34d399;
  word-break: break-all;
  margin-top: 0.15rem;
}

/* ------------------------------------------------------------
   OVERLAY — injected credential-capture form
   ------------------------------------------------------------ */
.cj-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 17, 0.85);
}

.cj-phish {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 1.5rem 1.75rem;
  min-width: 16rem;
  display: flex;
  flex-direction: column;
}
.cj-phish label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  text-transform: lowercase;
}
.cj-phish label:first-of-type {
  margin-top: 0;
}
.cj-phish input[type=text],
.cj-phish input[type=password] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  outline: none;
}
.cj-phish input[type=text]:focus,
.cj-phish input[type=password]:focus {
  border-color: var(--accent);
}
.cj-phish input[type=submit] {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  transition: opacity 0.15s ease;
}
.cj-phish input[type=submit]:hover {
  opacity: 0.85;
}

.cj-demo__note {
  margin: 0;
  padding: 0.6rem 0.875rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ------------------------------------------------------------
   WRITE-UP
   ------------------------------------------------------------ */
/* The write-up body reuses the shared `.prose` typography (from blog.css);
   this just constrains the measure and spaces it below the demo. */
.cj-writeup {
  max-width: 44rem;
  margin-top: var(--space-2xl);
}

.cj-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.05rem 0.3rem;
}

.cj-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-left: 2px solid var(--border-mid);
  padding-left: 0.85rem;
  margin: var(--space-lg) 0;
}

.cj-links {
  margin-top: var(--space-lg);
}

/* ------------------------------------------------------------
   NARROW SCREENS — stack the side panel under the frame
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  .cj-stage {
    flex-direction: column;
    height: auto;
  }
  .cj-frame-wrap {
    height: 22rem;
  }
  .cj-side {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .cj-panel {
    max-height: 14rem;
  }
  .cj-row {
    flex-wrap: wrap;
  }
}
