/* Copyright (C) 2026 Future-Industries.ai S Corporation */
/* SPDX-License-Identifier: GPL-3.0-only */
/* Shared BBS terminal footer for future-industries.ai. Self-contained — no page :root deps. */

.fi-tty {
  --tty-soot: #0d0b09;
  --tty-parchment: #e8e0d0;
  --tty-forge: #ff6b1a;
  --tty-gold: #c8a84b;
  --tty-smoke: #8a8073;
  --tty-green: #39ff7a;
  font-family: 'Share Tech Mono', monospace;
  text-align: center;
  padding: 28px 16px;
  line-height: 1.9;
  cursor: pointer;
  user-select: none;
}
.fi-tty .tty-meta {
  color: var(--tty-smoke);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.fi-tty .tty-meta a { color: inherit; text-decoration: none; }
.fi-tty .tty-meta a:hover { color: var(--tty-forge); }
.fi-tty .tty-login {
  color: var(--tty-parchment);
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-top: 6px;
}
.fi-tty .tty-login .grn { color: var(--tty-green); }
.fi-tty .tty-cur {
  color: var(--tty-forge);
  animation: tty-blink 1s step-end infinite;
}
@keyframes tty-blink { 50% { opacity: 0; } }

/* Overlay + dimmed backdrop */
.fi-tty-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 24px;
}
.fi-tty-overlay.open { display: flex; }
body.fi-tty-locked { overflow: hidden; }

/* Konsole-style window */
.fi-tty-win {
  --tty-soot: #0d0b09;
  --tty-parchment: #e8e0d0;
  --tty-forge: #ff6b1a;
  --tty-gold: #c8a84b;
  --tty-smoke: #8a8073;
  --tty-green: #39ff7a;
  width: min(900px, 100%);
  height: min(560px, 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2622;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  font-family: 'Share Tech Mono', monospace;
}
.fi-tty-titlebar {
  background: #1c1a17;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--tty-smoke);
  flex: 0 0 auto;
}
.fi-tty-dots { display: flex; gap: 7px; margin-right: 12px; }
.fi-tty-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.fi-tty-dots .d1 { background: #ff5f56; }
.fi-tty-dots .d2 { background: #ffbd2e; }
.fi-tty-dots .d3 { background: #27c93f; }
.fi-tty-title { flex: 1; text-align: center; letter-spacing: 0.04em; }
.fi-tty-close {
  background: none;
  border: none;
  color: var(--tty-smoke);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.fi-tty-close:hover { color: var(--tty-forge); }

/* Terminal screen */
.fi-tty-screen {
  flex: 1 1 auto;
  background: var(--tty-soot);
  color: var(--tty-parchment);
  font-size: 13px;
  line-height: 1.5;
  padding: 14px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.fi-tty-screen .grn { color: var(--tty-green); }
.fi-tty-screen .fg { color: var(--tty-forge); }
.fi-tty-screen .gd { color: var(--tty-gold); }
.fi-tty-screen .dim { color: var(--tty-smoke); }
.fi-tty-screen .banner {
  color: var(--tty-forge);
  text-shadow: 0 0 7px rgba(255, 107, 26, 0.4);
}
.fi-tty-promptline { display: flex; }
.fi-tty-promptline .ps1 { color: var(--tty-forge); white-space: pre; }
.fi-tty-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--tty-parchment);
  font: inherit;
  caret-color: var(--tty-forge);
}

@media (max-width: 640px) {
  .fi-tty-overlay { padding: 0; }
  .fi-tty-win { width: 100%; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fi-tty .tty-cur { animation: none; }
}
