/* --- 1. CONFIGURATION & VARIABLES --- */
:root {
    /* Dark Mode (Default) */
    --bg-body: #050f0c; /* Hitam Kehijauan Deep */
    --bg-card: #0e1f1a;
    --bg-panel: #091613;
    --border: rgba(255,255,255,0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* Brand Colors */
    --primary: #10b981; /* Emerald Green */
    --accent: #34d399;  /* Light Green */
    --gold: #f59e0b;
    --red: #ef4444;
    --green-market: #22c55e;
    
    /* Effects */
    --glass: rgba(14, 31, 26, 0.7);
    --glow: 0 0 15px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] {
    --bg-body: #f0fdf4;
    --bg-card: #ffffff;
    --bg-panel: #e6f7ef;
    --border: #d1d5db;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
    
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Satoshi', sans-serif;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; }

/* helper */
.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* --- 2. HEADER COMPLEX & ANIMATED TICKER --- */
header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.top-bar {
    border-bottom: 1px solid var(--border);
    display: flex; height: 40px;
}

.ticker-label {
    background: var(--red); color: white;
    padding: 0 20px; font-weight: 800; font-size: 11px;
    display: flex; align-items: center; text-transform: uppercase;
    position: relative; z-index: 2;
}
.ticker-label::after {
    content: ''; position: absolute; right: -10px; top: 0; bottom: 0;
    width: 0; height: 0; border-top: 40px solid var(--red); border-right: 15px solid transparent;
}

.ticker-container {
    flex: 1; overflow: hidden; display: flex; align-items: center;
    background: rgba(0,0,0,0.2); position: relative;
}
.ticker-move {
    display: inline-block; white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-size: 12px; font-weight: 500; color: var(--text-muted);
}
.ticker-item { margin-right: 50px; }
.ticker-item span { color: var(--primary); font-weight: 700; margin-right: 5px; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.header-main {
    max-width: 1300px; margin: 0 auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; }
.logo h1 { font-family: 'Clash Display'; font-size: 28px; font-weight: 700; color: var(--primary); margin: 0; }
.logo span { font-family: 'Great Vibes'; font-size: 24px; color: var(--text-main); margin-left: 5px; margin-top: 5px; }

.nav-menu { display: flex; gap: 5px; }
.nav-link {
    padding: 8px 16px; font-size: 13px; font-weight: 700; text-transform: uppercase;
    color: var(--text-muted); border-radius: 6px;
    display:inline-block;
}
.nav-link:hover, .nav-link.active { color: var(--text-main); background: rgba(255,255,255,0.05); }

.header-actions { display: flex; gap: 15px; align-items: center; }
.theme-toggle {
    cursor: pointer; font-size: 18px; color: var(--text-muted);
    width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    background: transparent;
}
.btn-contact {
    background: var(--primary); color: #000; padding: 8px 20px;
    border-radius: 50px; font-weight: 800; font-size: 12px;
}

/* --- 3. HERO MOSAIC (PADAT & NO ZOOM) --- */
.container { max-width: 1300px; margin: 0 auto; padding: 20px; }
    
.hero-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; 
    grid-template-rows: 200px 200px; gap: 15px; margin-bottom: 40px;
}
    
.hero-item {
    position: relative; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); transition: 0.3s;
}
/* EFEK NO ZOOM TAPI GLOW */
.hero-item:hover { border-color: var(--primary); box-shadow: var(--glow); }
.hero-item img { filter: brightness(0.7); transition: 0.3s; }
.hero-item:hover img { filter: brightness(1); } /* Hanya jadi terang, tidak zoom */

.hero-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.badge {
    padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 800; 
    text-transform: uppercase; display: inline-block; margin-bottom: 8px;
}
.bg-red { background: var(--red); color: white; }
.bg-gold { background: var(--gold); color: black; }
.bg-primary { background: var(--primary); color: black; }

.hero-title { font-family: 'Clash Display'; font-weight: 600; line-height: 1.2; margin-bottom: 5px; }
.item-large { grid-column: 1 / 2; grid-row: 1 / 3; }
.item-large .hero-title { font-size: 32px; }

/* --- 4. MAIN CONTENT (RAME & PADAT) --- */
.layout-wrapper {
    display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px;
}

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 20px;
}
.section-title { font-family: 'Clash Display'; font-size: 22px; font-weight: 700; display:flex; align-items:center; gap:10px; }
.section-title::before { content:''; width:5px; height:20px; background:var(--primary); }
    
/* Layout Berita Padat */
.news-complex-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
    
.news-card-v2 {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
}
.news-card-v2:hover { border-color: var(--primary); }
    
.nc-img { height: 160px; position: relative; }
.nc-body { padding: 15px; }
.nc-cat { color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; display:block;}
.nc-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.nc-meta { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; }

/* List Berita Kecil (Sidebar Style tapi di tengah) */
.news-compact-list {
    display: flex; flex-direction: column; gap: 15px;
    background: var(--bg-panel); padding: 20px; border-radius: 12px; border: 1px solid var(--border);
    margin-top: 30px;
}
.compact-item { display: flex; gap: 15px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.compact-item:last-child { border: none; padding: 0; }
.compact-img { width: 90px; height: 65px; border-radius: 6px; flex-shrink: 0; }
.compact-info h4 { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 5px; }
.compact-info span { font-size: 10px; color: var(--text-muted); }

/* --- 5. SIDEBAR WIDGETS (CRYPTO, GOLD, ADS) --- */
.widget {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 25px;
}
.widget-head {
    padding: 15px; background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px;
    display: flex; justify-content: space-between; align-items: center;
}

/* Crypto & Gold Widget */
.market-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px; border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 600;
}
.market-name { display: flex; align-items: center; gap: 10px; }
.market-val { text-align: right; }
.val-price { display: block; color: var(--text-main); }
.val-change { font-size: 11px; }
.up { color: var(--green-market); }
.down { color: var(--red); }

/* Banner Ads */
.ad-slot {
    background: #000; height: 250px; display: flex; 
    align-items: center; justify-content: center; position: relative;
}
.ad-label {
    position: absolute; top: 5px; right: 5px; 
    background: rgba(255,255,255,0.2); color: white; 
    font-size: 8px; padding: 2px 5px;
}

/* Polling Box */
.poll-box { padding: 20px; }
.poll-q { font-weight: 700; margin-bottom: 15px; }
.poll-opt {
    display: block; padding: 10px; background: var(--bg-body); 
    border: 1px solid var(--border); margin-bottom: 8px; border-radius: 6px;
    font-size: 13px; cursor: pointer;
}
.poll-opt:hover { border-color: var(--primary); }

/* --- 6. FOOTER SUPER LENGKAP --- */
footer {
    background: #020806; border-top: 3px solid var(--primary);
    padding-top: 60px; margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
    max-width: 1300px; margin: 0 auto; padding: 0 20px 60px;
}
.foot-col h4 { color: white; margin-bottom: 20px; font-family: 'Clash Display'; letter-spacing: 1px; }
.foot-about p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.foot-socials a {
    width: 35px; height: 35px; background: rgba(255,255,255,0.1); display: inline-flex;
    align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px;
    color: white; transition: 0.3s;
}
.foot-socials a:hover { background: var(--primary); }
    
.foot-links li { margin-bottom: 10px; }
.foot-links a { color: var(--text-muted); font-size: 13px; }
.foot-links a:hover { color: var(--primary); padding-left: 5px; }

.foot-news input {
    width: 100%; padding: 12px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); color: white; margin-bottom: 10px; border-radius: 6px;
}
.foot-news button {
    width: 100%; padding: 12px; background: var(--primary); border: none;
    font-weight: 800; border-radius: 6px; cursor: pointer;
}

.copyright {
    background: black; padding: 20px; text-align: center;
    border-top: 1px solid var(--border); font-size: 12px; color: #555;
}

/* Mobile */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .item-large { grid-column: auto; grid-row: auto; height: 300px; }
    .layout-wrapper, .news-complex-grid, .footer-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
}

/* WP content tweaks */
.entry-content p { margin: 0 0 16px; }

/* Header Search Popup */
.search-wrap { position: relative; }

.search-panel{
  position:absolute;
  right:0;
  top:45px;
  width:320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display:none;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.search-panel.show{ display:block; }

.search-panel form{ display:flex; gap:8px; }
.search-panel input{
  flex:1;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-main);
}
.search-panel button{
  padding:10px 12px;
  border-radius:8px;
  border:none;
  background: var(--primary);
  font-weight:800;
  cursor:pointer;
}
