/* REALITY X Sentiment Monitor - Style */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a2e;
  --surface-light: #25253e;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #7c3aed;
  --positive: #22c55e;
  --negative: #ef4444;
  --neutral: #6b7280;
  --mixed: #f59e0b;
  --warning: #f97316;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 8px;
}

.disclaimer {
  background: #1e1b2e;
  border-left: 4px solid var(--warning);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: #ccc;
}

/* KPI Cards */
.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.kpi-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-card .value {
  font-size: 1.8rem;
  font-weight: bold;
}

.kpi-card .value.positive { color: var(--positive); }
.kpi-card .value.negative { color: var(--negative); }
.kpi-card .value.neutral { color: var(--neutral); }

/* Charts */
.chart-section {
  margin-bottom: 32px;
}

.chart-section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.chart-container {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  height: 300px;
}

/* Detail */
.detail-section {
  margin-bottom: 32px;
}

.detail-section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.detail-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
}

.detail-card h3 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.detail-card ul {
  list-style: none;
  padding: 0;
}

.detail-card li {
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--surface-light);
}

.detail-card li:last-child {
  border-bottom: none;
}

.risk-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 8px;
}

.risk-badge.has-risk {
  background: var(--negative);
  color: white;
}

.risk-badge.no-risk {
  background: var(--surface-light);
  color: var(--text-muted);
}

/* Footer */
footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-light);
}

/* Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 1.3rem; }
  .kpi-cards { grid-template-columns: repeat(2, 1fr); }
  .chart-container { height: 240px; }
}
