/*
 * KabarViral 62 - Modern, Advance, & Ultra-Responsive News Portal Theme
 * Supports Light & Dark Themes, Mobile-First Responsiveness, and Editorial Aesthetics
 */

:root {
    --bg-page: #f4f6fb;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-subtle: rgba(241, 245, 249, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.85);
    --border-light: rgba(241, 245, 249, 0.6);
    --brand-red: #dc2626;
    --brand-red-light: #fee2e2;
    --shopee-orange: #ee4d2d;
    --shopee-bg: #fff7ed;
    --shopee-border: #fed7aa;
    --exabytes-blue: #0284c7;
    --exabytes-bg: #f0f9ff;
    --exabytes-border: #bae6fd;
    --emerald-green: #059669;
    --emerald-bg: #ecfdf5;
    --blue-accent: #2563eb;
    --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
}

[data-theme="dark"] {
    --bg-page: #090d16;
    --bg-card: rgba(15, 23, 42, 0.82);
    --bg-card-subtle: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.09);
    --border-light: rgba(255, 255, 255, 0.05);
    --brand-red-light: rgba(220, 38, 38, 0.2);
    --shopee-bg: rgba(238, 77, 45, 0.12);
    --shopee-border: rgba(238, 77, 45, 0.3);
    --exabytes-bg: rgba(2, 132, 199, 0.12);
    --exabytes-border: rgba(56, 189, 248, 0.28);
    --emerald-bg: rgba(5, 150, 105, 0.12);
    --shadow-md: 0 6px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 14px 36px -4px rgba(0, 0, 0, 0.65);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    background-image:
        radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        radial-gradient(ellipse 90% 45% at 50% 0%, rgba(99, 102, 241, 0.06), transparent 75%),
        radial-gradient(ellipse 50% 40% at 95% 30%, rgba(244, 63, 94, 0.03), transparent 60%),
        radial-gradient(ellipse 60% 50% at 5% 85%, rgba(14, 165, 233, 0.04), transparent 70%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 30px;
}

[data-theme="dark"] body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        radial-gradient(ellipse 90% 45% at 50% 0%, rgba(99, 102, 241, 0.13), transparent 75%),
        radial-gradient(ellipse 55% 40% at 95% 25%, rgba(14, 165, 233, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(220, 38, 38, 0.05), transparent 70%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

/* ─────────────────────────────────────────────────────────────
   BREAKING NEWS TICKER
   ───────────────────────────────────────────────────────────── */
.ticker-strip {
    background: #0f172a;
    color: #ffffff;
    font-size: 11.5px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}
.ticker-badge {
    background: var(--brand-red);
    color: #ffffff;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}
.ticker-slider {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.ticker-slider a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.15s ease;
}
.ticker-slider a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   TOP MASTHEAD & NAV
   ───────────────────────────────────────────────────────────── */
.masthead {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.masthead-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}
.brand-logo-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.3));
    transition: transform 0.2s ease;
}
.brand-group:hover .brand-logo-emblem {
    transform: scale(1.05);
}
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.brand-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.brand-title-main {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}
.brand-title-accent {
    color: var(--brand-red);
}
.brand-badge-62 {
    font-size: 11px;
    font-weight: 800;
    background: var(--brand-red);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.brand-subline {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-icon {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-icon:hover {
    transform: translateY(-1px);
}

.search-box-wrap {
    display: none;
}
@media (min-width: 768px) {
    .search-box-wrap {
        display: block;
    }
}
.search-form-inline {
    display: flex;
    align-items: center;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px 10px;
}
.search-form-inline input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 12.5px;
    width: 180px;
    font-family: inherit;
}
.search-form-inline button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────
   CATEGORY PILL NAVIGATION
   ───────────────────────────────────────────────────────────── */
.nav-categories {
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}
.nav-categories-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.nav-categories-inner::-webkit-scrollbar {
    display: none;
}
.cat-pill {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 20px;
    background: transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cat-pill:hover {
    color: var(--text-primary);
    background: var(--bg-card-subtle);
}
.cat-pill.active {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT WRAPPER
   ───────────────────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 18px;
}
.editorial-date-bar {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.portal-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 992px) {
    .portal-grid-layout {
        grid-template-columns: 1.8fr 1.1fr;
        gap: 32px;
    }
}

/* ─────────────────────────────────────────────────────────────
   HERO BREAKING FEATURED CARD
   ───────────────────────────────────────────────────────────── */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 26px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.hero-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}
.hero-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.hero-card:hover .hero-thumb-wrap img {
    transform: scale(1.03);
}
.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
}
.hero-content {
    padding: 22px;
}
.hero-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-red);
    background: var(--brand-red-light);
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hero-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
}
.hero-lead-snippet {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   NEWS FEED GRID
   ───────────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-red);
    margin-bottom: 20px;
}
.section-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}
.section-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .category-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card-thumb {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-card-subtle);
    overflow: hidden;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.article-card-thumb:hover .card-img-wrap img {
    transform: scale(1.04);
}
.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-cat-badge {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--brand-red);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.card-heading {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-snippet {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-meta-row {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: auto;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR (POPULAR & TOPIC TAGS)
   ───────────────────────────────────────────────────────────── */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

.popular-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.15s ease;
}
.popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.popular-item:hover {
    opacity: 0.85;
}
.popular-rank {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand-red);
    width: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.popular-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.popular-cat {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}
.popular-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-badge {
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-card-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.tag-badge:hover {
    background: var(--brand-red);
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   ARTICLE DETAIL VIEW
   ───────────────────────────────────────────────────────────── */
.article-full-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}
.article-masthead-pad {
    padding: 24px 22px 16px;
}
.breadcrumb-trail {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.breadcrumb-trail a {
    color: var(--text-secondary);
    text-decoration: none;
}
.article-h1 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .article-h1 {
        font-size: 30px;
    }
}
.byline-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.byline-badge {
    font-weight: 700;
    color: var(--text-primary);
}
.byline-spacer {
    flex: 1;
}
.reader-tools-group {
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-tool-pill {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-tool-pill:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f97316);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Executive Summary / Ringkasan Eksekutif (Editorial Style) */
.key-takeaways-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-left: 3.5px solid var(--brand-red);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 18px 20px 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .key-takeaways-card {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--brand-red);
}
[data-theme="light"] .key-takeaways-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-left-color: var(--brand-red);
}
.takeaways-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.takeaways-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.takeaways-list li:last-child {
    margin-bottom: 0;
}
.takeaways-list li::before {
    content: "–";
    position: absolute;
    left: 2px;
    color: var(--brand-red);
    font-weight: 800;
    font-size: 14px;
}

.article-hero-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.article-caption {
    padding: 10px 22px;
    background: var(--bg-card-subtle);
    border-bottom: 1px solid var(--border-color);
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.article-prose {
    padding: 24px 20px;
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-primary);
    transition: font-size 0.2s ease;
}
.article-prose p {
    margin-bottom: 20px;
}
.dateline-lead {
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--text-primary);
    font-style: normal;
}
.subheading-h2 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 28px 0 14px;
}
.article-subheading {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 26px 0 12px;
    line-height: 1.35;
    border-left: 3px solid var(--brand-red);
    padding-left: 10px;
}
.article-ordered-list {
    margin: 12px 0 20px 24px;
    padding: 0;
    color: var(--text-secondary);
}
.article-ordered-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 14.5px;
}
.article-ordered-list li strong {
    color: var(--text-primary);
}
.article-bullet-list {
    margin: 12px 0 20px 20px;
    padding: 0;
    color: var(--text-secondary);
}
.article-bullet-list li {
    margin-bottom: 6px;
    line-height: 1.6;
    font-size: 14.5px;
}
.article-bullet-list li strong {
    color: var(--text-primary);
}
.article-quote {
    font-family: var(--font-sans);
    background: var(--bg-card-subtle);
    border-left: 4px solid var(--brand-red);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
}
.editorial-quote {
    font-family: var(--font-sans);
    background: var(--bg-card-subtle);
    border-left: 4px solid var(--brand-red);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Interactive Article Hashtags */
.article-tags-wrap {
    margin: 24px 0 16px 0;
    padding: 14px 18px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.tags-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-pill-link {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.tag-pill-link:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateY(-1px);
}

/* Reader Reactions Widget (Modern Editorial & Real Metrics) */
.reader-reactions-card {
    margin: 26px 0 28px 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(8px);
}
[data-theme="dark"] .reader-reactions-card {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .reader-reactions-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.reactions-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}
.reactions-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.btn-reaction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.btn-reaction:hover {
    transform: translateY(-2px);
}
/* Individual Thematic Glow per Reaction */
.btn-reaction.react-insightful:hover, .btn-reaction.react-insightful.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}
.btn-reaction.react-important:hover, .btn-reaction.react-important.active {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.12);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
}
.btn-reaction.react-alert:hover, .btn-reaction.react-alert.active {
    border-color: #eab308;
    background: rgba(234, 179, 8, 0.12);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.2);
}
.btn-reaction.react-curious:hover, .btn-reaction.react-curious.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}
.reaction-emoji {
    font-size: 15px;
    line-height: 1;
}
.reaction-label {
    font-size: 12.5px;
}
.reaction-count {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
    transition: all 0.2s ease;
}
[data-theme="light"] .reaction-count {
    background: #e2e8f0;
}
.btn-reaction.active .reaction-count {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.18);
}

/* Sentimen Netizen (+62 Pulse) */
.netizen-pulse-box {
    font-family: var(--font-sans);
    background: var(--emerald-bg);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 24px 0;
}
.pulse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pulse-tag {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--emerald-green);
    text-transform: uppercase;
}
.pulse-platforms {
    background: var(--bg-card);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: var(--emerald-green);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.pulse-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Native Editorial Sponsor Card (Shopee Tier-1) */
.native-sponsor-card {
    font-family: var(--font-sans);
    background: var(--shopee-bg);
    border: 1.5px solid var(--shopee-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 24px 0;
}
.sponsor-top-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sponsor-pill {
    background: var(--shopee-orange);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}
.sponsor-subtext {
    font-size: 11px;
    color: var(--shopee-orange);
    font-weight: 700;
}
.sponsor-body {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.sponsor-img {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #ffffff;
}
.sponsor-info {
    flex: 1;
    overflow: hidden;
}
.sponsor-prod-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.sponsor-price-now {
    font-size: 17px;
    font-weight: 800;
    color: var(--shopee-orange);
}
.sponsor-price-was {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}
.btn-shopee-cta {
    background: var(--shopee-orange);
    color: #ffffff;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
}
.btn-shopee-cta:hover {
    opacity: 0.9;
}

/* Multi-Source Verification */
.verification-card {
    font-family: var(--font-sans);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 22px 0;
}
.verification-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}
.verify-link-row {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s ease;
}
.verify-link-row:hover {
    border-color: var(--blue-accent);
}
.verify-link-row span:last-child {
    color: var(--blue-accent);
    font-weight: 700;
}

/* Action Share Buttons */
.share-action-row {
    font-family: var(--font-sans);
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-share-wa {
    flex: 1;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s ease;
}
.btn-share-wa:hover {
    opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────
   COMMENTS & DISCUSSION
   ───────────────────────────────────────────────────────────── */
.comments-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.comments-thread {
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.comment-bubble {
    padding: 12px 14px;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-sm);
}
.comment-user-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.comment-user {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
}
.comment-time {
    font-size: 11px;
    color: var(--text-muted);
}
.comment-msg {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.comment-input-form {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.form-input-name {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: inherit;
    margin-bottom: 8px;
    outline: none;
}
.form-input-msg {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    margin-bottom: 10px;
    outline: none;
}
.btn-submit-comment {
    background: var(--brand-red);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.btn-submit-comment:hover {
    opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER (EXABYTES PARTNER CREDITS)
   ───────────────────────────────────────────────────────────── */
.portal-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 30px 18px 24px;
    margin-top: 40px;
}
.footer-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 12.5px;
}
.footer-nav-row a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s ease;
}
.footer-nav-row a:hover {
    color: var(--brand-red);
}
.footer-nav-row span {
    color: var(--text-muted);
}
.footer-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}
.footer-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}
.footer-nav-links a:hover {
    color: var(--brand-red);
}
.exabytes-credit-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.exabytes-badge-link {
    font-weight: 800;
    color: #0284c7;
    text-decoration: none;
}
.exabytes-promo-link {
    font-weight: 600;
    color: var(--blue-accent);
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   IN-ARTICLE 'BACA JUGA' INTERNAL RECS (ANTI-BOUNCE)
   ───────────────────────────────────────────────────────────── */
.in-article-recs-box {
    font-family: var(--font-sans);
    background: var(--bg-card-subtle);
    border-left: 4px solid var(--brand-red);
    padding: 12px 16px;
    margin: 22px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.recs-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.recs-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease;
}
.recs-link:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

/* Ethical Source Attribution & Official Link */
.source-credit-box {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin: 20px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.source-credit-icon {
    display: inline-flex;
    color: var(--brand-red);
    flex-shrink: 0;
}
.source-credit-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}
.source-credit-desc {
    margin: 0;
    color: var(--text-secondary);
}
.source-official-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}
.source-official-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
[data-theme="dark"] .source-official-link {
    color: #60a5fa;
}
[data-theme="dark"] .source-official-link:hover {
    color: #93c5fd;
}

/* Curated Partner & Shopee Affiliate Card (Sleek & Native Editorial) */
.curated-partner-card {
    font-family: var(--font-sans);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 18px 0;
    transition: border-color 0.15s ease;
}
.curated-partner-card:hover {
    border-color: #ee4d2d;
}
.partner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.partner-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ee4d2d;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.partner-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.partner-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.partner-card-details {
    flex: 1;
    min-width: 180px;
}
.partner-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px 0;
    line-height: 1.35;
}
.partner-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}
.btn-partner-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ee4d2d;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}
.btn-partner-cta:hover {
    opacity: 0.9;
}

/* Mini Partner Card (Exabytes & Compact Deals - Sleek & Non-Intrusive) */
.curated-partner-card.partner-card-mini {
    padding: 10px 16px;
    margin: 8px 0 16px 0;
    border-radius: var(--radius-sm);
    background: var(--exabytes-bg);
    border: 1px solid var(--exabytes-border);
}
.curated-partner-card.partner-card-mini:hover {
    border-color: #0284c7;
}
.curated-partner-card.partner-card-mini .partner-card-header {
    margin-bottom: 5px;
}
.partner-tag-blue {
    color: #0284c7 !important;
}
[data-theme="dark"] .partner-tag-blue {
    color: #38bdf8 !important;
}
.partner-title-mini {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.35;
}
.partner-desc-mini {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
}
.btn-partner-cta-blue {
    background: #0284c7 !important;
    font-size: 11.5px !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
}
.btn-partner-cta-blue:hover {
    background: #0369a1 !important;
    opacity: 0.95;
}

/* Article Prev/Next Navigation Grid */
.article-prev-next-grid {
    font-family: var(--font-sans);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 26px 0;
}
@media (min-width: 640px) {
    .article-prev-next-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.nav-article-card {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.nav-article-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-2px);
}
.nav-dir-label {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: 0.04em;
}
.nav-title-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#btnLoadMore:hover {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
}

/* ─────────────────────────────────────────────────────────────
   THEME TOGGLE BUTTON & ICONS
   ───────────────────────────────────────────────────────────── */
.theme-toggle-btn {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--brand-red);
}
.theme-toggle-btn .icon-sun {
    display: none;
}
.theme-toggle-btn .icon-moon {
    display: block;
}
[data-theme="dark"] .theme-toggle-btn .icon-sun {
    display: block;
}
[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: none;
}

/* ─────────────────────────────────────────────────────────────
   TOAST POPUP NOTIFICATION
   ───────────────────────────────────────────────────────────── */
.toast-popup {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 10000;
}
.toast-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   SLEEK SHARE SUITE (TIER-1 MEDIA STANDARD)
   ───────────────────────────────────────────────────────────── */
.share-suite-box {
    font-family: var(--font-sans);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin: 28px 0;
    box-shadow: var(--shadow-sm);
}
.share-suite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}
.share-suite-title {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.share-suite-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.share-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-share-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-card-subtle);
    color: var(--text-primary);
}
.btn-share-pill svg {
    flex-shrink: 0;
}
.btn-share-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-share-pill:active {
    transform: scale(0.96);
}

/* WhatsApp Pill */
.btn-share-whatsapp {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}
.btn-share-whatsapp:hover {
    background: #1eb956;
    border-color: #1eb956;
}

/* X / Twitter Pill */
.btn-share-x {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
[data-theme="dark"] .btn-share-x {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}
.btn-share-x:hover {
    opacity: 0.9;
}

/* Facebook Pill */
.btn-share-fb {
    background: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
}
.btn-share-fb:hover {
    background: #1464cc;
    border-color: #1464cc;
}

/* Copy Link Pill */
.btn-share-copy {
    background: var(--bg-card-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-share-copy:hover {
    background: var(--brand-red-light);
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* ─────────────────────────────────────────────────────────────
   COMMENTS AVATAR & USER METADATA
   ───────────────────────────────────────────────────────────── */
.comment-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), #b91c1c);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.comment-meta-user {
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────────────────────────────────────────
   MODERN LOAD MORE BUTTON
   ───────────────────────────────────────────────────────────── */
.btn-modern-loadmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-modern-loadmore:hover {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ─────────────────────────────────────────────────────────────
   SOURCE CREDIT ICON ALIGNMENT
   ───────────────────────────────────────────────────────────── */
.source-credit-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.source-credit-icon {
    display: inline-flex;
    color: var(--brand-red);
    flex-shrink: 0;
    margin-top: 2px;
}

