/* ==========================================================================
   Terminal Mockup — Realistic terminal with typing animation
   ========================================================================== */

.terminal-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
}

.terminal-wrapper {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Glow behind terminal */
.terminal-wrapper::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(46, 104, 233, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ── Terminal Window ── */
.terminal {
  position: relative;
  z-index: 1;
  background: #0c0c14;
  border: 1px solid rgba(46, 104, 233, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(46, 104, 233, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Title Bar ── */
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 16px;
  background: rgba(15, 15, 25, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Terminal Body ── */
.terminal-body {
  padding: var(--space-xl);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  min-height: 200px;
}

.terminal-line {
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
}

.terminal-line.visible {
  opacity: 1;
}

.terminal-line .prompt-char {
  color: var(--blue-400);
  user-select: none;
}

.terminal-line .command {
  color: var(--text-primary);
}

.terminal-line .info-tag {
  color: var(--blue-400);
  font-weight: 600;
}

.terminal-line .info-text {
  color: var(--text-secondary);
}

.terminal-line .url {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Blinking cursor */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--blue-400);
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

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

/* ── Reflection/shine effect ── */
.terminal::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 104, 233, 0.03),
    transparent
  );
  pointer-events: none;
}
