/*
Theme Name: BeritaPro
Theme URI: https://pressready.my.id/
Author: AI Developer
Description: Tema WordPress profesional untuk portal berita. Dioptimalkan untuk SEO, kecepatan tinggi, dan UI/UX modern ala portal berita nasional.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: beritapro
*/

:root {
    --primary-color: #e60000; /* Merah */
    --text-color: #333333;    /* Hitam */
    --bg-color: #ffffff;      /* Putih */
    --light-bg: #f4f4f4;
    --border-color: #eaeaea;
    --font-main: 'Poppins', 'Roboto', sans-serif;
}

/* Reset & Basic */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text-color); background: var(--bg-color); line-height: 1.6; }
a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { color: #cc0000; }
img { max-width: 100%; height: auto; display: block; }

/* Layout Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.site-content { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 20px; }
.main-content { flex: 1 1 65%; min-width: 0; }
.sidebar { flex: 1 1 30%; position: sticky; top: 80px; height: max-content; }

/* Header */
.site-header { border-bottom: 1px solid var(--border-color); background: var(--bg-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.header-top { background: var(--text-color); color: var(--bg-color); padding: 5px 0; font-size: 12px; }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.site-branding .site-title { font-size: 28px; font-weight: 700; color: var(--primary-color); text-transform: uppercase; }
.ad-header-slot { background: var(--light-bg); width: 728px; height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed #ccc; color: #888; font-size: 14px;}

/* Navigation */
.main-navigation { background: var(--primary-color); }
.main-navigation ul { list-style: none; display: flex; }
.main-navigation li a { color: var(--bg-color); padding: 12px 20px; display: block; font-weight: 500; }
.main-navigation li a:hover { background: rgba(0,0,0,0.1); color: #fff; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary-color); }

/* Homepage Blocks */
.section-title { font-size: 20px; border-left: 4px solid var(--primary-color); padding-left: 10px; margin-bottom: 20px; text-transform: uppercase; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; background: var(--bg-color); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-content { padding: 15px; }
.post-category { font-size: 12px; background: var(--primary-color); color: #fff; padding: 3px 8px; border-radius: 2px; text-transform: uppercase; display: inline-block; margin-bottom: 10px; }
.post-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.post-meta { font-size: 12px; color: #777; }

/* Single Post */
.single-post-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; }
.single-post-meta { font-size: 14px; color: #666; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.single-featured-image { margin-bottom: 25px; border-radius: 4px; overflow: hidden; }
.entry-content { font-size: 16px; line-height: 1.8; }
.entry-content p { margin-bottom: 20px; }
.entry-content h2, .entry-content h3 { margin: 25px 0 15px; }

/* Ad Slots */
.ad-slot { margin: 20px 0; text-align: center; background: var(--light-bg); padding: 10px; border: 1px dashed #ccc; }

/* Footer */
.site-footer { background: var(--text-color); color: #ddd; padding: 40px 0 20px; margin-top: 40px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.widget-title { font-size: 16px; color: #fff; margin-bottom: 15px; text-transform: uppercase; }
.site-info { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .site-content { flex-direction: column; }
    .sidebar { position: static; }
    .header-main { flex-direction: column; gap: 15px; }
    .ad-header-slot { display: none; } /* Hide big header ad on mobile */
    .menu-toggle { display: block; align-self: flex-end; margin-bottom: 10px; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation li a { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .single-post-title { font-size: 24px; }
}