/* ===== Agent & Skill Pages - Shared Styles ===== */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-green: #3fb950;
  --accent-purple: #bc8cff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
.container { max-width: 960px; margin: 0 auto; padding: 32px 20px; }

/* Header */
.header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header p { color: var(--text-muted); font-size: 14px; }

/* Navigation */
.nav { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.nav a {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.nav a:hover { color: var(--text); border-color: var(--text-muted); text-decoration: none; }
.nav a.active { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Table */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 480px; }
thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(88,166,255,0.04); }
tbody td { padding: 14px 16px; font-size: 14px; vertical-align: top; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* States */
.empty { padding: 40px; text-align: center; color: var(--text-muted); }
.loading { padding: 40px; text-align: center; color: var(--text-muted); }
.error {
  padding: 14px 20px;
  text-align: center;
  color: #f85149;
  background: rgba(248,81,73,0.1);
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}

/* Footer */
.footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Scenario cell in skills table */
.scene-cell { white-space: nowrap; font-weight: 500; }

/* ===== Landing Page ===== */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.landing .container { max-width: 720px; padding: 40px 24px; text-align: center; }
.hero-icon { font-size: 64px; margin-bottom: 16px; }
.landing h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing .subtitle { color: var(--text-muted); font-size: 16px; margin-bottom: 40px; }
.cards { display: flex; flex-direction: column; gap: 16px; }
.card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  text-align: left;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88,166,255,0.1);
  text-decoration: none;
}
.card-icon { font-size: 32px; flex-shrink: 0; }
.card-body h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.card-body p { font-size: 14px; color: var(--text-muted); }
.card-count {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
  .container { padding: 16px 12px; }
  tbody td { padding: 10px 12px; font-size: 13px; }
  .cards { gap: 12px; }
  .card { padding: 16px; gap: 14px; }
  .landing h1 { font-size: 28px; }
  .landing .subtitle { font-size: 14px; }
}
