/*
Theme Name: Portal Berita Today Premium
Theme URI: https://portalberita.today/
Author: Redaksi Portal Berita Today
Author URI: https://portalberita.today/
Description: Tema Portal Berita & Majalah Profesional WordPress untuk portalberita.today. Dilengkapi mode gelap/terang, reading progress bar, breaking news grid, serta halaman standar Dewan Pers & media siber.
Version: 1.1.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portalberita
Tags: news, magazine, dark-mode, grid-layout, custom-menu, featured-images, translation-ready, theme-options
*/

/* ==========================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================== */
:root {
  /* DARK THEME (DEFAULT / OBSIDIAN LUXURY) */
  --bg-main: #080C14;
  --bg-surface: #0E1626;
  --bg-card: #121B2F;
  --bg-card-hover: #18253F;
  --bg-topbar: #05080E;
  --bg-glass: rgba(14, 22, 38, 0.75);
  
  --border-color: #1E2B45;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(225, 29, 72, 0.35);

  --accent-primary: #E11D48; /* Crimson Neon */
  --accent-primary-hover: #F43F5E;
  --accent-secondary: #F59E0B; /* Warm Amber */
  --accent-blue: #3B82F6; /* Vivid Sky Blue */
  --accent-emerald: #10B981;

  --text-primary: #F8FAFC;
  --text-heading: #FFFFFF;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  --container-max: 1240px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 18px 38px -8px rgba(225, 29, 72, 0.22);
  --shadow-glow: 0 0 25px rgba(225, 29, 72, 0.25);

  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LIGHT THEME OVERRIDES */
[data-theme='light'] {
  --bg-main: #F4F6F9;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-topbar: #0F172A;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-color: #E2E8F0;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(225, 29, 72, 0.2);

  --text-primary: #1E293B;
  --text-heading: #0F172A;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 16px 32px -6px rgba(225, 29, 72, 0.15);
}

/* ==========================================================
   RESET & BASELINE
   ========================================================== */
*, *::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-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================================
   READING PROGRESS BAR (SINGLE POST)
   ========================================================== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: 9999;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.6);
  transition: width 0.1s ease-out;
}

/* ==========================================================
   LAYOUT CONTAINERS
   ========================================================== */
.naga-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  flex: 1 0 auto;
  padding: 24px 0 60px;
}

/* ==========================================================
   TOP BAR: LIVE CLOCK & TICKER
   ========================================================== */
.naga-topbar {
  background: var(--bg-topbar);
  color: var(--text-muted);
  font-size: 12.5px;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  position: relative;
  z-index: 100;
}

.naga-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--text-faint);
  font-weight: 500;
}

.topbar-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 650px;
  overflow: hidden;
}

.ticker-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ticker-pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.ticker-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  font-weight: 500;
}

.ticker-content a:hover {
  color: var(--accent-primary-hover);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* ==========================================================
   SITE HEADER & NAVIGATION
   ========================================================== */
.naga-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 990;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-text .brand-glow {
  color: var(--accent-primary);
  text-shadow: 0 0 16px rgba(225, 29, 72, 0.5);
}

.brand-tagline {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: -4px;
}

/* PRIMARY NAVIGATION */
.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--accent-primary);
  background: rgba(225, 29, 72, 0.08);
}

/* DROPDOWN SUBMENU */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  min-width: 200px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 999;
}

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

.nav-menu .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-menu .sub-menu a:hover {
  background: rgba(225, 29, 72, 0.1);
  color: var(--accent-primary);
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn,
.mobile-menu-trigger {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-trigger-btn:hover,
.mobile-menu-trigger:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.mobile-menu-trigger {
  display: none;
}

/* ==========================================================
   HERO FEATURED BREAKING GRID (INDEX/HOME)
   ========================================================== */
.hero-breaking-grid {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.hero-thumb-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-main-card:hover .hero-thumb-link img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.1) 0%, rgba(8, 12, 20, 0.7) 50%, rgba(8, 12, 20, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.category-badge {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.category-badge.gold {
  background: var(--accent-secondary);
}

.category-badge.blue {
  background: var(--accent-blue);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-title a:hover {
  color: #FDA4AF;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* HERO SIDE COLUMN */
.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-sub-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  min-height: 135px;
  box-shadow: var(--shadow-sm);
}

.hero-sub-card:hover .hero-thumb-link img {
  transform: scale(1.06);
}

.hero-sub-card .hero-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

/* ==========================================================
   MAIN CONTENT GRID & POST CARDS
   ========================================================== */
.content-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}

.section-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 26px;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.post-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ARTICLE CARD */
.naga-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
}

.naga-post-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
}

.post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
}

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

.naga-post-card:hover .post-card-thumb img {
  transform: scale(1.06);
}

.card-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.post-card-title a:hover {
  color: var(--accent-primary);
}

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

.post-author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.post-author-mini img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.post-card-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================
   PAGINATION
   ========================================================== */
.naga-pagination {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.naga-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.naga-pagination .page-numbers:hover,
.naga-pagination .page-numbers.current {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
}

/* ==========================================================
   SIDEBAR & WIDGETS
   ========================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent-primary);
}

/* TRENDING POSTS LIST WIDGET */
.trending-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.trending-item-rank {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-faint);
  min-width: 28px;
  text-align: center;
}

.trending-item:nth-child(1) .trending-item-rank { color: var(--accent-primary); }
.trending-item:nth-child(2) .trending-item-rank { color: var(--accent-secondary); }
.trending-item:nth-child(3) .trending-item-rank { color: var(--accent-blue); }

.trending-item-thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.trending-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-item-info {
  flex: 1;
}

.trending-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.trending-item-date {
  font-size: 11px;
  color: var(--text-faint);
}

/* CATEGORY PILL WIDGET */
.category-pill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.category-pill-item:hover {
  border-color: var(--accent-primary);
  background: rgba(225, 29, 72, 0.08);
  color: var(--accent-primary);
}

.category-pill-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-faint);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* NEWSLETTER WIDGET */
.newsletter-card {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-glow);
  position: relative;
  overflow: hidden;
}

.newsletter-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.newsletter-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #fff;
}

.newsletter-input:focus {
  border-color: var(--accent-primary);
}

.newsletter-submit {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-submit:hover {
  background: var(--accent-primary-hover);
}

/* ==========================================================
   SINGLE POST VIEW
   ========================================================== */
.single-post-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}

.post-breadcrumbs {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-breadcrumbs a:hover {
  color: var(--accent-primary);
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-author-wrap img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-featured-media {
  margin-bottom: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

/* SOCIAL SHARE STRIP */
.social-share-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-fast);
}

.share-btn.wa { background: #25D366; }
.share-btn.tw { background: #000000; border: 1px solid rgba(255,255,255,0.2); }
.share-btn.tg { background: #229ED9; }
.share-btn.fb { background: #1877F2; }
.share-btn.copy { background: #475569; }

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ARTICLE BODY TYPOGRAPHY */
.entry-content {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-primary);
}

.entry-content p {
  margin-bottom: 22px;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.entry-content h2 {
  font-size: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.entry-content h3 {
  font-size: 20px;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-surface);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text-muted);
}

.entry-content code {
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-family: monospace;
  font-size: 14px;
  border: 1px solid var(--border-color);
}

.entry-content pre {
  background: #05080E;
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
}

/* POST TAGS */
.post-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.post-tag-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.post-tag-item:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* AUTHOR BIO BOX */
.author-bio-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
}

.author-bio-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.author-bio-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.author-bio-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* RELATED POSTS GRID */
.related-posts-section {
  margin-top: 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ==========================================================
   COMMENTS SECTION
   ========================================================== */
.comments-area {
  margin-top: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.comment-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author img {
  border-radius: 50%;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--text-heading);
}

.comment-metadata {
  font-size: 12px;
  color: var(--text-faint);
}

.comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* COMMENT FORM */
.comment-respond {
  margin-top: 20px;
}

.comment-reply-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
}

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

.comment-form input[type="submit"] {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.comment-form input[type="submit"]:hover {
  background: var(--accent-primary-hover);
}

/* ==========================================================
   SITE FOOTER
   ========================================================== */
.naga-footer {
  background: var(--bg-topbar);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding-top: 50px;
  color: var(--text-muted);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-primary);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer-links-list a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BACK TO TOP BUTTON */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-smooth);
  z-index: 995;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-3px);
}

/* ==========================================================
   SEARCH MODAL
   ========================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.search-modal-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.search-modal-overlay.active .search-modal-box {
  transform: scale(1);
}

.search-form-modal {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 12px;
}

.search-modal-input {
  flex: 1;
  font-size: 20px;
  color: #fff;
}

.search-modal-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 24px;
}

/* ==========================================================
   RESPONSIVENESS (TABLET & MOBILE)
   ========================================================== */
@media (max-width: 1024px) {
  .hero-breaking-grid {
    grid-template-columns: 1fr;
  }
  .content-layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }
  .mobile-menu-trigger {
    display: inline-flex;
  }
  .post-feed-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .single-post-wrapper {
    padding: 24px 20px;
  }
  .single-post-title {
    font-size: 26px;
  }
  .hero-main-card {
    min-height: 320px;
    padding: 20px;
  }
  .hero-title {
    font-size: 22px;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .topbar-date {
    display: none;
  }
}
