/*
Theme Name: Ekonomi News Pro
Theme URI: https://ekonominews.pro
Author: EkonomiNews
Author URI: https://ekonominews.pro
Description: Template WordPress profesional untuk portal berita ekonomi dan keuangan. Dilengkapi dark mode, responsive design, dan fitur berita terkini.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekonomi-news
Tags: news, magazine, economy, finance, dark-mode, responsive, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===================================================================
   DESIGN TOKENS & CSS VARIABLES
   =================================================================== */
:root {
  /* Brand Colors */
  --brand-gold: #C9A84C;
  --brand-gold-light: #E4C97A;
  --brand-gold-dark: #A07830;
  --brand-navy: #0A1628;
  --brand-navy-mid: #132040;
  --brand-red: #C0392B;
  --brand-green: #16A34A;

  /* Light Mode */
  --bg-primary: #F8F7F2;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0EFE8;
  --bg-card: #FFFFFF;
  --bg-header: #0A1628;
  --bg-navbar: #FFFFFF;
  --bg-footer: #0A1628;

  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-on-dark: #F0EFE8;
  --text-on-dark-muted: #B0A898;

  --border-color: #E0DDD5;
  --border-strong: #C0BDB5;
  --divider: #E8E5DC;

  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 12px rgba(10,22,40,0.10);
  --shadow-lg: 0 8px 32px rgba(10,22,40,0.14);
  --shadow-card: 0 2px 8px rgba(10,22,40,0.08);

  --accent: var(--brand-gold);
  --accent-hover: var(--brand-gold-dark);
  --link-color: #1A3A6C;
  --link-hover: var(--brand-gold-dark);

  /* Typography */
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --container-max: 1380px;
  --container-content: 860px;
  --sidebar-width: 340px;
  --header-height: 64px;
  --topbar-height: 36px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-tertiary: #1C2333;
  --bg-card: #1C2333;
  --bg-header: #090E18;
  --bg-navbar: #161B22;
  --bg-footer: #090E18;

  --text-primary: #E6EDF3;
  --text-secondary: #B0BAC5;
  --text-muted: #7D8694;
  --text-on-dark: #E6EDF3;
  --text-on-dark-muted: #8B949E;

  --border-color: #30363D;
  --border-strong: #484F58;
  --divider: #21262D;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3);

  --link-color: #C9A84C;
  --link-hover: #E4C97A;
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  transition: background-color var(--transition-mid), color var(--transition-mid);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link-color); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--link-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--brand-gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ===================================================================
   LAYOUT & CONTAINERS
   =================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--content { max-width: var(--container-content); margin: 0 auto; padding: 0 var(--space-lg); }

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .site-sidebar { display: none; }
}

/* ===================================================================
   TOP TICKER BAR
   =================================================================== */
.top-ticker {
  background: var(--brand-navy);
  color: var(--text-on-dark);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.ticker-label {
  background: var(--brand-gold);
  color: #000;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1;
}

.ticker-track {
  display: flex;
  gap: var(--space-2xl);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  padding-left: var(--space-xl);
}

.ticker-item { display: flex; align-items: center; gap: var(--space-sm); }
.ticker-item .symbol { font-weight: 700; color: var(--brand-gold); }
.ticker-item .price { color: var(--text-on-dark); }
.ticker-item .change.up { color: #4ADE80; }
.ticker-item .change.down { color: #F87171; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track:hover { animation-play-state: paused; }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  background: var(--bg-header);
  padding: var(--space-lg) 0;
  border-bottom: 3px solid var(--brand-gold);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--brand-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 26px; height: 26px; fill: var(--brand-navy); }

.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--brand-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-date-weather {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header-date {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

.header-edition {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--brand-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================================================================
   NAVIGATION
   =================================================================== */
.site-nav {
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-mid);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-md);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 0 var(--space-md);
  height: var(--header-height);
  line-height: var(--header-height);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 3px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a { color: var(--brand-gold-dark); }

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--brand-gold);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-mid);
  z-index: 100;
}

.nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider);
  transition: all var(--transition-fast);
}

.nav-menu .sub-menu li:last-child a { border-bottom: none; }
.nav-menu .sub-menu li a:hover { color: var(--brand-gold-dark); padding-left: 22px; background: var(--bg-tertiary); }

/* Nav Right Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.btn-search, .btn-theme {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 0;
}

.btn-search:hover, .btn-theme:hover {
  background: var(--bg-tertiary);
  color: var(--brand-gold-dark);
}

.btn-search svg, .btn-theme svg { width: 18px; height: 18px; }

.btn-theme .icon-sun { display: none; }
.btn-theme .icon-moon { display: block; }
[data-theme="dark"] .btn-theme .icon-sun { display: block; }
[data-theme="dark"] .btn-theme .icon-moon { display: none; }

/* Search Bar */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-mid);
}

.search-overlay.active { opacity: 1; visibility: visible; }

.search-box {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.search-input-wrap input {
  flex: 1;
  padding: var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.4rem;
  border: none;
  outline: none;
  background: transparent;
  color: #1A1A1A;
}

.search-input-wrap button {
  padding: var(--space-lg);
  background: var(--brand-gold);
  color: #000;
  font-size: 0;
}

.search-input-wrap button svg { width: 22px; height: 22px; }
.search-close {
  display: block;
  margin: var(--space-lg) auto 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .nav-hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 80px var(--space-lg) var(--space-lg);
    overflow-y: auto;
    transition: left var(--transition-mid);
    z-index: 9998;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-menu.open { left: 0; }

  .nav-menu > li > a {
    height: auto;
    line-height: 1.4;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
  }

  .nav-menu > li > a::after { display: none; }

  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    width: 100%;
    padding-left: var(--space-md);
    display: none;
  }

  .nav-menu li.open .sub-menu { display: block; }
}

/* ===================================================================
   BREAKING NEWS BANNER
   =================================================================== */
.breaking-news {
  background: var(--brand-red);
  padding: 8px 0;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.breaking-badge {
  background: #FFFFFF;
  color: var(--brand-red);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  animation: blink-badge 1.5s ease infinite;
}

@keyframes blink-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.breaking-text {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breaking-text a { color: #FFFFFF; text-decoration: underline; }

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg-primary);
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}

.hero-main .post-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hero-main .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-main:hover .post-thumbnail img { transform: scale(1.03); }

.hero-main .post-content {
  padding: var(--space-xl);
  background: var(--bg-card);
}

.hero-sub { background: var(--bg-card); overflow: hidden; }

.hero-sub .post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hero-sub .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-sub:hover .post-thumbnail img { transform: scale(1.03); }

.hero-sub .post-content { padding: var(--space-lg); }
.hero-sub .post-title { font-size: 1rem; line-height: 1.3; }
.hero-sub .post-excerpt { display: none; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-main { grid-row: auto; }
}

/* ===================================================================
   POST CARD STYLES
   =================================================================== */
.post-category-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: var(--space-sm);
  position: relative;
}

.post-category-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.post-title a { color: inherit; }
.post-title a:hover { color: var(--brand-gold-dark); }

.post-excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-meta .author { font-weight: 600; color: var(--text-secondary); }
.post-meta .separator { color: var(--border-strong); }
.post-meta .date {}
.post-meta .read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================================
   STANDARD CARD
   =================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-mid), border-color var(--transition-mid);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
}

.card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-thumbnail img { transform: scale(1.04); }

.card-body { padding: var(--space-lg); }

/* ===================================================================
   CARD GRID SECTIONS
   =================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--brand-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link svg { width: 14px; height: 14px; }

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards-grid-4, .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
}

/* ===================================================================
   LIST CARD (horizontal)
   =================================================================== */
.list-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--divider);
}

.list-card:last-child { border-bottom: none; }

.list-card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border-color);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  text-align: right;
}

.list-card-image {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.list-card-image img { width: 100%; height: 100%; object-fit: cover; }

.list-card-body { flex: 1; min-width: 0; }

.list-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.list-card-title a { color: inherit; }
.list-card-title a:hover { color: var(--brand-gold-dark); }

/* ===================================================================
   MARKET WIDGET
   =================================================================== */
.market-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.market-widget-header {
  background: var(--brand-navy);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.market-widget-header h3 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.market-table { width: 100%; border-collapse: collapse; }

.market-table th {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--divider);
  background: var(--bg-tertiary);
}

.market-table td {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary);
}

.market-table tr:last-child td { border-bottom: none; }
.market-table tr:hover td { background: var(--bg-tertiary); }

.market-table .name { font-weight: 600; color: var(--text-primary); }
.market-table .price { font-weight: 700; font-family: var(--font-mono); }
.market-table .change { font-weight: 700; font-family: var(--font-mono); font-size: 0.78rem; }
.market-table .up { color: #16A34A; }
.market-table .down { color: #DC2626; }

/* Mini Sparkline */
.sparkline { display: inline-block; width: 60px; height: 24px; vertical-align: middle; }

/* ===================================================================
   SIDEBAR
   =================================================================== */
.site-sidebar { position: sticky; top: 80px; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.widget-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  background: var(--brand-navy);
  padding: 12px var(--space-lg);
  border-bottom: 2px solid var(--brand-gold);
}

.widget-body { padding: var(--space-lg); }

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--brand-navy), #1A3A6C);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.newsletter-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.newsletter-icon svg { width: 28px; height: 28px; fill: var(--brand-navy); }

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
}

.newsletter-desc {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
}

.newsletter-form { display: flex; flex-direction: column; gap: var(--space-sm); }

.newsletter-form input {
  padding: 12px var(--space-md);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--brand-gold); }

.btn-newsletter {
  padding: 12px var(--space-md);
  background: var(--brand-gold);
  color: var(--brand-navy);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.btn-newsletter:hover { background: var(--brand-gold-light); }

/* Tag Cloud Widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.tag-item {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag-item:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy);
}

/* ===================================================================
   SINGLE POST
   =================================================================== */
.single-post { padding: var(--space-2xl) 0; }

.single-header { margin-bottom: var(--space-xl); }

.single-category { margin-bottom: var(--space-md); }

.single-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.single-excerpt {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--divider);
}

.single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--divider);
  margin-bottom: var(--space-xl);
}

.author-block { display: flex; align-items: center; gap: var(--space-md); }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--brand-gold);
  background: var(--bg-tertiary);
  flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.share-bar { display: flex; align-items: center; gap: var(--space-sm); }

.share-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-btn.twitter:hover { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
.share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-btn.copy:hover { background: var(--brand-gold); border-color: var(--brand-gold); color: #000; }
.share-btn svg { width: 16px; height: 16px; }

/* Featured Image */
.single-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  position: relative;
}

.single-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.featured-caption {
  padding: 10px var(--space-md);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--divider);
}

/* Article Body */
.entry-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { margin: 2em 0 0.8em; font-size: 1.6rem; }
.entry-content h3 { margin: 1.8em 0 0.6em; font-size: 1.3rem; }
.entry-content h4 { margin: 1.5em 0 0.5em; }

.entry-content a { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--link-hover); }

.entry-content ul, .entry-content ol {
  padding-left: 1.8em;
  margin-bottom: 1.4em;
  list-style: disc;
}

.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5em; }

.entry-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) auto;
}

/* Callout Box */
.entry-content .wp-block-pullquote {
  border-top: 4px solid var(--brand-gold);
  border-bottom: 4px solid var(--brand-gold);
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-2xl) 0;
  text-align: center;
}

.entry-content .wp-block-pullquote p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
}

/* Data/Stat Box */
.stat-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.stat-box-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: var(--space-sm);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 4px;
}

[data-theme="dark"] .stat-value { color: var(--brand-gold); }

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tags & Categories */
.post-tags { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--divider); }
.post-tags-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* Author Box */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brand-gold);
  flex-shrink: 0;
}

.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-box-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.author-box-bio {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   RELATED POSTS
   =================================================================== */
.related-posts { margin: var(--space-2xl) 0; }

/* ===================================================================
   CATEGORY LABEL COLORS
   =================================================================== */
.cat-ekonomi { color: #1A3A6C; }
.cat-pasar { color: #16A34A; }
.cat-bisnis { color: #7C3AED; }
.cat-investasi { color: #C9A84C; }
.cat-global { color: #DC2626; }
.cat-teknologi { color: #0EA5E9; }

/* ===================================================================
   SECTIONS
   =================================================================== */
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--bg-secondary); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--bg-footer);
  border-top: 3px solid var(--brand-gold);
  margin-top: auto;
}

.footer-top {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo-name { font-size: 1.4rem; }
.footer-about {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-top: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
  transition: all var(--transition-fast);
  font-size: 0;
}

.social-icon:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background: rgba(201,168,76,0.1);
}

.social-icon svg { width: 16px; height: 16px; }

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--brand-gold); }

.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

.footer-bottom-links a:hover { color: var(--brand-gold); }

/* ===================================================================
   PAGINATION
   =================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.pagination a:hover { background: var(--bg-tertiary); color: var(--brand-gold-dark); border-color: var(--brand-gold); }
.pagination .current { background: var(--brand-navy); color: var(--brand-gold); border-color: var(--brand-navy); }

/* ===================================================================
   COMMENTS
   =================================================================== */
.comments-section {
  margin: var(--space-2xl) 0;
  padding-top: var(--space-2xl);
  border-top: 2px solid var(--divider);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--space-xl);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--brand-gold); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px var(--space-xl);
  background: var(--brand-navy);
  color: var(--brand-gold);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-navy);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--brand-gold);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
}

/* ===================================================================
   404 PAGE
   =================================================================== */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}

.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
  opacity: 0.2;
  display: block;
}

/* ===================================================================
   UTILITIES
   =================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--divider) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--brand-navy);
  color: var(--brand-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition-mid);
  z-index: 500;
  border: 1px solid rgba(201,168,76,0.3);
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-gold); color: var(--brand-navy); }
.scroll-top svg { width: 18px; height: 18px; }

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--brand-gold);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Print */
@media print {
  .site-nav, .site-sidebar, .site-footer, .scroll-top, .top-ticker { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.5s ease both; }

/* ===================================================================
   WP CORE FIXES
   =================================================================== */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-top: 6px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: var(--space-lg); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-lg); margin-bottom: var(--space-md); }
.alignfull { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.alignwide { max-width: calc(100% + var(--space-2xl)); margin-left: calc(-1 * var(--space-xl)); margin-right: calc(-1 * var(--space-xl)); }
.screen-reader-text { @extend .visually-hidden; }
.sticky { border-left: 3px solid var(--brand-gold); padding-left: var(--space-md); }
