/* =====================================================================
   BELAJAR FREECAD PEMESINAN — BLOG TEMA GELAP
   ===================================================================== */
:root {
  --bg: #050505;
  --surface: #0f0f11;
  --surface-2: #16161a;
  --raised: #1e1e24;
  --border: #2a2a32;
  --text: #f1f1f3;
  --text-2: #b4b4bd;
  --muted: #7a7a88;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.22);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 980px; margin: 0 auto; padding: 0 18px; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 52px;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-glow), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12), transparent 35%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent-2), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--accent-glow); }
.btn-secondary {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-2); }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.card h2 { margin: 0 0 10px; font-size: 21px; }
.card h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent-2); }
.card p { margin: 0; color: var(--text-2); }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding: 44px 0; }
.section-title {
  font-size: 26px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* =====================================================================
   AD SLOTS
   ===================================================================== */
.ad-slot {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin: 22px 0;
  min-height: 90px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  text-align: center;
}

/* =====================================================================
   ARTICLE PAGE
   ===================================================================== */
.article-header {
  padding: 46px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.article-header h1 {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.18;
  margin: 0 0 14px;
}
.article-content {
  font-size: 16px;
  color: var(--text-2);
}
.article-content h2 {
  color: var(--text);
  font-size: 22px;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.article-content h3 {
  color: var(--accent-2);
  font-size: 18px;
  margin: 26px 0 10px;
}
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 22px; }
.article-content li { margin-bottom: 8px; }
.article-content code {
  background: var(--raised);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
  color: var(--accent-2);
}
.article-content pre {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}
.article-content img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 18px 0;
}
.tip {
  background: rgba(34, 197, 94, 0.08);
  border-left: 4px solid var(--success);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 20px 0;
  color: var(--text);
}
.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--warning);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 20px 0;
  color: var(--text);
}

/* =====================================================================
   BREADCRUMB & NAV
   ===================================================================== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--accent-2); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { color: var(--text-2); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .nav-links { gap: 14px; font-size: 13px; }
  .hero { padding: 42px 0 34px; }
  .hero p { font-size: 15px; }
  .card { padding: 18px; }
  .section { padding: 32px 0; }
}
