/* ==========================================================================
   petee.me — Retro-Modern Hacker Terminal Stylesheet
   Designed for Pete (Peteedoo)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', Menlo, Monaco, Consolas, 'Courier New', monospace;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Green Phosphor (Default VT100 / Matrix) */
html[data-theme="green"] {
  --bg-primary: #0a110a;
  --bg-secondary: #0f1c10;
  --bg-tertiary: #162917;
  --bg-input: #080f08;
  --text-main: #39ff14;
  --text-muted: #27a810;
  --text-bright: #a6ff94;
  --accent: #39ff14;
  --accent-glow: rgba(57, 255, 20, 0.4);
  --accent-soft: rgba(57, 255, 20, 0.12);
  --border-color: #1e3d1f;
  --border-glow: rgba(57, 255, 20, 0.25);
  --scanline-color: rgba(18, 36, 18, 0.35);
  --crt-vignette: radial-gradient(circle, rgba(10,17,10,0) 65%, rgba(0,0,0,0.85) 100%);
}

/* Amber Phosphor (DEC VT220) */
html[data-theme="amber"] {
  --bg-primary: #120c02;
  --bg-secondary: #1f1505;
  --bg-tertiary: #2d1e08;
  --bg-input: #0d0801;
  --text-main: #ffb000;
  --text-muted: #b87c00;
  --text-bright: #ffe08a;
  --accent: #ffb000;
  --accent-glow: rgba(255, 176, 0, 0.45);
  --accent-soft: rgba(255, 176, 0, 0.12);
  --border-color: #47320c;
  --border-glow: rgba(255, 176, 0, 0.28);
  --scanline-color: rgba(38, 25, 5, 0.35);
  --crt-vignette: radial-gradient(circle, rgba(18,12,2,0) 65%, rgba(0,0,0,0.85) 100%);
}

/* Cyber Cyan (Blade Runner / Modern Unix) */
html[data-theme="cyan"] {
  --bg-primary: #040e14;
  --bg-secondary: #081a24;
  --bg-tertiary: #0e2736;
  --bg-input: #02090d;
  --text-main: #00f0ff;
  --text-muted: #009eb3;
  --text-bright: #b8f8ff;
  --accent: #00f0ff;
  --accent-glow: rgba(0, 240, 255, 0.45);
  --accent-soft: rgba(0, 240, 255, 0.12);
  --border-color: #123d54;
  --border-glow: rgba(0, 240, 255, 0.3);
  --scanline-color: rgba(8, 26, 36, 0.35);
  --crt-vignette: radial-gradient(circle, rgba(4,14,20,0) 65%, rgba(0,0,0,0.85) 100%);
}

/* Nord Clean Modern */
html[data-theme="nord"] {
  --bg-primary: #242933;
  --bg-secondary: #2e3440;
  --bg-tertiary: #3b4252;
  --bg-input: #1e222a;
  --text-main: #eceff4;
  --text-muted: #88c0d0;
  --text-bright: #81a1c1;
  --accent: #88c0d0;
  --accent-glow: rgba(136, 192, 208, 0.35);
  --accent-soft: rgba(136, 192, 208, 0.12);
  --border-color: #434c5e;
  --border-glow: rgba(136, 192, 208, 0.2);
  --scanline-color: rgba(46, 52, 64, 0.2);
  --crt-vignette: radial-gradient(circle, rgba(36,41,51,0) 75%, rgba(15,17,21,0.7) 100%);
}

/* Matrix Toxic Green on Pitch Black */
html[data-theme="matrix"] {
  --bg-primary: #000000;
  --bg-secondary: #040d04;
  --bg-tertiary: #081a08;
  --bg-input: #000000;
  --text-main: #00ff41;
  --text-muted: #008f11;
  --text-bright: #b3ffc7;
  --accent: #00ff41;
  --accent-glow: rgba(0, 255, 65, 0.5);
  --accent-soft: rgba(0, 255, 65, 0.15);
  --border-color: #0d380f;
  --border-glow: rgba(0, 255, 65, 0.3);
  --scanline-color: rgba(0, 25, 4, 0.4);
  --crt-vignette: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.95) 100%);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--text-main);
  color: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   CRT Screen Overlays (Scanlines & Curved Vignette)
   -------------------------------------------------------------------------- */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: var(--crt-vignette);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.crt-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    var(--scanline-color) 50%
  );
  background-size: 100% 4px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

body.crt-enabled .crt-overlay,
body.crt-enabled .crt-scanlines {
  opacity: 1;
}

body.crt-enabled .terminal-shell {
  text-shadow: 0 0 4px var(--accent-glow);
}

/* Matrix Background Canvas */
#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.matrix-active #matrix-canvas {
  opacity: 0.85;
}

body.matrix-active .terminal-shell {
  background-color: rgba(4, 13, 4, 0.88);
  backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   Terminal Shell / Window Architecture
   -------------------------------------------------------------------------- */
.terminal-shell {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 28px auto;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.8),
    0 0 20px var(--border-glow);
  overflow: hidden;
  transition: all var(--transition-normal);
}

/* Fullscreen Mode */
.terminal-shell.fullscreen {
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  border-radius: 0;
  border: none;
}

/* --------------------------------------------------------------------------
   Terminal Titlebar / Header
   -------------------------------------------------------------------------- */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
  gap: 12px;
}

/* Traffic Lights */
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 60px;
}

.btn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-dot:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.dot-close { background-color: #ff5f56; }
.dot-minimize { background-color: #ffbd2e; }
.dot-maximize { background-color: #27c93f; }

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-icon {
  color: var(--accent);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status Indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}

.status-dot.pulse {
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Tool Buttons in Header */
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Navigation Tabs
   -------------------------------------------------------------------------- */
.terminal-nav {
  display: flex;
  align-items: stretch;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: thin;
}

.terminal-nav::-webkit-scrollbar {
  height: 4px;
}
.terminal-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-tab:hover {
  background-color: var(--bg-secondary);
  color: var(--text-bright);
}

.nav-tab.active {
  background-color: var(--bg-secondary);
  color: var(--accent);
  font-weight: 600;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.tab-glyph {
  opacity: 0.7;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Terminal Body / Content Area
   -------------------------------------------------------------------------- */
.terminal-body {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Welcome Banner */
.banner-section {
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 18px;
}

.ascii-art {
  font-size: 10.5px;
  line-height: 1.15;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 14px;
}

.banner-subtext {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tagline {
  font-size: 15px;
  color: var(--text-bright);
}

.welcome-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.banner-hint {
  font-size: 12.5px;
  color: var(--text-bright);
  margin-top: 4px;
}

.cmd-chip {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
}

.accent-highlight {
  color: var(--accent);
  font-weight: 600;
}

/* Quick Command Pills */
.quick-commands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.quick-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.quick-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   Tab Panes
   -------------------------------------------------------------------------- */
.tab-pane {
  display: none;
  flex-direction: column;
  flex: 1;
}

.tab-pane.active {
  display: flex;
}

/* CLI Output Stream */
.terminal-scrollback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

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

.terminal-line.cmd-echo {
  color: var(--text-bright);
  font-weight: 600;
}

.terminal-line.output-text {
  color: var(--text-main);
}

.terminal-line.error-text {
  color: #ff5f56;
}

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

/* CLI Interactive Prompt Line */
.cli-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
  margin-top: auto;
}

.cli-prompt {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
  font-size: 13.5px;
}

.prompt-user { color: var(--accent); }
.prompt-at { color: var(--text-muted); }
.prompt-host { color: var(--text-bright); }
.prompt-colon { color: var(--text-muted); }
.prompt-path { color: var(--accent); }
.prompt-char { color: var(--text-bright); margin-left: 4px; }

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.cli-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-bright);
  caret-color: transparent; /* custom cursor */
}

/* Custom Blinking Cursor */
.cursor-block {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  margin-left: 2px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   View Articles / Tab Content Layouts
   -------------------------------------------------------------------------- */
.view-article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
  letter-spacing: 1px;
}

.view-article h2 {
  font-size: 22px;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.lead-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
}

.section-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Two Column Grid */
.grid-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.bio-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.bio-card h3 {
  font-size: 15px;
  color: var(--text-bright);
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 6px;
}

.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.styled-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
}

.styled-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Tech Stack Tags */
.tech-stack-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-stack-section h3 {
  font-size: 15px;
  color: var(--text-bright);
}

.stack-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-category-name {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Projects Grid
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-soft);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-type {
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.badge-status {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.badge-status.online {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-color);
}

.badge-status.beta {
  background: rgba(255, 176, 0, 0.15);
  color: #ffb000;
  border: 1px solid rgba(255, 176, 0, 0.3);
}

.project-title {
  font-size: 17px;
  color: var(--text-bright);
}

.project-summary {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.55;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-mini {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.project-actions {
  margin-top: 4px;
}

.project-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.project-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   Homelab ASCII Diagram
   -------------------------------------------------------------------------- */
.ascii-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
}

.ascii-diagram {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Notes List & Reader
   -------------------------------------------------------------------------- */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.note-item:hover {
  border-color: var(--accent);
  background: var(--bg-input);
  box-shadow: 0 4px 16px var(--accent-soft);
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.note-title {
  font-size: 17px;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.note-excerpt {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 10px;
}

.read-more {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* Note Dialog Modal */
.note-dialog {
  border: 1px solid var(--accent);
  background: var(--bg-secondary);
  color: var(--text-main);
  border-radius: var(--radius-md);
  max-width: 780px;
  width: 90%;
  margin: auto;
  padding: 0;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9), 0 0 25px var(--accent-glow);
}

.note-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.dialog-content {
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.dialog-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.dialog-close:hover {
  color: #ff5f56;
}

.dialog-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialog-body h3 {
  color: var(--text-bright);
  margin-top: 10px;
}

.dialog-body pre {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Telemetry / Diagnostics Grid
   -------------------------------------------------------------------------- */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.telemetry-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
}

.telemetry-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.telemetry-pill.ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.telemetry-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.metric-label {
  color: var(--text-muted);
}

.metric-val {
  color: var(--text-bright);
  font-weight: 600;
}

.telemetry-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.ping-feedback {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Contact Grid & PGP Box
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.contact-type {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 15px;
  margin-bottom: 8px;
}

.accent-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}

.accent-link:hover {
  border-bottom-style: solid;
  text-shadow: 0 0 8px var(--accent-glow);
}

.contact-note {
  font-size: 12px;
  color: var(--text-muted);
}

.pgp-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pgp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
}

.copy-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.pgp-fingerprint {
  font-size: 13.5px;
  color: var(--text-bright);
  letter-spacing: 1px;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Terminal Footer / Statusbar (Vim / Tmux Style)
   -------------------------------------------------------------------------- */
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  font-size: 11.5px;
  user-select: none;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-tag {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 2px;
}

.footer-branch {
  color: var(--text-muted);
}

.footer-file {
  color: var(--text-bright);
}

.footer-center {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-kbd {
  color: var(--text-bright);
  font-weight: 600;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.clock-display {
  color: var(--text-bright);
}

/* --------------------------------------------------------------------------
   Neofetch ASCII & Info Table
   -------------------------------------------------------------------------- */
.neofetch-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0;
  background: var(--bg-primary);
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.neofetch-logo {
  font-size: 11px;
  line-height: 1.2;
  color: var(--accent);
  white-space: pre;
}

.neofetch-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.neofetch-user {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.neofetch-row {
  display: flex;
  gap: 8px;
}

.neofetch-key {
  color: var(--accent);
  font-weight: 600;
  min-width: 90px;
}

.neofetch-val {
  color: var(--text-main);
}

.color-blocks {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.c-block {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .terminal-shell {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .terminal-header {
    padding: 8px 12px;
  }

  .title-text {
    font-size: 12px;
  }

  .tool-btn .btn-label {
    display: none;
  }

  .terminal-body {
    padding: 14px;
  }

  .ascii-art {
    font-size: 8px;
  }

  .footer-center {
    display: none;
  }

  .grid-two-col, .project-grid {
    grid-template-columns: 1fr;
  }
}
