/* ==========================================================================
   Layout: Terminal
   Full terminal/CLI experience - the page IS a terminal session
   ========================================================================== */

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

/* Hide default header/footer */
.site-header,
.site-footer {
  display: none !important;
}

/* Terminal container */
.terminal {
  min-height: 100vh;
  background: #0d1117;
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #c9d1d9;
}

/* Terminal chrome (top bar) */
.terminal-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #30363d;
}

.terminal-btn-close { background: #ff5f57; }
.terminal-btn-min { background: #ffbd2e; }
.terminal-btn-max { background: #28ca42; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #8b949e;
}

/* Terminal body */
.terminal-body {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .terminal-body {
    padding: 40px;
  }

  .terminal {
    font-size: 15px;
  }
}

/* Terminal content blocks */
.term-block {
  margin-bottom: 48px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.term-intro {
  margin-bottom: 64px;
  padding-top: 20px;
}

/* Command lines */
.term-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.term-prompt {
  color: #58a6ff;
  font-weight: 700;
  user-select: none;
}

.term-cmd {
  color: #c9d1d9;
}

.term-cmd.typed {
  position: relative;
}

/* Output */
.term-output {
  color: #8b949e;
  white-space: pre-wrap;
  margin-bottom: 8px;
}

/* ASCII art */
.ascii-art {
  color: #58a6ff;
  font-size: 12px;
  line-height: 1.2;
  margin: 16px 0;
}

@media (min-width: 768px) {
  .ascii-art {
    font-size: 14px;
  }
}

.term-tagline {
  color: #7ee787;
  font-size: 18px;
  font-weight: 500;
  margin-top: 24px;
}

.term-subtle {
  color: #484f58;
  font-size: 12px;
}

/* Section titles */
.term-section-title {
  color: #f0883e;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin: 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #30363d;
}

/* Lists */
.term-list {
  margin: 16px 0;
}

.term-error {
  color: #f85149;
}

.term-success {
  color: #7ee787;
}

/* Diagram */
.term-diagram {
  color: #58a6ff;
  font-size: 13px;
  margin: 24px 0;
  padding: 16px;
  background: #161b22;
  border-radius: 6px;
  overflow-x: auto;
}

/* Steps */
.term-step {
  color: #c9d1d9;
  margin: 24px 0 8px;
}

.term-step-num {
  color: #f0883e;
  font-weight: 700;
}

/* Code blocks */
.term-code-block {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 16px;
  margin: 8px 0 24px;
  overflow-x: auto;
  color: #c9d1d9;
}

.term-comment {
  color: #484f58;
}

.term-highlight-old {
  color: #f85149;
  text-decoration: line-through;
}

.term-highlight-new {
  color: #7ee787;
  font-weight: 700;
}

/* Features */
.term-features {
  margin: 16px 0;
}

.term-feature-name {
  color: #d2a8ff;
  display: inline-block;
  width: 200px;
}

@media (max-width: 600px) {
  .term-feature-name {
    display: block;
    width: auto;
    margin-bottom: 4px;
  }

  .term-features {
    line-height: 2.2;
  }
}

/* Stats box */
.term-stats {
  color: #58a6ff;
  font-size: 13px;
  margin: 16px 0;
}

/* Personas */
.term-personas {
  margin: 16px 0;
}

.term-persona {
  color: #f0883e;
  display: inline-block;
  width: 180px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .term-persona {
    display: block;
    width: auto;
    margin-bottom: 4px;
  }

  .term-personas {
    line-height: 2.2;
  }
}

/* CTA / Form */
.term-cta {
  margin-top: 64px;
  padding: 32px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
}

.term-form {
  margin: 24px 0;
}

.term-input-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.term-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #c9d1d9;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.term-input:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.term-input::placeholder {
  color: #484f58;
}

.term-submit {
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #238636;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.term-submit:hover {
  background: #2ea043;
}

/* Footer */
.term-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #30363d;
}

.term-links {
  margin: 16px 0;
}

.term-links a {
  color: #58a6ff;
  text-decoration: none;
}

.term-links a:hover {
  text-decoration: underline;
}

.term-copyright {
  color: #484f58;
  font-size: 12px;
}

/* Blinking cursor */
.term-cursor {
  animation: blink 1s step-end infinite;
  color: #58a6ff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.term-final {
  margin-bottom: 100px;
}

/* Theme compatibility */
[data-theme="cyberspace"] .terminal {
  background: #000;
}

[data-theme="cyberspace"] .terminal-chrome {
  background: #0a0a0f;
  border-bottom-color: #003333;
}

[data-theme="cyberspace"] .term-prompt {
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
}

[data-theme="cyberspace"] .ascii-art {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

[data-theme="cyberspace"] .term-tagline {
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff;
}

[data-theme="cyberspace"] .term-section-title {
  color: #ff00ff;
  border-bottom-color: #003333;
}

[data-theme="cyberspace"] .term-success {
  color: #00ff41;
  text-shadow: 0 0 5px #00ff41;
}

[data-theme="cyberspace"] .term-diagram {
  color: #00ffff;
  background: #0a0a0f;
  border: 1px solid #003333;
}

[data-theme="cyberspace"] .term-code-block {
  background: #0a0a0f;
  border-color: #003333;
}

[data-theme="cyberspace"] .term-cta {
  background: #0a0a0f;
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

[data-theme="cyberspace"] .term-input {
  background: #000;
  border-color: #003333;
  color: #00ffff;
}

[data-theme="cyberspace"] .term-input:focus {
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

[data-theme="cyberspace"] .term-submit {
  background: #00ffff;
  color: #000;
}

[data-theme="cyberspace"] .term-submit:hover {
  box-shadow: 0 0 20px #00ffff;
}

[data-theme="cyberspace"] .term-links a {
  color: #00ffff;
}

[data-theme="cyberspace"] .term-cursor {
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
}
