/* ============================================
   cyberagent.css — additions only.
   Loaded after css/style.css, same pattern the
   cheatsheet-*.html pages use: inherit the shared
   theme/tokens, add only what this page needs.
   ============================================ */

/* ── Reused "cheatsheet-style" primitives (copied from the
   iptables/docker/ip-addressing pages so this page matches
   them exactly, since they aren't in the base stylesheet) ── */
.overview-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.overview-card h3 { margin: 0 0 0.75rem; font-size: 1rem; color: var(--text-primary); display:flex; align-items:center; gap:0.5rem; }
.overview-card p { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.75; }
.overview-card p:last-child { margin: 0; }

.warning-card {
  background: rgba(255,80,80,0.06); border: 1px solid rgba(255,80,80,0.3);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.warning-card i, .warning-card span.wc-icon { color: #ff5050; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.warning-card p { margin: 0; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }

.code-block {
  background: #0d1117; border: 1px solid #30363d; border-radius: 10px;
  padding: 1.25rem 1.5rem; overflow-x: auto; position: relative; margin: 0.75rem 0 1rem;
}
.code-block pre { margin: 0; background: transparent; border: none; padding: 0; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.75; color: #e6edf3; white-space: pre; }
.copy-btn {
  position: absolute; top: 10px; right: 12px; background: #21262d;
  border: 1px solid #30363d; color: #8b949e; font-size: 0.7rem;
  padding: 3px 10px; border-radius: 5px; cursor: pointer;
  transition: background 0.2s, color 0.2s; font-family: inherit;
}
.copy-btn:hover { background: #30363d; color: #e6edf3; }
.copy-btn.copied { color: #3fb950; border-color: #3fb950; }
[data-theme="light"] .code-block, body.light .code-block { background: #161b22; }

.step-block {
  display: flex; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-card); margin-bottom: 0.6rem; align-items: flex-start;
}
.step-num {
  background: var(--accent); color: var(--bg-primary); font-size: 0.72rem; font-weight: 700;
  border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.step-body { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }
.step-body strong { color: var(--text-primary); }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (max-width: 600px) { .stat-row { grid-template-columns: repeat(2,1fr); } }
.stat-card { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); text-align: center; }
.stat-card .sv { font-size: 1.3rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-card .sl { font-size: 0.7rem; color: var(--text-secondary); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }

.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.toolbar-btn, .code-tab {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); font-size: 0.82rem; cursor: pointer;
  transition: all 0.15s; font-family: inherit; font-weight: 600;
}
.toolbar-btn:hover, .code-tab:hover { border-color: var(--accent); color: var(--accent); }
.code-tab.active { background: var(--accent-dim); border-color: var(--border-accent); color: var(--accent); }
.code-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.code-panel { display: none; }
.code-panel.active { display: block; }
.code-note { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 0.6rem; }

/* ── This project's own additions (not in any existing page) ── */

.disclaimer-banner {
  border: 1px solid var(--border-accent); background: var(--accent-dim);
  border-radius: var(--radius); padding: 0.9rem 1.2rem; font-size: 0.85rem;
  color: var(--text-secondary); display: flex; gap: 0.7rem; align-items: flex-start;
  margin-top: 1.5rem;
}
.disclaimer-banner strong { color: var(--text-primary); }

.console-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); overflow: hidden; }
.console-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
}
.console-titlebar .tl-dot { width: 9px; height: 9px; border-radius: 50%; }
.console-body { padding: 1.25rem; }
#event-input {
  width: 100%; min-height: 150px; resize: vertical;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-family: var(--font-mono); font-size: 0.85rem;
  padding: 0.9rem 1rem; outline: none; transition: border-color 0.2s;
}
#event-input:focus { border-color: var(--accent); }
.console-actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.9rem; flex-wrap: wrap; }
.sample-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sample-btn {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary);
  background: transparent; border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 12px; cursor: pointer; transition: all 0.15s;
}
.sample-btn:hover { border-color: var(--accent); color: var(--accent); }
.char-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

.result-area { margin-top: 1.25rem; }
.result-placeholder { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
.result-card { border-left: 4px solid var(--text-muted); background: var(--bg-secondary); border-radius: 8px; padding: 1.1rem 1.3rem; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-card.sev-INFO     { border-left-color: #79c0ff; }
.result-card.sev-LOW      { border-left-color: #50c878; }
.result-card.sev-MEDIUM   { border-left-color: #ffa500; }
.result-card.sev-HIGH     { border-left-color: #ff5050; }
.result-card.sev-CRITICAL { border-left-color: #ff2d55; }

.result-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.result-class { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.sev-badge { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.04em; }
.sev-badge.sev-INFO     { background: rgba(121,192,255,0.15); color: #79c0ff; }
.sev-badge.sev-LOW      { background: rgba(80,200,120,0.15); color: #50c878; }
.sev-badge.sev-MEDIUM   { background: rgba(255,165,0,0.15); color: #ffa500; }
.sev-badge.sev-HIGH     { background: rgba(255,80,80,0.15); color: #ff5050; }
.sev-badge.sev-CRITICAL { background: rgba(255,45,85,0.18); color: #ff2d55; }

.result-row { margin-bottom: 0.8rem; font-size: 0.86rem; }
.result-row .rl { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.result-row ul { margin-left: 1.1rem; color: var(--text-secondary); }
.result-row p { color: var(--text-secondary); margin: 0; }
.confidence-bar-wrap { height: 6px; background: var(--bg-primary); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.confidence-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; }
.result-footer { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.9rem; border-top: 1px solid var(--border); padding-top: 0.7rem; }
.error-card { border-left: 4px solid #ff5050; background: var(--bg-secondary); border-radius: 8px; padding: 1rem 1.2rem; font-size: 0.85rem; color: var(--text-secondary); }

.arch-diagram {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary);
  background: #0d1117; border: 1px solid #30363d; border-radius: var(--radius);
  padding: 1.5rem; white-space: pre; overflow-x: auto; line-height: 1.9;
}
.arch-diagram .arch-accent { color: var(--accent); }

.roadmap-list { list-style: none; margin: 0 !important; }
.roadmap-list li { display: flex; gap: 0.7rem; padding: 0.5rem 0; font-size: 0.86rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.roadmap-list li:last-child { border-bottom: none; }
.roadmap-list .rm-tag { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); background: var(--accent-dim); border-radius: 6px; padding: 2px 8px; height: fit-content; flex-shrink: 0; }
