/* ====== THEME VARIABLES ====== */
:root {
  --bg-body: #030712;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-sidebar: #0c1222;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gold: #fbbf24;
  --gold-light: #fcd34d;
  --gold-dark: #d97706;
  --accent-blue: #3b82f6;
  --accent-blue-dark: #1e40af;
  --border: #1e293b;
  --border-gold: rgba(251, 191, 36, 0.3);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gradient-header: linear-gradient(180deg, #030712 0%, rgba(3, 7, 18, 0.95) 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(251, 191, 36, 0.15);
  --radius: 12px;
  --radius-sm: 6px;
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2.5rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1.25rem; color: var(--text-secondary); }
a { color: var(--gold); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #030712;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}
.logo-text span { 
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-main { display: flex; gap: 4px; }
.nav-main a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.25s ease;
}
.nav-main a:hover, .nav-main a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* ➕ BREADCRUMB */
.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--text-muted); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ====== MAIN LAYOUT ====== */
.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== ARTICLE ====== */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.article-meta span { display: flex; align-items: center; gap: 8px; }
.article-meta svg { opacity: 0.7; }

.article-header {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-content ul, .article-content ol { margin: 1.25rem 0 1.5rem 1.5rem; }
.article-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  padding-left: 8px;
}
.article-content li::marker { color: var(--gold); }

.article-content a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
}
.article-content a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}
.article-content a[target="_blank"]::after {
  content: "↗";
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.7;
}

.article-card li img {
  max-width: 420px;
}

@media (max-width: 768px) {
  .article-card li img {
    max-width: 280px;
    margin: 10px auto;
    display: block;
  }
}

.highlight-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.highlight-box p { margin: 0; color: var(--gold-light); font-weight: 500; }
.highlight-box strong { color: var(--gold); }

/* ➕ FAQ SECTION (LENGKAP) */
.faq-section details {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-body);
}
.faq-section summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  list-style: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::before {
  content: '+';
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-right: 12px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-section details[open] summary::before {
  content: '−';
  background: var(--gold);
  color: var(--bg-body);
}
.faq-section summary:hover {
  background: var(--bg-card-hover);
}
.faq-section details[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.faq-section details p {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ➕ CTA LINKS */
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.cta-links .cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gradient-gold);
  color: var(--bg-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}
.cta-links .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-bottom: none;
  color: var(--bg-body);
}

/* ➕ RELATED CATEGORIES */
.related-categories {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-categories h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.category-card {
  display: block;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-gold);
}
.category-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--gold);
}
.category-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
/* ➕ RELATED ARTICLES */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}
.related-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.related-card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-card-title {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}
.related-card-more {
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}
.related-card-more span {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* ➕ ARTICLE CTA */
.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(217, 119, 6, 0.03) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta p {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--bg-body);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.25s ease;
}
.tag:hover {
  background: var(--gold);
  color: var(--bg-body);
  border-color: var(--gold);
  text-decoration: none;
}

/* ====== SIDEBAR ====== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-card {
  background: var(--bg-sidebar);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.3s ease;
}
.sidebar-card:hover { border-color: var(--border-gold); }
.sidebar-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  display: inline-block;
}

.post-list { list-style: none; }
.post-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:first-child { padding-top: 0; }
.post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.post-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  line-height: 1.5;
  transition: all 0.2s ease;
}
.post-list a:hover { color: var(--gold); padding-left: 6px; }
.post-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Categories */
.category-list { list-style: none; }
.category-list li { margin-bottom: 4px; }
.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.category-list a:hover {
  background: var(--bg-card);
  color: var(--gold);
  border-color: var(--border);
  text-decoration: none;
}
.category-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card);
  padding: 3px 10px;
  border-radius: 12px;
  color: var(--gold);
  border: 1px solid var(--border);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--bg-card) 100%);
  border: 1px solid var(--accent-blue);
  text-align: center;
}
.cta-box p { color: var(--text-primary); font-size: 14px; margin-bottom: 16px; }
.cta-btn {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--bg-body) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  transition: all 0.25s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ➕ POPULAR LIST (LENGKAP) */
.popular-list { list-style: none; }
.popular-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.popular-list li:last-child { border-bottom: none; }
.popular-list a {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  transition: all 0.2s ease;
}
.popular-list a:hover {
  color: var(--gold);
  padding-left: 6px;
}

/* ➕ SIDEBAR CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--bg-card) 100%);
  border: 1px solid var(--accent-blue);
  text-align: center;
}
.sidebar-cta h3 {
  color: var(--text-primary) !important;
  border-bottom-color: var(--accent-blue) !important;
}
.sidebar-cta p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}
.sidebar-cta .cta-button {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--bg-body) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  transition: all 0.25s ease;
}
.sidebar-cta .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--bg-body) !important;
  border-bottom: none;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 56px 20px 32px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 24px; max-width: 320px; }

.footer-title { 
  color: var(--text-primary); 
  font-weight: 600; 
  margin-bottom: 20px; 
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links { list-style: none; }
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  display: block;
  padding: 8px 0;
  transition: all 0.2s ease;
}
.footer-links a:hover { color: var(--gold); padding-left: 6px; }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom span { color: var(--text-muted); }

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 900px) {
  .main-content { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  
  /* ➕ Mobile 900px */
  .category-grid { grid-template-columns: 1fr 1fr; }
  .cta-links { flex-direction: column; }
  .cta-links .cta-button { text-align: center; }
}

@media (max-width: 768px) {
  .nav-main { display: none; }
  .menu-toggle { display: block; }
  
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
  }
  .nav-main.open a { padding: 14px 16px; border-radius: var(--radius-sm); }
  
  .article-card { padding: 28px 24px; }
  .sidebar { grid-template-columns: 1fr; }
  
  /* ➕ Mobile 768px */
  .category-grid { grid-template-columns: 1fr; }
  .related-categories h2 { font-size: 1.1rem; }
  .related-grid { grid-template-columns: 1fr; }             /* ← TAMBAH INI */
  .article-cta .cta-links { flex-direction: column; }      /* ← TAMBAH INI */
  .article-cta .cta-button { text-align: center; }         /* ← TAMBAH INI */
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-card, .sidebar-card { animation: fadeInUp 0.5s ease-out; }
.sidebar-card:nth-child(2) { animation-delay: 0.1s; }
.sidebar-card:nth-child(3) { animation-delay: 0.2s; }

/* Print */
@media print {
  body { background: white; color: black; }
  .site-header, .sidebar, .site-footer { display: none; }
  .main-content { display: block; }
  .article-card { background: white; box-shadow: none; border: 1px solid #ccc; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}