/*
Theme Name: Sorot Rakyat Fresh V3
Author: Bos Ara & Zed
Description: Tema Futuristik Internasional + PWA Terintegrasi.
Version: 3.0 Fresh
*/

/* 1. FONTS & RESET */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Oswald:wght@400;500;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: #050505; color: #e0e0e0; font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; } img { max-width: 100%; display: block; }
.container { width: 95%; max-width: 1400px; margin: 0 auto; }

/* 2. HEADER (Gold Gradient) */
.gold-gradient {
    background: linear-gradient(180deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    position: relative; z-index: 1000; border-bottom: 2px solid #000;
}
.nav-wrapper { padding: 15px 0; display: flex; justify-content: space-between; align-items: center; }
.logo a { font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: 2px; }
.logo a span { font-weight: 300; color: #444; }
.custom-logo-link img { max-height: 60px; }

/* Menu */
.main-navigation ul { display: flex; gap: 30px; }
.main-navigation a { font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase; font-size: 0.9rem; color: #000; }

/* 3. HERO CINEMATIC VIDEO */
.hero-section {
    margin-top: -1px; /* Fix border gap */
    position: relative; width: 100%; height: 60vh; background: #000; overflow: hidden;
    border-bottom: 4px solid #D4AF37;
}
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #050505 10%, transparent 70%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 50px 5%;
}
.live-badge {
    background: #ff0000; color: #fff; padding: 5px 15px; font-size: 0.7rem; font-weight: bold;
    display: inline-block; margin-bottom: 15px; width: fit-content; animation: pulse 2s infinite;
}
.hero-title { font-family: 'Oswald', sans-serif; font-size: 3.5rem; line-height: 1.1; color: #fff; text-transform: uppercase; max-width: 800px; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.play-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; background: rgba(212, 175, 55, 0.2); border: 2px solid #D4AF37;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(5px);
}

/* 4. MEDIA DASHBOARD (Radio Strip) */
.media-dashboard { background: #0a0a0a; border-bottom: 1px solid #333; padding: 15px 0; position: relative; z-index: 10; }
.dashboard-grid { display: grid; grid-template-columns: 300px 1fr 200px; gap: 20px; align-items: center; }

/* Radio Widget (Kapsul) */
.radio-widget {
    background: #000; border: 1px solid #333; padding: 8px 20px; border-radius: 50px;
    display: flex; align-items: center; gap: 15px; box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}
.radio-bars { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.bar { width: 4px; background: #D4AF37; animation: eq 0.5s infinite; }
.bar:nth-child(2) { animation-delay: 0.1s; height: 15px; } .bar:nth-child(3) { animation-delay: 0.2s; height: 25px; }

/* 5. CONTENT GRID (Kategori) */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin: 40px 0 20px; border-left: 5px solid #D4AF37; padding-left: 15px; }
.section-title { font-family: 'Oswald', sans-serif; font-size: 2rem; color: #fff; text-transform: uppercase; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: #0f0f0f; border: 1px solid #222; overflow: hidden; transition: 0.4s; }
.news-card:hover { transform: translateY(-5px); border-color: #D4AF37; }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .card-img img { transform: scale(1.1); }
.card-body { padding: 20px; }
.cat-tag { color: #D4AF37; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 10px; }
.post-title { font-size: 1.1rem; font-weight: 600; color: #fff; line-height: 1.4; }
.post-date { font-size: 0.75rem; color: #666; margin-top: 15px; display: block; }

/* 6. FOOTER & STICKY RADIO */
footer { background: #000; border-top: 2px solid #D4AF37; color: #666; padding: 40px 0; text-align: center; margin-top: 60px; }
.radio-sticky {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: #000;
    border-top: 1px solid #D4AF37; z-index: 2000; display: flex; align-items: center; box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 100%; } }

/* Mobile */
@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2rem; }
    .nav-menu { display: none; }
}
/* --- PERBAIKAN GAMBAR DI KONTEN BERITA --- */

/* Gambar Utama (Featured Image) */
.single-content img, article img {
    max-width: 100%;       /* Gambar tidak melebihi lebar kolom */
    height: auto;          /* Tinggi menyesuaikan proporsi */
    display: block;
    margin: 20px auto;     /* Tengah secara otomatis */
    border-radius: 4px;    /* Sudut sedikit melengkung */
}
/* --- FLOATING WIDGETS (TOMBOL MELAYANG) --- */
.floating-widgets { 
    position: fixed; 
    bottom: 70px; /* Sedikit di atas Radio Sticky */
    right: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    z-index: 9999; /* Pastikan paling atas */
}

.float-btn { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    transition: 0.3s; 
    text-decoration: none; 
    border: 2px solid #D4AF37; 
    background: #000; 
    color: #D4AF37; 
}

.float-btn:hover { 
    transform: scale(1.1); 
    background: #D4AF37; 
    color: #000; 
}

/* Pastikan Radio Sticky tidak menutupi tombol ini (Z-index lebih tinggi) */
.radio-sticky { z-index: 9000; }

/* --- PERBAIKI TOMBOL MENU MOBILE (YANG NUMPUK ITU) --- */

/* 1. Sembunyikan tombol menu di Desktop (Agar tidak muncul tumpang tindih) */
button.menu-toggle {
    display: none; 
}

/* 2. Atur tampilan tombol menu saat di HP / Layar Kecil */
@media (max-width: 768px) {
    
    /* Munculkan tombol menu */
    button.menu-toggle {
        display: block;
        
        /* Posisi: Mutlak di pojok kanan (Jauh dari Logo) */
        position: absolute;
        right: 20px; 
        top: 20px;
        
        /* Tampilan: Hitam dengan Pinggiran Emas */
        background: #000;
        border: 2px solid #D4AF37;
        color: #D4AF37;
        font-size: 24px;
        padding: 5px 15px;
        cursor: pointer;
        z-index: 9999; /* Supaya berada di atas semua elemen */
        border-radius: 4px;
    }

    /* Sembunyikan Menu Teks biasa saat di HP (Diganti tombol ini) */
    .main-navigation ul {
        display: none; 
    }
    
    /* Saat tombol diklik (Active), tampilkan menu */
    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Muncul di bawah header */
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px;
        border-bottom: 2px solid #D4AF37;
        z-index: 9998;
    }
}
/* Jika Bos ingin gambar di dalam postingan rata kiri (opsional) */
/* .single-content img { margin: 20px 0; } */