/* TERMINAL DESIGN SYSTEM */
:root {
  --bg: #0b0f14;
  --fg: #e0e0e0;
  --accent: #4fd1c5;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --border: #2d3748;
  --font-mono: 'Courier New', monospace;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

main.terminal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.terminal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
}

.terminal-status {
  font-size: 0.9rem;
  color: var(--warn);
}

.terminal-section {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.section-header {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.terminal-output {
  background: #1a202c;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.protocol-card {
  background: #1a202c;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.protocol-card h3 {
  color: var(--accent);
  margin-top: 0;
}

.protocol-card ul {
  margin: 0;
  padding-left: 1.5rem;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
}

.terminal-table th,
.terminal-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.terminal-table th {
  background: #1a202c;
  color: var(--accent);
}

.terminal-table tr:hover {
  background: rgba(79, 209, 197, 0.1);
}

.ok {
  color: var(--ok);
}

.warn {
  color: var(--warn);
}

.err {
  color: var(--err);
}

.film-embed {
  background: #1a202c;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.film-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.film-link:hover {
  text-decoration: underline;
}

.film-meta {
  font-size: 0.9rem;
  color: var(--warn);
  margin: 0;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: 0.5rem;
}

.resource-list a {
  color: var(--accent);
  text-decoration: none;
}

.resource-list a:hover {
  text-decoration: underline;
}

.cross-note {
  font-size: 0.9rem;
  color: var(--warn);
  margin-top: 0.5rem;
}

.terminal-footer {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--warn);
}

.footer-line {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .terminal-section {
    padding: 0.75rem;
  }
  
  .protocol-grid {
    grid-template-columns: 1fr;
  }
  
  .terminal-table th,
  .terminal-table td {
    padding: 0.5rem;
  }
}