/* Semi Daily News - Minimal CSS */

:root {
  --primary: #0B67C2;
  --primary-dark: #084E94;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Navbar */
.navbar {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; margin-left: 1.5rem; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }

/* Footer */
.footer { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; text-align: center; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Section */
.section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.section h2 { font-size: 1.2rem; margin-bottom: 1rem; border-bottom: 2px solid var(--primary); padding-bottom: 0.4rem; }

/* Two Column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: #e5e7eb; color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: #d1d5db; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-small { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.action-buttons { display: flex; gap: 0.75rem; margin-bottom: 1rem; }

/* Badges */
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; background: #e0e7ff; color: #3730a3; }
.badge-secondary { background: #f3f4f6; color: var(--text-muted); }
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-ng { background: #fee2e2; color: #991b1b; }

/* Status Area */
.status-area { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.status-running { background: #fef3c7; color: #92400e; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-failed { background: #fee2e2; color: #991b1b; }

/* Lists */
.item-list { list-style: none; }
.item-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.item-list li:last-child { border-bottom: none; }
.item-list a { color: var(--primary); text-decoration: none; }
.item-list a:hover { text-decoration: underline; }
.muted { color: var(--text-muted); font-style: italic; }

/* Tables */
.source-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.source-table th, .source-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.source-table th { background: #f9fafb; font-weight: 600; }
.source-table tr:hover { background: #f9fafb; }
.url-cell { word-break: break-all; max-width: 400px; }
.url-cell a { color: var(--primary); text-decoration: none; font-size: 0.8rem; }

/* Source group */
.source-group { overflow-x: auto; }

/* Alerts */
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Proposal detail */
.proposal-header { margin-bottom: 2rem; }
.proposal-header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.proposal-header .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.proposal-section { margin-bottom: 1.5rem; }
.executive-summary, .market-outlook { font-size: 1rem; line-height: 1.8; }
.trend-card, .rec-card, .topic-card { border-left: 3px solid var(--primary); padding: 0.75rem 1rem; margin-bottom: 1rem; background: #fafbfc; border-radius: 0 6px 6px 0; }
.trend-card h3, .rec-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.topic-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.impact-text { margin-bottom: 0.5rem; }
.evidence-list ul, .action-items ul { margin-left: 1.2rem; margin-top: 0.3rem; }
.impact-tags { margin-top: 0.5rem; display: flex; gap: 0.3rem; flex-wrap: wrap; }
