/* ============================================
   DCG PANAMA — ABOUT PAGE
   Interactive Shell Terminal
   ============================================ */

.about-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  padding-top: 80px;
}

/* --- Terminal Window --- */
.terminal-window {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--red-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 10px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 255, 65, 0.03);
  animation: terminalBoot 0.6s ease forwards;
}

@keyframes terminalBoot {
  0% {
    opacity: 0;
    transform: scale(0.95);
    filter: brightness(2);
  }
  50% {
    filter: brightness(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

/* --- Terminal Title Bar --- */
.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(to bottom, #1e1e1e, #161616);
  border-bottom: 1px solid var(--red-dark);
}

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

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

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-dim);
  letter-spacing: 1px;
}

.terminal-title-right {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red-dim);
  letter-spacing: 1px;
}

/* --- Terminal Body --- */
.terminal-body {
  background: var(--bg-terminal);
  padding: 20px;
  height: 520px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  position: relative;
}

.terminal-body::-webkit-scrollbar {
  width: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--red-dark);
}

/* --- Terminal Output Lines --- */
.terminal-output .line {
  margin-bottom: 2px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.terminal-output .line.command {
  color: var(--white);
}

.terminal-output .line.output {
  color: var(--red-dim);
}

.terminal-output .line.error {
  color: var(--red-accent);
}

.terminal-output .line.info {
  color: var(--cyan-accent);
}

.terminal-output .line.warning {
  color: var(--amber);
}

.terminal-output .line.header {
  color: var(--red-primary);
  text-shadow: 0 0 5px var(--red-glow);
  font-family: var(--font-retro);
  font-size: 1rem;
}

.terminal-output .line.dim {
  color: var(--white-dim);
  opacity: 0.6;
}

.terminal-output .line.highlight {
  color: var(--red-primary);
  text-shadow: 0 0 5px var(--red-glow);
}

/* Directory listing styling */
.terminal-output .dir-entry {
  color: var(--cyan-accent);
}

.terminal-output .file-entry {
  color: var(--red-dim);
}

.terminal-output .exec-entry {
  color: var(--red-primary);
}

/* --- Prompt --- */
.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
}

.prompt-user {
  color: var(--red-primary);
  text-shadow: 0 0 5px var(--red-glow);
}

.prompt-separator {
  color: var(--white-dim);
}

.prompt-path {
  color: var(--cyan-accent);
}

.prompt-symbol {
  color: var(--white);
  margin: 0 6px 0 2px;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
  caret-color: var(--red-primary);
}

.terminal-input::placeholder {
  color: rgba(136, 136, 136, 0.3);
}

/* --- Help Table --- */
.help-table {
  margin: 0.5rem 0;
}

.help-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2px;
}

.help-cmd {
  color: var(--red-primary);
  min-width: 180px;
  font-weight: bold;
}

.help-desc {
  color: var(--white-dim);
}

/* --- ASCII Art --- */
.ascii-art {
  color: var(--red-primary);
  text-shadow: 0 0 5px var(--red-glow);
  font-family: var(--font-retro);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: pre;
}

/* --- Section Content Display --- */
.content-block {
  margin: 0.5rem 0;
  padding-left: 0;
}

.content-block .content-title {
  color: var(--red-primary);
  text-shadow: 0 0 5px var(--red-glow);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-retro);
}

.content-block .content-text {
  color: var(--white-dim);
  line-height: 1.7;
}

.content-block .content-bullet {
  color: var(--red-dim);
  padding-left: 1rem;
}

.content-block .content-bullet::before {
  content: '> ';
  color: var(--red-primary);
}

/* --- Bottom Bar --- */
.terminal-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: linear-gradient(to bottom, #161616, #111);
  border-top: 1px solid var(--red-dark);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-dim);
}

.statusbar-left {
  display: flex;
  gap: 15px;
}

.statusbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.statusbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 4px var(--red-glow);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .terminal-body {
    height: 450px;
    padding: 15px;
    font-size: 0.8rem;
  }

  .terminal-input {
    font-size: 0.8rem;
  }

  .help-cmd {
    min-width: 140px;
  }

  .ascii-art {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .terminal-body {
    height: 400px;
    font-size: 0.75rem;
  }

  .help-cmd {
    min-width: 120px;
  }
}
