/*
Theme Name: Radar Nusantara
Description: Tema berita online mobile-first tercepat dan terupdate untuk Radar Nusantara.
Version: 1.0
Author: Ridwan Onchy
*/

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --card-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --primary-color: #008000;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --border-color: #2c2c2c;
    --primary-color: #00ff66;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.5; overflow-x: hidden; }

/* Header */
.rn-header { position: sticky; top: 0; z-index: 1000; background: var(--bg-color); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; width: 100vw; }
.rn-logo img { height: 32px; object-fit: contain; }
.rn-menu-slider { display: flex; overflow-x: auto; scrollbar-width: none; gap: 12px; max-width: 120px; white-space: nowrap; }
.rn-menu-slider::-webkit-scrollbar { display: none; }
.rn-menu-slider a { font-size: 13px; color: var(--text-color); text-decoration: none; font-weight: 500; }
.rn-header-tools { display: flex; align-items: center; gap: 10px; }
.rn-btn-icon { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-color); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card-bg); }
.rn-profile-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Search Overlay */
.rn-search-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.rn-search-overlay.active { display: flex; }
.rn-search-box { width: 100%; max-width: 500px; display: flex; background: #fff; border-radius: 30px; overflow: hidden; }
.rn-search-box input { flex: 1; padding: 12px 20px; border: none; outline: none; font-size: 16px; }
.rn-search-box button { background: var(--primary-color); color: #fff; border: none; padding: 0 20px; cursor: pointer; }

/* Category Slider Bar 1 */
.rn-cat-slider { display: flex; gap: 15px; overflow-x: auto; padding: 15px; scrollbar-width: none; background: var(--card-bg); border-bottom: 1px solid var(--border-color); }
.rn-cat-slider::-webkit-scrollbar { display: none; }
.rn-cat-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; flex-shrink: 0; }
.rn-cat-circle { width: 65px; height: 65px; border-radius: 50%; border: 3px solid var(--primary-color); overflow: hidden; position: relative; }
.rn-cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.rn-cat-name { font-size: 11px; margin-top: 5px; color: var(--text-color); text-align: center; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* General Post Cards & Layouts */
.rn-container { width: 100%; padding: 10px; }
.rn-ad-slot { margin: 15px 0; text-align: center; width: 100%; overflow: hidden; }
.rn-post-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; margin-bottom: 15px; border: 1px solid var(--border-color); }
.rn-post-meta { display: flex; align-items: center; justify-content: space-between; padding: 10px; font-size: 12px; }
.rn-user-meta { display: flex; align-items: center; gap: 8px; }
.rn-user-meta img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* Share Modal */
.rn-share-modal { position: fixed; bottom: -100%; left: 0; width: 100%; background: var(--bg-color); border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 20px; transition: bottom 0.3s ease; z-index: 3000; border-top: 1px solid var(--border-color); }
.rn-share-modal.active { bottom: 0; }
.rn-share-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 15px; text-align: center; }
.rn-share-item { font-size: 12px; text-decoration: none; color: var(--text-color); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rn-share-item span { width: 45px; height: 45px; border-radius: 50%; background: var(--card-bg); display: flex; align-items: center; justify-content: center; font-size: 18px; border: 1px solid var(--border-color); }

/* Comments Section */
.rn-comments-section { padding: 15px; background: var(--card-bg); border-radius: 12px; margin-top: 20px; }
.rn-comment-item { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.rn-comment-actions { display: flex; gap: 15px; font-size: 12px; margin-top: 5px; color: var(--primary-color); cursor: pointer; }