/* nusantara/frontend/style.css */
:root {
  --bg: #0b0f14;
  --panel: #131a22;
  --border: #223140;
  --text: #e6edf3;
  --muted: #8b98a5;
  --accent: #4fc3f7;
  --danger: #f87171;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

header h1 { margin: 0; font-size: 1.5rem; }
.subtitle { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
  padding: 1rem;
  align-items: start;
}

.map-panel { position: relative; }

#map {
  height: 70vh;
  min-height: 400px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.map-controls {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 85vh;
  overflow-y: auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.card-body { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.card-body.unavailable { color: var(--danger); }
.card-meta { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--muted); }

.news-card ul { list-style: none; margin: 0; padding: 0; }
.news-card li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.news-card li:last-child { border-bottom: none; }
.news-card a { color: var(--text); text-decoration: none; }
.news-card a:hover { color: var(--accent); }
.news-source { color: var(--muted); font-size: 0.75rem; display: block; margin-top: 0.15rem; }

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; }
  #map { height: 50vh; }
}
