/* ═══════════════════════════════════════════════════════════════
   ZION TERMINAL v6.0 — Professional Terminal CSS
   Dark theme with green accents — offensive security aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ═══ TERMINAL SECTION ═══ */
.terminal-section {
  padding: 60px 0 80px;
}

.terminal-section .section-title,
.terminal-section .section-subtitle {
  text-align: center;
}

/* ═══ TERMINAL WRAPPER ═══ */
.terminal-wrapper {
  max-width: 960px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.terminal-wrapper.fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  max-width: none;
  z-index: 9999;
  margin: 0;
  border-radius: 0;
}

.terminal-wrapper.fullscreen .terminal-container {
  border-radius: 0;
  height: 100vh;
}

.terminal-wrapper.fullscreen .terminal-body {
  max-height: calc(100vh - 100px);
  height: calc(100vh - 100px);
}

.terminal-wrapper.fullscreen .terminal-hints {
  display: none;
}

@media (max-width: 1024px) {
  .terminal-wrapper { max-width: 95%; }
}

@media (max-width: 768px) {
  .terminal-wrapper { max-width: 100%; margin: 0 10px; }
  .terminal-section { padding: 40px 0 60px; }
}

/* ═══ TERMINAL CONTAINER ═══ */
.terminal-container {
  background: #0a0e14;
  border: 1px solid rgba(0,255,65,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,255,65,0.04),
    0 12px 40px rgba(0,0,0,0.7),
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.02);
}

/* ═══ TERMINAL HEADER ═══ */
.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(180deg, #181d28 0%, #12161e 100%);
  border-bottom: 1px solid rgba(0,255,65,0.08);
  gap: 12px;
  user-select: none;
  min-height: 40px;
}

/* Traffic light buttons */
.terminal-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.terminal-buttons span:hover {
  filter: brightness(1.4);
  transform: scale(1.15);
}

.terminal-buttons span:active {
  transform: scale(0.9);
}

.terminal-btn-close {
  background: #ff5f57;
  box-shadow: 0 0 4px rgba(255,95,87,0.3);
}

.terminal-btn-minimize {
  background: #febc2e;
  box-shadow: 0 0 4px rgba(254,188,46,0.3);
}

.terminal-btn-maximize {
  background: #28c840;
  box-shadow: 0 0 4px rgba(40,200,64,0.3);
}

/* Title and badges */
.terminal-title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: #8b949e;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-live-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: #00ff41;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.terminal-status-dot {
  width: 6px;
  height: 6px;
  background: #00ff41;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0,255,65,0.5);
}

.terminal-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: #484f58;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0,255,65,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 3px rgba(0,255,65,0.2); }
}

/* ═══ TERMINAL BODY ═══ */
.terminal-body {
  display: flex;
  flex-direction: column;
  height: 480px;
  max-height: 480px;
  background: #0a0e14;
  position: relative;
}

@media (max-width: 768px) {
  .terminal-body {
    height: 380px;
    max-height: 380px;
  }
}

/* ═══ OUTPUT AREA ═══ */
.terminal-output {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #c9d1d9;
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.terminal-output::-webkit-scrollbar {
  width: 6px;
}

.terminal-output::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: rgba(0,255,65,0.15);
  border-radius: 3px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: rgba(0,255,65,0.3);
}

/* Output lines */
.term-line {
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 1.2em;
  padding: 0;
  margin: 0;
}

.term-line:empty::after {
  content: '\00a0';
}

/* Selection styling */
.terminal-output ::selection {
  background: rgba(0,255,65,0.2);
  color: #fff;
}

/* ═══ INPUT LINE ═══ */
.terminal-input-line {
  display: flex;
  align-items: center;
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(0,255,65,0.06);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.input-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  white-space: nowrap;
  color: #c9d1d9;
  margin-right: 4px;
  user-select: none;
  flex-shrink: 0;
}

.input-prompt .p-user { color: #39ff14; }
.input-prompt .p-sep  { color: #c9d1d9; }
.input-prompt .p-dir  { color: #00d4ff; }
.input-prompt .p-sign { color: #c9d1d9; }

.terminal-input-line input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  caret-color: #00ff41;
  padding: 0;
  margin: 0;
}

.terminal-input-line input::placeholder {
  color: #30363d;
  font-style: italic;
}

/* Blinking cursor effect */
.terminal-input-line input:focus {
  outline: none;
}

/* ═══ LOADING SPINNER ═══ */
.term-loading {
  opacity: 0.8;
}

.term-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,255,65,0.2);
  border-top-color: #00ff41;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══ STATUS BAR ═══ */
.terminal-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
  background: rgba(0,0,0,0.5);
  border-top: 1px solid rgba(0,255,65,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: #484f58;
  flex-shrink: 0;
  min-height: 22px;
}

.statusbar-left,
.statusbar-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-item i {
  font-size: 0.58rem;
  opacity: 0.6;
}

/* ═══ HINT CHIPS ═══ */
.terminal-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  justify-content: center;
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(0,255,65,0.04);
  border: 1px solid rgba(0,255,65,0.12);
  border-radius: 20px;
  color: #8b949e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hint-chip:hover {
  background: rgba(0,255,65,0.1);
  border-color: rgba(0,255,65,0.35);
  color: #00ff41;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0,255,65,0.12);
}

.hint-chip:active {
  transform: translateY(0);
}

.hint-chip i {
  font-size: 0.62rem;
  opacity: 0.7;
}

.hint-chip:hover i {
  opacity: 1;
}

@media (max-width: 768px) {
  .terminal-hints {
    padding: 12px;
    gap: 6px;
  }
  .hint-chip {
    font-size: 0.62rem;
    padding: 4px 10px;
  }
}

/* ═══ GLOW EFFECTS ═══ */
.terminal-container:hover {
  border-color: rgba(0,255,65,0.18);
  box-shadow:
    0 0 0 1px rgba(0,255,65,0.06),
    0 12px 40px rgba(0,0,0,0.7),
    0 4px 12px rgba(0,0,0,0.4),
    0 0 60px rgba(0,255,65,0.03);
}

/* ═══ CONTROLS (if present) ═══ */
.terminal-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}