/**
 * ============================================================================
 * TERMINAL & CLI STYLES — Mayank Yadav Founder Digital HQ
 * Embedded Terminal & Global Overlay Hacker Shell (` or ~)
 * ============================================================================
 */

/* ===== 1. Embedded Terminal Window ===== */
.terminal-window {
  background: #08080c;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 2.5rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.terminal-header {
  background: #0d0d14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot-red { background: #ff5f56; }
.terminal-dot-yellow { background: #ffbd2e; }
.terminal-dot-green { background: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-status {
  font-size: 0.7rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.terminal-body {
  padding: 1.25rem 1.35rem;
  min-height: 200px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--text-code);
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.terminal-line {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  width: 100%;
}

.terminal-line.dim { color: var(--text-muted); }
.terminal-line.accent { color: var(--accent-violet); }
.terminal-line.success { color: var(--accent-emerald); }
.terminal-line.cyan { color: var(--accent-cyan); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.terminal-prompt {
  color: var(--accent-emerald);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* ===== 2. Global Founder CLI Overlay Modal (` or ~) ===== */
.founder-cli-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-cli-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.founder-cli-window {
  width: 100%;
  max-width: 760px;
  background: #08080d;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(167, 139, 250, 0.15);
  overflow: hidden;
  font-family: var(--font-mono, monospace);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-cli-overlay.active .founder-cli-window {
  transform: translateY(0) scale(1);
}

.cli-titlebar {
  background: #0e0e16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cli-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cli-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: default;
}

.cli-dot.red {
  background: #ff5f56;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.cli-dot.red:hover { filter: brightness(1.2); }
.cli-dot.yellow { background: #ffbd2e; }
.cli-dot.green { background: #27c93f; }

.cli-title {
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.05em;
}

.cli-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-emerald, #34d399);
  letter-spacing: 0.05em;
}

.cli-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald, #34d399);
  box-shadow: 0 0 8px var(--accent-emerald, #34d399);
  animation: pulse 1.6s infinite;
}

.cli-body {
  padding: 1.25rem 1.4rem;
  height: 420px;
  max-height: 65vh;
  overflow-y: auto;
  color: #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

.cli-output {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.cli-line {
  word-break: break-word;
  white-space: pre-wrap;
}

.cli-line.accent { color: var(--accent-violet, #a78bfa); font-weight: 600; }
.cli-line.dim { color: var(--text-muted, #94a3b8); }
.cli-line.cyan { color: var(--accent-cyan, #38bdf8); }
.cli-line.success { color: var(--accent-emerald, #34d399); }
.cli-line.prompt-echo { color: #f1f5f9; }
.cli-prompt-echo { color: var(--accent-emerald, #34d399); font-weight: 600; }

.cli-cmd-highlight {
  color: var(--accent-cyan, #38bdf8);
  font-weight: 600;
}

.cli-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.cli-prompt {
  color: var(--accent-emerald, #34d399);
  font-weight: 700;
  font-size: 0.86rem;
  flex-shrink: 0;
}

.cli-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.86rem;
  flex: 1;
}

@media (max-width: 600px) {
  .founder-cli-overlay {
    padding: 0.75rem;
  }
  .cli-body {
    height: 340px;
    padding: 1rem;
    font-size: 0.78rem;
  }
  .cli-title {
    display: none;
  }
}
