/* RadarBUMN — Clean, mobile-first CSS */
:root {
  --bg: #f8f9fa;
  --surface: #fff;
  --text: #1a1a2e;
  --muted: #6c757d;
  --primary: #0a2463;
  --accent: #1e88e5;
  --border: #dee2e6;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 700; }
.logo span { color: #64b5f6; }
nav a { color: rgba(255,255,255,.85); text-decoration: none; margin-left: 1.5rem; font-size: .95rem; }
nav a:hover { color: #fff; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e9ecef;
}
.card-body { padding: 1rem; }
.card-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: .5rem;
}
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-meta { font-size: .8rem; color: var(--muted); }
.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  padding: .15rem .5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-draft { background: #f9a825; }
.badge-published { background: #43a047; }
.badge-archived { background: #757575; }

/* BUMN filter */
.bumn-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}
.bumn-filter a {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
}
.bumn-filter a:hover, .bumn-filter a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Article detail */
.article-detail { margin: 2rem 0; }
.article-detail h1 { font-size: 1.6rem; line-height: 1.3; margin-bottom: .5rem; }
.article-detail .meta { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.article-detail .points { padding-left: 1.2rem; }
.article-detail .points li { margin-bottom: .8rem; line-height: 1.6; }
.article-detail .source-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: .9rem;
}
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--accent); text-decoration: none; }

/* About */
.about-page { margin: 2rem 0; }
.about-page h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.about-page p { margin-bottom: 1rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: .85rem;
}
.site-footer .small { font-size: .75rem; margin-top: .3rem; }

/* Admin */
.admin-layout { margin: 2rem 0; }
.admin-layout h1 { font-size: 1.4rem; margin-bottom: 1rem; }
.admin-layout table { width: 100%; border-collapse:collapse; font-size: .85rem; }
.admin-layout th, .admin-layout td { padding: .5rem .7rem; border-bottom: 1px solid var(--border); text-align: left; }
.admin-layout th { background: #f1f3f5; }
.btn {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: .85rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-sm { padding: .2rem .6rem; font-size: .75rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; margin-bottom: .3rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
}
.form-group textarea { min-height: 200px; font-family: monospace; }
.error { color: #c62828; font-size: .85rem; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .article-detail h1 { font-size: 1.3rem; }
}
