/* ===== BEGUNDAL Dark Midnight ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #0b0f19; color: #e6edf3; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Navigation */
nav { position: sticky; top: 0; background: rgba(11,15,25,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid #1f2937; z-index: 100; padding: 0 24px; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: #e6edf3; }
.logo span { color: #10b981; }
.nav-links { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: #94a3b8; padding: 8px 14px; border-radius: 8px; white-space: nowrap; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background: #10b981; color: #0b0f19; }
.nav-center { font-size: 14px; color: #64748b; display: flex; align-items: center; gap: 16px; }
.nav-center a { color: #94a3b8; }
.nav-center a:hover { color: #10b981; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-right a { font-size: 14px; color: #10b981; font-weight: 600; }
.search-form { display: flex; align-items: center; background: #111827; border: 1px solid #1f2937; border-radius: 8px; padding: 0 12px; }
.search-form input { border: none; background: none; padding: 8px 4px; font-size: 14px; outline: none; width: 140px; font-family: inherit; color: #e6edf3; }
.search-form input::placeholder { color: #4b5563; }
.search-form button { background: none; border: none; cursor: pointer; font-size: 14px; color: #64748b; padding: 4px; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.page-info { margin-bottom: 24px; }
.page-info h2 { font-size: 18px; font-weight: 600; color: #e6edf3; }
.page-info a { color: #10b981; font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; padding: 24px; background: #111827; border: 1px solid #1f2937; border-radius: 16px; cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.hero:hover { border-color: #10b981; transform: translateY(-3px); }
.hero-img { border-radius: 12px; overflow: hidden; background: #1f2937; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.hero-img-inner { width: 100%; height: 100%; min-height: 260px; display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgba(255,255,255,0.25); font-weight: 800; }
.hero-content { display: flex; flex-direction: column; justify-content: center; }
.hero-content .kategori { font-size: 12px; font-weight: 600; color: #10b981; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.hero-content h1 { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.5px; }
.hero-content p { font-size: 17px; color: #9ca3af; line-height: 1.5; font-family: 'Literata', Georgia, serif; margin-bottom: 18px; }
.hero-meta { font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 8px; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }

/* Article cards */
.article-card { display: grid; grid-template-columns: 1fr 200px; gap: 24px; padding: 20px; margin-bottom: 14px; background: #111827; border: 1px solid #1f2937; border-radius: 12px; cursor: pointer; transition: border-color 0.15s; }
.article-card:hover { border-color: #10b981; }
.card-body { display: flex; flex-direction: column; justify-content: center; }
.card-body .kategori { font-size: 11px; font-weight: 600; color: #3b82f6; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.card-body h2 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; letter-spacing: -0.3px; color: #f3f4f6; }
.card-body p { font-size: 15px; color: #9ca3af; line-height: 1.4; font-family: 'Literata', Georgia, serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.card-meta { font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-img { border-radius: 10px; overflow: hidden; background: #1f2937; min-height: 120px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(255,255,255,0.25); font-weight: 700; }

/* Sidebar */
.sidebar { position: sticky; top: 76px; align-self: start; }
.sidebar-layout .sidebar { position: static; }
.sidebar-section { margin-bottom: 24px; background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 20px; }
.sidebar-section h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #1f2937; }
.trend-item { display: flex; gap: 14px; padding: 10px 0; cursor: pointer; }
.trend-item:hover { opacity: 0.8; }
.trend-num { font-size: 28px; font-weight: 800; color: #374151; line-height: 1; min-width: 32px; }
.trend-text { flex: 1; }
.trend-text h4 { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; color: #e5e7eb; }
.trend-text .meta { font-size: 12px; color: #6b7280; }
.trend-text .kategori-tag { font-size: 11px; color: #10b981; font-weight: 600; text-transform: uppercase; }

/* Categories */
.kat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kat-list a { font-size: 13px; padding: 6px 14px; background: #1f2937; border-radius: 8px; color: #9ca3af; }
.kat-list a:hover { background: #374151; color: #f3f4f6; }
.kat-list a.active { background: #10b981; color: #0b0f19; }
.kat-count { font-size: 11px; color: #6b7280; margin-left: 4px; }

/* Pagination */
.pagination { margin-top: 32px; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 8px; font-size: 14px; color: #9ca3af; background: #111827; border: 1px solid #1f2937; }
.pagination a:hover { border-color: #10b981; color: #10b981; }
.pagination .active { background: #10b981; color: #0b0f19; border-color: #10b981; }

/* Article detail */
.article-header { max-width: 720px; margin: 48px auto 0; padding: 0 24px; }
.article-header .kategori { font-size: 12px; font-weight: 600; color: #10b981; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.article-header h1 { font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid #1f2937; margin-bottom: 0; }
.meta-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.meta-info { flex: 1; }
.meta-author { font-size: 14px; font-weight: 600; }
.meta-details { font-size: 13px; color: #6b7280; }
.meta-details span { margin-right: 4px; }

.article-image { max-width: 1000px; margin: 32px auto; padding: 0 24px; }
.article-image-inner { width: 100%; min-height: 360px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 72px; color: rgba(255,255,255,0.15); font-weight: 800; }

.article-body { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.article-body .isi { font-family: 'Literata', Georgia, serif; font-size: 20px; line-height: 1.7; color: #d1d5db; }
.article-body .isi p { margin-bottom: 24px; }
.article-body .isi p:first-child { font-size: 22px; color: #e5e7eb; }
.article-body .isi a { color: #3b82f6; border-bottom: 1px solid rgba(59,130,246,0.3); }

.article-footer { max-width: 680px; margin: 40px auto; padding: 0 24px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags a { font-size: 13px; padding: 6px 16px; background: #1f2937; border-radius: 8px; color: #9ca3af; }
.article-tags a:hover { background: #374151; color: #f3f4f6; }

.nav-articles { max-width: 680px; margin: 32px auto; padding: 24px; display: flex; justify-content: space-between; border-top: 1px solid #1f2937; border-bottom: 1px solid #1f2937; }
.nav-articles a { font-size: 14px; color: #10b981; font-weight: 600; max-width: 45%; }
.nav-articles a:last-child { text-align: right; }
.nav-articles a:hover { color: #34d399; }
.nav-articles span { display: block; font-size: 12px; color: #6b7280; font-weight: 400; margin-bottom: 2px; }

.related-section { max-width: 1200px; margin: 48px auto; padding: 0 24px; }
.related-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.3px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { cursor: pointer; background: #111827; border: 1px solid #1f2937; border-radius: 12px; overflow: hidden; padding: 12px; transition: border-color 0.15s, transform 0.15s; }
.related-card:hover { border-color: #10b981; transform: translateY(-3px); }
.related-img { width: 100%; aspect-ratio: 16/9; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: rgba(255,255,255,0.15); font-weight: 700; background: #1f2937; margin-bottom: 12px; }
.related-card .kategori { font-size: 11px; color: #3b82f6; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.related-card h3 { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; color: #f3f4f6; }
.related-card .meta { font-size: 12px; color: #6b7280; }

.sidebar-layout { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; }

/* Share */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; transition: opacity 0.2s, transform 0.2s; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #000; }
.share-btn.wa { background: #25d366; }
.share-btn.li { background: #0a66c2; }
.short-url-box input { width: 100%; padding: 8px 10px; border: 1px solid #1f2937; border-radius: 8px; font-size: 13px; background: #0b0f19; color: #e6edf3; }
.short-url-actions { display: flex; gap: 6px; margin-top: 8px; }
.short-btn { flex: 1; padding: 7px 10px; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; background: #10b981; color: #0b0f19; }
.short-btn:hover { opacity: 0.9; }
.copy-btn { background: #3b82f6; color: #fff; }

/* Footer */
.footer { border-top: 1px solid #1f2937; padding: 40px 24px; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer p { font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.footer a { color: #6b7280; font-size: 13px; }

/* Empty / 404 */
.empty { text-align: center; padding: 80px 20px; color: #6b7280; }
.empty h3 { font-size: 22px; margin-bottom: 8px; color: #e5e7eb; }
.not-found { text-align: center; padding: 100px 20px; }
.not-found h2 { font-size: 72px; color: #374151; margin-bottom: 8px; }
.not-found p { color: #9ca3af; font-size: 18px; }
.not-found a { display: inline-block; margin-top: 20px; color: #10b981; font-size: 16px; }

/* Responsive */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
    .hero-content h1 { font-size: 26px; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .article-card { grid-template-columns: 1fr; padding: 16px; }
    .card-img { min-height: 180px; order: -1; }
    .nav-links { display: none; }
    .search-form input { width: 100px; }
    .article-header h1 { font-size: 28px; }
    .article-body .isi { font-size: 18px; }
    .article-image-inner { min-height: 200px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-center { display: none; }
    .sidebar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .related-grid { grid-template-columns: 1fr; }
}
