/* AgasightMeeting — report + index page styling */

:root {
  --bg: #0f1419;
  --surface: #1a2230;
  --surface-2: #232c3d;
  --text: #e8eef5;
  --muted: #8a9aae;
  --accent: #5eead4;
  --accent-2: #fbbf24;
  --danger: #f87171;
  --border: #2d3748;
  --pill: #334155;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans CJK TC",
               "Microsoft JhengHei", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header, footer, main { max-width: 880px; margin: 0 auto; padding: 24px 20px; }

header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.5px;
}

nav {
  margin: 12px 0 8px;
  display: flex;
  gap: 16px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
}

nav a.active, nav a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}

.participants {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  background: var(--pill);
  color: var(--text);
  border-radius: 999px;
  font-size: 12px;
}

/* ---- Index ---- */

.empty-state {
  background: var(--surface);
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
}

.meetings-list { display: flex; flex-direction: column; gap: 16px; }

.meeting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.meeting-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.meeting-card h2 a {
  color: var(--accent);
  text-decoration: none;
}

.meeting-card h2 a:hover { text-decoration: underline; }

.meeting-card .decision {
  background: var(--surface-2);
  padding: 10px 14px;
  border-left: 3px solid var(--accent-2);
  border-radius: 4px;
  margin: 12px 0 10px;
}

/* ---- Meeting report ---- */

.report {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  margin-top: 24px;
}

.report h2 {
  color: var(--accent);
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.report h2:first-child { margin-top: 0; }

.report h3 { color: var(--accent-2); margin-top: 24px; }

.report ul, .report ol { padding-left: 24px; }

.report blockquote {
  border-left: 3px solid var(--accent);
  margin: 12px 0;
  padding: 4px 16px;
  color: var(--muted);
}

.report code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.report strong { color: var(--text); }

/* ---- Transcript + facilitation collapsibles ---- */

.prep {
  margin-top: 24px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
}

.prep summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
  padding: 4px 0;
}

.prep-body {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.prep-bot {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.prep-bot h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent);
}

.prep-bot ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.prep-bot li {
  margin-bottom: 6px;
}

.transcript, .facilitation {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.transcript summary, .facilitation summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
}

.transcript-body {
  margin-top: 16px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.transcript-body h1 { font-size: 18px; }

.facilitation table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.facilitation th, .facilitation td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.facilitation th { color: var(--muted); font-weight: 500; }

.facilitation tr.action-pushback { background: rgba(251, 191, 36, 0.06); }
.facilitation tr.action-cutoff { background: rgba(248, 113, 113, 0.08); }
.facilitation tr.action-wrap { background: rgba(94, 234, 212, 0.06); }

footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}
