/* Neon Terminal – final */

#neon-terminal {
  --bg: rgba(18,16,28,.90);
  --border: rgba(122,107,168,.45);
  --glow: rgba(151,120,255,.35);
  --text: #e9f3ff;
  --muted: #b2b8d1;
  --green: #6bffcf;
  --cyan: #7bdcff;

  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(80,72,120,.35);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(120,90,200,.18), transparent 60%),
    linear-gradient(180deg, rgba(22,20,34,.92), rgba(22,20,34,.88));
}

#neon-terminal .term-frame {
  position: relative;
  backdrop-filter: blur(6px);
}

#neon-terminal .term-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(32,28,48,.65), rgba(24,20,36,.55));
}

#neon-terminal .dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--glow);
}
#neon-terminal .dot.red    { background: #ff5f57; }
#neon-terminal .dot.yellow { background: #febc2e; }
#neon-terminal .dot.green  { background: #28c840; }

#neon-terminal .term-titlebar .title {
  margin-left: auto;
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  color: var(--muted);
  opacity: .9;
}

/* Terminal body */
#neon-terminal .term-body {
  margin: 0;
  padding: 18px 20px 22px;
  min-height: 280px;                   
  display: block;
  width: 100%;
  color: var(--text);
  font: 500 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;

  /* Ensure left alignment on all screens */
  text-align: left !important;
  white-space: pre-wrap;
  word-break: break-word;

  /* Prevent parent alignment from affecting content */
  margin-left: 0 !important;
  margin-right: 0 !important;

  /* Subtle glow */
  text-shadow: 0 0 6px rgba(123,220,255,.15);
}

/* Typing cursor */
#neon-terminal .cursor {
  display: inline-block;
  width: .6ch;
  border-bottom: 2px solid var(--cyan);
  box-shadow: 0 0 6px var(--glow);
  transform: translateY(2px);
  animation: blink 1s steps(1,end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Semantic accents */
#neon-terminal .ok    { color: var(--green); text-shadow: 0 0 8px rgba(107,255,207,.25); }
#neon-terminal .hint  { color: var(--muted); }
#neon-terminal .cyan  { color: var(--cyan); }

/* Mobile tweaks */
@media (max-width: 600px) {
  #neon-terminal .term-body {
    font-size: 12px;           /* slightly smaller text */
    line-height: 1.6;
    padding: 14px 14px 16px;   /* reduce side padding so content hugs left */
  }
}

/* Respect reduced motion (cursor only) */
@media (prefers-reduced-motion: reduce) {
  #neon-terminal .cursor { animation: none; opacity: 1; }
}
