/*
Theme Name: RupiahRadar
Theme URI: https://rupiahradar.com
Author: RupiahRadar
Description: Custom theme for RupiahRadar — a financial radar covering Ekonomi, Pasar Forex, and Indeks & Saham. "Signal monitoring" visual concept (radar rings, blip ticker) in emerald/gold/deep-green, distinct from the PipTrail and TradeSphere FX themes. No comments.
Version: 1.0.0
Text Domain: rupiahradar
*/

/* =========================================================
   0. DESIGN TOKENS — money/growth palette:
   warm off-white + deep green-black + emerald/gold "radar signal"
   accents, Sora display type, JetBrains Mono data type.
   ========================================================= */
:root{
  --ink:        #12201A;
  --ink-soft:   #22362C;
  --paper:      #FAF7F2;
  --card:       #FFFFFF;
  --line:       #E5E5D8;
  --slate:      #5C5750;
  --slate-dim:  #8C8579;

  --emerald:      #10A662;
  --emerald-deep: #0C7C4A;
  --emerald-tint: #E3F5EC;
  --mint:         #4FD1A5;
  --mint-deep:    #2FAE84;
  --mint-tint:    #EAFBF4;
  --blue:         #3A6EA5;
  --blue-deep:    #2A5580;
  --blue-tint:    #E7EEF5;
  --gold:         #C9962C;
  --gold-deep:    #A67A1E;
  --gold-tint:    #FBF1DD;

  --accent:      var(--emerald);
  --accent-deep: var(--emerald-deep);
  --accent-tint: var(--emerald-tint);

  --font-display: "Sora", -apple-system, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(23,24,28,0.05), 0 10px 26px -14px rgba(23,24,28,0.2);
  --max-width: 1280px;
}

/* category accent overrides */
body.category-ekonomi, body.cat-accent-emerald { --accent: var(--emerald); --accent-deep: var(--emerald-deep); --accent-tint: var(--emerald-tint); }
body.category-pasar-forex, body.cat-accent-blue { --accent: var(--blue); --accent-deep: var(--blue-deep); --accent-tint: var(--blue-tint); }
body.category-saham-indeks, body.cat-accent-gold { --accent: var(--gold); --accent-deep: var(--gold-deep); --accent-tint: var(--gold-tint); }

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
p{ margin: 0 0 1em; }
button{ font-family: inherit; cursor: pointer; }
:focus-visible{ outline: 2px solid var(--emerald); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container{ max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow .blip{ width:7px; height:7px; border-radius:50%; background: var(--accent); position:relative; flex-shrink:0; }
.eyebrow .blip::after{ content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--accent); opacity:.5; animation: blip-pulse 2s ease-out infinite; }
@keyframes blip-pulse{ 0%{ transform:scale(.6); opacity:.7; } 100%{ transform:scale(1.8); opacity:0; } }

.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap: 16px; margin-bottom: 20px; padding-bottom:12px; border-bottom: 1px solid var(--line); }
.section-head h2{ font-size: 21px; margin: 0; }
.section-head a{ font-family: var(--font-mono); font-size: 12.5px; font-weight:600; color: var(--accent); flex-shrink:0; }
.badge{
  display:inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; color: var(--accent-deep); background: var(--accent-tint);
  padding: 4px 10px; border-radius: 3px;
}
.badge.solid{ color:#fff; background: var(--accent); }
.meta{ font-family: var(--font-mono); font-size: 12px; color: var(--slate-dim); display:flex; gap:14px; flex-wrap: wrap; align-items:center; }
.meta span{ display:inline-flex; align-items:center; gap:5px; }

/* =========================================================
   2. BLIP TICKER (top utility bar) — pulsing dot, not a marquee
   ========================================================= */
.topbar{ background: var(--ink); color:#cfcac2; font-family: var(--font-mono); font-size: 12.5px; }
.topbar .container{ display:flex; align-items:center; gap: 16px; height: 40px; }
.blip-ticker{ flex:1; display:flex; align-items:center; gap:10px; overflow:hidden; }
.blip-ticker .live-dot{ width:8px; height:8px; border-radius:50%; background: var(--emerald); flex-shrink:0; position:relative; }
.blip-ticker .live-dot::after{ content:""; position:absolute; inset:-5px; border-radius:50%; border:1px solid var(--emerald); animation: blip-pulse 1.6s ease-out infinite; }
.blip-ticker .label{ color: var(--mint); font-weight:700; flex-shrink:0; letter-spacing:.04em; }
.blip-ticker .items{ display:flex; gap:28px; overflow:hidden; white-space:nowrap; }
.blip-ticker .items a{ color:#cfcac2; flex-shrink:0; }
.blip-ticker .items a:hover{ color:#fff; }
.topbar-time{ color:#7d786f; white-space:nowrap; flex-shrink:0; }

/* =========================================================
   3. BRAND + UNDERLINE NAV (no dark navbar, no pill — third style)
   ========================================================= */
.brand-bar{ background: var(--card); padding: 22px 0; }
.brand-bar .container{ display:flex; align-items:center; justify-content:space-between; gap: 20px; }
.brand-logo{ display:flex; align-items:center; gap: 12px; font-family: var(--font-display); font-size: 25px; font-weight:700; }
.brand-logo img{ height: 42px; width:auto; }
.brand-logo .mark{ width:40px; height:40px; flex-shrink:0; }
.brand-logo .word-radar{ color: var(--emerald); }
.brand-tagline{ font-family: var(--font-mono); font-size: 12px; color: var(--slate-dim); text-align:right; }

.navbar{ position: sticky; top: 0; z-index: 50; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.navbar .container{ display:flex; align-items:center; gap: 4px; height: 54px; }
.nav-home{ width:36px; height:36px; border-radius: var(--radius-sm); background: var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-right:10px; font-size:14px; }
.nav-home:hover{ background: var(--emerald); }
.primary-menu{ display:flex; align-items:center; gap: 4px; flex:1; }
.primary-menu > li{ position:relative; }
.primary-menu > li > a{ display:block; padding: 8px 4px; margin: 0 14px; color: var(--ink-soft); font-size: 14.5px; font-weight: 600; position:relative; }
.primary-menu > li > a::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background: var(--emerald); transform: scaleX(0); transition: transform .15s ease; }
.primary-menu > li > a:hover::after, .primary-menu > li.current-menu-item > a::after{ transform: scaleX(1); }
.primary-menu .sub-menu{ display:none; position:absolute; top:100%; left:14px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); min-width:200px; padding:6px; z-index:20; margin-top:8px; }
.primary-menu li:hover > .sub-menu{ display:block; }
.primary-menu .sub-menu li a{ display:block; padding:9px 14px; font-size:13.5px; color: var(--ink-soft); border-radius:4px; }
.primary-menu .sub-menu li a:hover{ background: var(--paper); color: var(--emerald); }
.nav-tools{ display:flex; align-items:center; gap: 8px; }
.nav-tools button{ background: transparent; border: 1px solid var(--line); color: var(--ink-soft); width: 36px; height: 36px; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; }
.nav-tools button:hover{ border-color: var(--emerald); color: var(--emerald); }
.menu-toggle{ display:none; }
.search-panel{ display:none; background: var(--paper); border-bottom: 1px solid var(--line); }
.search-panel.is-open{ display:block; }
.search-panel .container{ padding: 14px 24px; }
.search-panel form{ display:flex; gap:8px; }
.search-panel input[type="search"]{ flex:1; background: var(--card); border:1px solid var(--line); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); font-family: var(--font-body); }
.search-panel button{ background: var(--ink); border:none; color:#fff; font-weight:700; padding: 0 20px; border-radius: var(--radius-sm); }

/* =========================================================
   4. HOME — headline-led hero w/ radar rings + 3 signal panels
   ========================================================= */
.home-hero{ padding: 40px 0 10px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items:center; }
.hero-text h1{ font-size: 36px; margin: 14px 0 14px; }
.hero-text h1 a:hover{ color: var(--accent); }
.hero-text p{ color: var(--slate); font-size:15.5px; }
.hero-media{ position:relative; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; }
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-media .radar-rings{ position:absolute; top:-40px; right:-40px; width:180px; height:180px; opacity:.9; pointer-events:none; }

.tile-section{ padding: 42px 0 6px; }
.panel-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.radar-panel{ background: var(--card); border:1px solid var(--line); border-left: 4px solid var(--card-accent, var(--emerald)); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); }
.radar-panel .panel-head{ display:flex; align-items:center; gap:8px; margin-bottom: 14px; }
.radar-panel .panel-head .blip-icon{ width:9px; height:9px; border-radius:50%; background: var(--card-accent, var(--emerald)); }
.radar-panel h3{ font-size: 16px; margin:0; }
.panel-list li{ display:flex; gap:12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.panel-list li:last-child{ border-bottom:none; padding-bottom:0; }
.panel-list li:first-child{ padding-top:0; }
.panel-list img{ width: 56px; height:48px; object-fit:cover; border-radius: 5px; flex-shrink:0; }
.panel-list h4{ font-size: 13.5px; margin:0 0 4px; font-family: var(--font-body); font-weight:600; line-height:1.35; }
.panel-list h4 a:hover{ color: var(--accent); }
.panel-list .date{ font-family: var(--font-mono); font-size: 11px; color: var(--slate-dim); }
.panel-footer{ margin-top: 14px; padding-top:12px; border-top:1px dashed var(--line); }
.panel-footer a{ font-family: var(--font-mono); font-size: 12px; font-weight:600; color: var(--accent-deep); }

/* =========================================================
   5. GENERIC ARTICLE CARDS (category/search/archive)
   ========================================================= */
.section-block{ margin-top: 34px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.article-card{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-card); display:flex; flex-direction:column; }
.article-card .thumb{ position:relative; }
.article-card .thumb img{ width:100%; height:165px; object-fit:cover; }
.article-card .thumb .badge{ position:absolute; top:12px; left:12px; }
.article-card .body{ padding: 16px 18px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.article-card h3{ font-size: 15.5px; margin:0; }
.article-card h3 a:hover{ color: var(--accent); }
.article-card p{ font-size: 13.5px; color: var(--slate); margin:0; flex:1; }

/* =========================================================
   6. CATEGORY DESK HEADER (category.php)
   ========================================================= */
.cat-hero{ background: var(--accent-tint); border-bottom: 1px solid var(--line); padding: 42px 0 30px; }
.cat-hero h1{ font-size: 32px; margin: 10px 0 8px; color: var(--ink); }
.cat-hero p{ color: var(--slate); max-width: 620px; margin:0; }
.cat-hero .count{ font-family: var(--font-mono); font-size:12.5px; color: var(--accent-deep); margin-top:14px; display:block; font-weight:600; }

.cat-layout{ display:grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; padding: 34px 0; }
.post-list-card{ display:flex; gap:18px; background: var(--card); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 16px; margin-bottom: 16px; }
.post-list-card img{ width: 210px; height:145px; object-fit:cover; border-radius: 7px; flex-shrink:0; }
.post-list-card .body{ display:flex; flex-direction:column; gap:8px; }
.post-list-card h2{ font-size: 19px; margin:0; }
.post-list-card h2 a:hover{ color: var(--accent); }
.post-list-card p{ color: var(--slate); font-size:14px; margin:0; }

.sidebar-widget{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.sidebar-widget h4{ font-family: var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color: var(--slate-dim); margin-bottom:14px; }
.sidebar-widget ul li{ padding: 10px 0; border-bottom:1px solid var(--line); font-size:14px; }
.sidebar-widget ul li:last-child{ border-bottom:none; }
.sidebar-widget ul li a:hover{ color: var(--accent); }
.pill-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.pill-tags a{ font-size: 12.5px; padding: 5px 12px; background: var(--paper); border:1px solid var(--line); border-radius: 20px; color: var(--slate); }
.pill-tags a:hover{ border-color: var(--accent); color: var(--accent); }

.pagination{ display:flex; gap:8px; justify-content:center; padding: 20px 0 0; }
.pagination a, .pagination span{ padding: 8px 14px; border:1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size:13px; background: var(--card); }
.pagination .current{ background: var(--ink); color:#fff; border-color: var(--ink); }
.pagination a:hover{ border-color: var(--emerald); color: var(--emerald); }

/* =========================================================
   7. SINGLE POST
   ========================================================= */
.single-wrap{ display:grid; grid-template-columns: minmax(0,1fr) 300px; gap: 36px; padding: 36px 0 60px; }
.single-header{ margin-bottom: 20px; }
.single-header h1{ font-size: 32px; margin: 12px 0 14px; }
.single-featured{ border-radius: var(--radius); overflow:hidden; margin-bottom: 24px; }
.single-featured img{ width:100%; max-height: 440px; object-fit:cover; }
.entry-content{ font-size: 17px; line-height: 1.75; color: #2B2A28; }
.entry-content h2{ font-size: 23px; margin-top: 1.6em; font-family: var(--font-display); }
.entry-content h3{ font-size: 19px; margin-top: 1.4em; font-family: var(--font-display); }
.entry-content p{ margin-bottom: 1.2em; }
.entry-content blockquote{ border-left: 3px solid var(--accent); margin: 1.6em 0; padding: 4px 0 4px 20px; font-style: italic; color: var(--slate); }
.entry-content img{ border-radius: var(--radius-sm); margin: 1.4em 0; }
.entry-content a{ color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 28px; padding-top: 20px; border-top:1px solid var(--line); }
.entry-tags a{ font-size:12.5px; padding: 5px 12px; background: var(--paper); border-radius: 20px; color: var(--slate); }
.author-box{ display:flex; gap:16px; align-items:center; margin-top: 28px; padding: 18px; background: var(--card); border:1px solid var(--line); border-radius: var(--radius); }
.author-box img{ width:52px; height:52px; border-radius:50%; }
.author-box .name{ font-weight:700; font-size:15px; }
.author-box .role{ font-family: var(--font-mono); font-size:11.5px; color: var(--slate-dim); text-transform:uppercase; }
.related-posts{ margin-top: 40px; }

/* =========================================================
   8. PAGE (page.php)
   ========================================================= */
.page-wrap{ max-width: 800px; margin: 0 auto; padding: 40px 24px 70px; }
.page-wrap h1{ font-size: 32px; }

/* =========================================================
   9. ABOUT PAGE (page-tentang-kami.php)
   ========================================================= */
.about-hero{ background: var(--ink); color:#fff; padding: 60px 0 48px; text-align:center; position:relative; overflow:hidden; }
.about-hero::after{ content:""; position:absolute; top:50%; right:8%; width:260px; height:260px; transform: translateY(-50%); border-radius:50%; border:1px solid rgba(79,209,165,.25); box-shadow: 0 0 0 40px rgba(79,209,165,.05), 0 0 0 80px rgba(16,166,98,.06); pointer-events:none; }
.about-hero .container{ position:relative; z-index:1; }
.about-hero .eyebrow{ color: var(--mint); justify-content:center; }
.about-hero .eyebrow .blip{ background: var(--mint); }
.about-hero .eyebrow .blip::after{ border-color: var(--mint); }
.about-hero h1{ color:#fff; font-size: 40px; margin: 12px 0 10px; }
.about-hero p{ color: rgba(255,255,255,.82); max-width: 560px; margin:0 auto; }

.about-stats{ background: var(--card); border-bottom:1px solid var(--line); }
.stats-row{ display:grid; grid-template-columns: repeat(4,1fr); }
.stat-item{ text-align:center; padding: 26px 12px; border-left: 1px solid var(--line); }
.stat-item:first-child{ border-left:none; }
.stat-num{ font-family: var(--font-mono); font-size: 26px; font-weight:700; color: var(--ink); display:block; }
.stat-label{ font-size: 12px; color: var(--slate-dim); margin-top:4px; }

.about-body{ max-width: 760px; margin: 0 auto; padding: 46px 24px 10px; }

.channel-section{ padding: 10px 0 46px; }
.channel-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.channel-card{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align:center; border-top: 4px solid var(--card-accent, var(--emerald)); transition: transform .15s ease, box-shadow .15s ease; }
.channel-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-card); }
.channel-icon{ font-size: 24px; margin-bottom: 10px; }
.channel-card h3{ font-size:14px; margin: 0 0 6px; }
.channel-card .count{ font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-dim); }

.disclaimer-box{ max-width: 760px; margin: 10px auto 60px; background: var(--paper); border-left: 3px solid var(--emerald); border-radius: var(--radius-sm); padding: 22px 26px; }
.disclaimer-box h4{ font-family: var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color: var(--emerald-deep); margin: 0 0 10px; }
.disclaimer-box p{ font-size: 14px; color: var(--slate); margin:0; }

/* =========================================================
   10. FOOTER (charcoal ink — third distinct footer tone)
   ========================================================= */
.site-footer{ background: var(--ink); color: #A9A49B; margin-top: 50px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 50px 0 30px; }
.footer-brand .brand-logo{ color:#fff; }
.footer-brand p{ color:#88837A; font-size: 14px; margin-top: 14px; }
.footer-col h4{ font-family: var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:#fff; margin-bottom:16px; }
.footer-col ul li{ padding: 6px 0; }
.footer-col a{ color:#A9A49B; font-size:14px; }
.footer-col a:hover{ color: var(--mint); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display:flex; justify-content:space-between; font-size:13px; color:#88837A; flex-wrap:wrap; gap:10px; }
.footer-bottom a{ color:#A9A49B; }

/* =========================================================
   11. RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  .hero-grid{ grid-template-columns: 1fr; }
  .panel-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cat-layout{ grid-template-columns: 1fr; }
  .single-wrap{ grid-template-columns: 1fr; }
  .channel-grid{ grid-template-columns: 1fr 1fr; }
  .stats-row{ grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(3){ border-left:none; }
}
@media (max-width: 760px){
  .grid-3{ grid-template-columns: 1fr; }
  .panel-grid{ grid-template-columns: 1fr; }
  .channel-grid{ grid-template-columns: 1fr; }
  .primary-menu{ display:none; }
  .menu-toggle{ display:flex; }
  .brand-logo{ font-size: 20px; }
  .brand-tagline{ display:none; }
  .hero-text h1{ font-size: 24px; }
  .topbar-time{ display:none; }
  .footer-grid{ grid-template-columns: 1fr; }
  .post-list-card{ flex-direction:column; }
  .post-list-card img{ width:100%; height:190px; }
  .about-hero h1{ font-size: 28px; }
  .stats-row{ grid-template-columns: repeat(2,1fr); }
}
