/* ============================================================
   PERADABAN BUKU – Main Stylesheet
   Berdasarkan Spesifikasi Desain v3.0
   ============================================================ */

/* ── 1. VARIABEL & RESET ─────────────────────────────────── */
:root {
    --bg-primary:      #FDFCF9;   /* krem hangat — kesan kertas */
    --bg-secondary:    #FFFFFE;   /* putih sedikit warm */
    --text-primary:    #1A1A1A;
    --text-secondary:  #555555;   /* lebih gelap → kontras WCAG AA */
    --text-tertiary:   #888888;
    --accent:          #8B0000;
    --accent-hover:    #6B0000;
    --border:          #E5E5E5;
    --border-light:    #F0EDE8;   /* border juga sedikit warm */

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-reading: 'Lora', Georgia, serif;  /* untuk teks panjang artikel */

    --content-width:  700px;
    --sidebar-width:  300px;
    --gap-main:       48px;
    --container-max:  1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size:   18px;
    line-height: 1.7;
    color:       var(--text-primary);
    background:  var(--bg-primary);
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

/* ── 2. LAYOUT UTILITIES ─────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin:    0 auto;
    padding:   0 24px;
}

.divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 64px 0;
}

.empty-state {
    color: var(--text-tertiary);
    font-style: italic;
    padding: 32px 0;
    text-align: center;
    font-size: 16px;
}

/* ── 3. READING PROGRESS BAR ─────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── 4. HEADER & NAVIGASI ────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-family:    var(--font-heading);
    font-size:      30px;
    font-weight:    700;
    color:          var(--text-primary);
    letter-spacing: -0.02em;
    line-height:    1.1;
    flex-shrink:    0;
}
.logo-text:hover { color: var(--accent); }

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    font-size:      14px;
    font-weight:    500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color:          var(--text-secondary);
    position:       relative;
    padding-bottom: 2px;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}
.nav a:hover, .nav a.active {
    color: var(--accent);
    font-weight: 600;
}
.nav a.active::after,
.nav a:hover::after { width: 100%; }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search */
.header-search { display: flex; align-items: center; gap: 8px; }
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s, background 0.2s;
}
.search-toggle:hover { color: var(--accent); background: var(--border-light); }

.search-input-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}
.search-input-wrapper.active { width: 240px; }

.search-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    background: var(--bg-primary);
    outline: none;
    font-family: var(--font-body);
}
.search-input:focus { border-color: var(--accent); }

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 5. KOMPONEN UMUM ────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size:      11px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--accent);
    margin-bottom:  12px;
}

.breadcrumbs {
    font-size:   12px;
    color:       var(--text-tertiary);
    margin-bottom: 16px;
    display:     flex;
    align-items: center;
    gap:         8px;
    flex-wrap:   wrap;
}
.breadcrumbs a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .separator { color: var(--text-tertiary); font-size: 10px; }
.breadcrumbs .current   { color: var(--text-tertiary); }

.btn {
    display:        inline-flex;
    align-items:    center;
    gap:            8px;
    padding:        12px 24px;
    border-radius:  4px;
    font-size:      14px;
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor:         pointer;
    border:         none;
    transition:     background 0.2s;
}
.btn-primary          { background: var(--accent); color: #FFF; }
.btn-primary:hover    { background: var(--accent-hover); color: #FFF; }
.btn-secondary        { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover  { background: var(--accent); color: #FFF; }

.section-title {
    font-family:   var(--font-heading);
    font-size:     32px;
    font-weight:   700;
    margin-bottom: 32px;
    color:         var(--text-primary);
}

.page-header { text-align: center; margin-bottom: 64px; }
.page-title {
    font-family:   var(--font-heading);
    font-size:     42px;
    font-weight:   700;
    margin-bottom: 16px;
    color:         var(--text-primary);
    text-wrap:     balance;
}
.page-subtitle { font-size: 18px; color: var(--text-secondary); }

/* ── 6. HALAMAN BERANDA ──────────────────────────────────── */
.hero-issue {
    background:    var(--bg-secondary);
    padding:       64px;
    border-radius: 12px;
    box-shadow:    0 2px 8px rgba(0,0,0,.08);
    margin:        64px 0;
    text-align:    center;
    position:      relative;
    overflow:      hidden;
}
.hero-issue::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.issue-label {
    display:        inline-flex;
    align-items:    center;
    gap:            8px;
    font-size:      12px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--accent);
    margin-bottom:  16px;
}
.hero-issue h1 {
    font-family:   var(--font-heading);
    font-size:     48px;
    font-weight:   700;
    line-height:   1.2;
    color:         var(--text-primary);
    margin-bottom: 24px;
    text-wrap:     balance;
}
.hero-issue p {
    font-size:     18px;
    line-height:   1.6;
    color:         var(--text-secondary);
    max-width:     600px;
    margin:        0 auto 32px;
}

/* Article Grid */
.article-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:           32px;
    margin-bottom: 64px;
}
.article-card {
    background:    var(--bg-secondary);
    border-radius: 8px;
    padding:       24px;
    box-shadow:    0 2px 8px rgba(0,0,0,.06);
    transition:    all 0.3s ease;
    cursor:        pointer;
    position:      relative;
    overflow:      hidden;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.article-card:hover::before    { transform: scaleX(1); }
.article-card:hover            { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.article-type-label {
    font-size:      11px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--accent);
    margin-bottom:  8px;
}
.article-card h3 {
    font-family:   var(--font-heading);
    font-size:     20px;
    font-weight:   700;
    line-height:   1.3;
    color:         var(--text-primary);
    margin-bottom: 12px;
}
.article-card p {
    font-size:     15px;
    line-height:   1.6;
    color:         var(--text-secondary);
    margin-bottom: 16px;
}
.article-meta {
    font-size:   13px;
    color:       var(--text-tertiary);
    display:     flex;
    gap:         16px;
    align-items: center;
    flex-wrap:   wrap;
}

/* ── 7. HALAMAN TEMA (ISSUE PAGE) ────────────────────────── */
.tema-container {
    max-width: 900px;
    margin:    64px auto;
    padding:   0 24px;
}
.tema-header {
    text-align:    center;
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}
.tema-title {
    font-family:   var(--font-heading);
    font-size:     56px;
    font-weight:   700;
    color:         var(--text-primary);
    margin-bottom: 16px;
    line-height:   1.1;
    text-wrap:     balance;
}
.tema-intro {
    font-family: var(--font-reading);
    font-size:   21px;
    font-style:  italic;
    line-height: 1.65;
    color:       var(--text-secondary);
    max-width:   700px;
    margin:      16px auto 0;
}

.content-section { margin-bottom: 64px; }
.section-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   32px;
    padding-bottom:  12px;
    border-bottom:   2px solid var(--border);
}
.section-title-flex {
    display:     flex;
    align-items: center;
    gap:         12px;
    font-family: var(--font-heading);
    font-size:   28px;
    font-weight: 700;
}
.section-count {
    font-size:    14px;
    font-weight:  600;
    color:        var(--text-tertiary);
    background:   var(--border-light);
    padding:      4px 12px;
    border-radius: 12px;
}

.content-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.content-item {
    background:    var(--bg-secondary);
    border-radius: 8px;
    padding:       24px;
    box-shadow:    0 2px 8px rgba(0,0,0,.06);
    transition:    all 0.3s ease;
    cursor:        pointer;
    border-left:   4px solid transparent;
}
.content-item:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.content-item.artikel { border-left-color: #8B0000; }
.content-item.esai    { border-left-color: #1E3A8A; }
.content-item.sketsa  { border-left-color: #059669; }
.content-item.resensi { border-left-color: #D97706; }

.content-item-title {
    font-family:   var(--font-heading);
    font-size:     22px;
    font-weight:   700;
    line-height:   1.3;
    color:         var(--text-primary);
    margin-bottom: 12px;
}
.content-item-excerpt {
    font-size:     15px;
    line-height:   1.6;
    color:         var(--text-secondary);
    margin-bottom: 16px;
}
.content-item-meta {
    display:   flex;
    gap:       16px;
    font-size: 13px;
    color:     var(--text-tertiary);
    flex-wrap: wrap;
}

/* ── 8. HALAMAN ARSIP ────────────────────────────────────── */
.archive-container {
    max-width: 800px;
    margin:    64px auto;
    padding:   0 24px;
}
.archive-year  { margin-bottom: 56px; }
.year-heading {
    font-family:    var(--font-heading);
    font-size:      24px;
    font-weight:    700;
    color:          var(--text-primary);
    margin-bottom:  24px;
    padding-bottom: 12px;
    border-bottom:  2px solid var(--border);
    display:        flex;
    align-items:    center;
    gap:            12px;
}
.year-heading::before {
    content: '';
    display: block;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.issue-list { list-style: none; }
.issue-item {
    display:         flex;
    align-items:     flex-start;
    justify-content: space-between;
    padding:         24px 0;
    border-bottom:   1px solid var(--border-light);
    transition:      all 0.2s ease;
    cursor:          pointer;
    border-radius:   4px;
}
.issue-item:hover {
    background:          var(--bg-secondary);
    padding-left:        16px;
    padding-right:       16px;
    border-bottom-color: transparent;
    box-shadow:          0 4px 12px rgba(0,0,0,.05);
}
.issue-info { display: flex; flex-direction: column; gap: 4px; max-width: 80%; }
.issue-item-label {
    font-size:      11px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--accent);
}
.issue-title {
    font-family: var(--font-heading);
    font-size:   22px;
    font-weight: 700;
    color:       var(--text-primary);
    line-height: 1.3;
}
.issue-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.issue-date { font-size: 13px; color: var(--text-tertiary); white-space: nowrap; flex-shrink: 0; }

/* ── 9. HALAMAN TENTANG ──────────────────────────────────── */
.about-container {
    max-width: 700px;
    margin:    64px auto;
    padding:   0 24px;
}
.about-content {
    background:    var(--bg-secondary);
    padding:       48px;
    border-radius: 12px;
    box-shadow:    0 2px 8px rgba(0,0,0,.06);
}
.about-content h1 {
    font-family:   var(--font-heading);
    font-size:     42px;
    font-weight:   700;
    margin-bottom: 32px;
    color:         var(--text-primary);
}
.about-content h2 {
    font-family:   var(--font-heading);
    font-size:     24px;
    font-weight:   700;
    margin-top:    32px;
    margin-bottom: 16px;
    color:         var(--text-primary);
}
.about-content p {
    font-family:   var(--font-reading);
    margin-bottom: 24px;
    color:         var(--text-secondary);
    line-height:   1.9;
    font-size:     18px;
}
.about-content ul {
    margin:      24px 0;
    padding-left: 24px;
    color:        var(--text-secondary);
}
.about-content li { margin-bottom: 12px; line-height: 1.8; }
.about-content a  { color: var(--accent); }
.about-content a:hover { text-decoration: underline; }

/* ── 10. HALAMAN DETAIL ARTIKEL ──────────────────────────── */
.single-post-layout {
    display:         grid;
    grid-template-columns: var(--content-width) var(--sidebar-width);
    gap:             var(--gap-main);
    justify-content: center;
    margin:          64px auto;
    max-width:       calc(var(--content-width) + var(--sidebar-width) + var(--gap-main) + 48px);
    padding:         0 24px;
}

.article-header    { margin-bottom: 40px; }
.article-title {
    font-family:   var(--font-heading);
    font-size:     42px;
    font-weight:   700;
    line-height:   1.2;
    margin-bottom: 24px;
    color:         var(--text-primary);
    text-wrap:     balance;
}
.article-metadata {
    display:      flex;
    gap:          24px;
    font-size:    14px;
    color:        var(--text-secondary);
    padding-bottom: 24px;
    border-bottom:  1px solid var(--border);
    flex-wrap:    wrap;
    align-items:  center;
}
.author-link { color: var(--text-primary); font-weight: 600; }
.author-link:hover { color: var(--accent); text-decoration: underline; }

/* Isi artikel */
.article-content {
    font-size:        16px;
    line-height:      1.8;
    font-family:      var(--font-reading);
    text-rendering:   optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
    hyphens:          auto;
    -webkit-hyphens:  auto;
    word-break:       break-word;
}
.article-content p { margin-bottom: 28px; }

/* Drop Cap – huruf pertama paragraf pertama (Spesifikasi §2) */
.article-content > p:first-of-type::first-letter {
    font-family:  var(--font-heading);
    font-size:    62px;
    font-weight:  700;
    float:        left;
    line-height:  0.8;
    margin-right: 8px;
    margin-top:   8px;
    color:        var(--accent);
}

.article-content h2 {
    font-family:      var(--font-heading);
    font-size:        24px;
    font-weight:      700;
    margin-top:       48px;
    margin-bottom:    16px;
    scroll-margin-top: 100px;
    color:            var(--text-primary);
}
.article-content h3 {
    font-size:        20px;
    font-weight:      600;
    margin-top:       32px;
    margin-bottom:    12px;
    scroll-margin-top: 100px;
    color:            var(--text-primary);
}
.article-content blockquote {
    font-family:  var(--font-reading);
    font-size:    22px;
    font-style:   italic;
    line-height:  1.6;
    color:        var(--text-secondary);
    border-left:  3px solid var(--accent);
    padding-left: 28px;
    margin:       48px 0;
    padding-top:  4px;
    padding-bottom: 4px;
}
.article-content img {
    max-width:    100%;
    width:        min(640px, 100%);
    height:       auto;
    margin:       32px auto;
    border-radius: 4px;
    display:      block;
}
.article-content figcaption {
    font-size:  13px;
    color:      var(--text-tertiary);
    text-align: center;
    font-style: italic;
    margin-top: -20px;
    margin-bottom: 32px;
}
.article-content ul,
.article-content ol {
    padding-left:  28px;
    margin-bottom: 27px;
    color:         var(--text-secondary);
}
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content strong { color: var(--text-primary); }
.article-content em { font-style: italic; }

/* Tabel – responsif horizontal scroll di mobile */
.article-content table {
    width:          100%;
    border-collapse: collapse;
    margin:         32px 0;
    font-size:      15px;
    display:        block;
    overflow-x:     auto;
}
.article-content table th,
.article-content table td {
    padding:        10px 14px;
    border:         1px solid var(--border);
    text-align:     left;
    line-height:    1.6;
    vertical-align: top;
}
.article-content table th {
    background-color: var(--bg-secondary);
    font-weight:    600;
    font-family:    var(--font-body);
    white-space:    nowrap;
}
.article-content table tr:nth-child(even) td {
    background-color: var(--bg-secondary);
}

/* Komentar section */
.comments-section { margin-top: 64px; padding-top: 48px; border-top: 2px solid var(--border); }
.comments-title {
    font-family:   var(--font-heading);
    font-size:     28px;
    font-weight:   700;
    margin-bottom: 32px;
    color:         var(--text-primary);
}
.comment-item {
    padding:       24px 0;
    border-bottom: 1px solid var(--border-light);
}
.comment-meta {
    display:       flex;
    gap:           16px;
    margin-bottom: 8px;
    font-size:     14px;
}
.comment-name  { font-weight: 600; color: var(--text-primary); }
.comment-date  { color: var(--text-tertiary); }
.comment-body  { color: var(--text-secondary); line-height: 1.7; }

.comment-form { margin-top: 40px; }
.comment-form h3 {
    font-family:   var(--font-heading);
    font-size:     22px;
    margin-bottom: 24px;
    color:         var(--text-primary);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-control {
    width:       100%;
    padding:     10px 14px;
    border:      1px solid var(--border);
    border-radius: 4px;
    font-size:   16px;
    font-family: var(--font-body);
    outline:     none;
    background:  var(--bg-primary);
    transition:  border-color 0.2s;
}
.form-control:focus    { border-color: var(--accent); }
textarea.form-control  { resize: vertical; min-height: 120px; }

/* ── 11. TOC (Table of Contents) ─────────────────────────── */
.toc-container { margin-bottom: 24px; }
.toc-title {
    font-size:      12px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--accent);
    margin-bottom:  16px;
    padding-bottom: 12px;
    border-bottom:  2px solid var(--border);
}
.toc-list { list-style: none; }
.toc-item { margin-bottom: 10px; }
.toc-link {
    font-size:   13px;
    color:       var(--text-secondary);
    line-height: 1.4;
    display:     block;
    padding:     4px 0;
    transition:  color 0.2s;
    border-left: 2px solid transparent;
    padding-left: 8px;
}
.toc-link:hover  { color: var(--accent); border-left-color: var(--border); }
.toc-link.active {
    color:            var(--accent);
    font-weight:      600;
    border-left-color: var(--accent);
    background:       rgba(139, 0, 0, 0.05);
    border-radius:    0 4px 4px 0;
    padding-right:    8px;
}
.toc-item.sub .toc-link { padding-left: 24px; font-size: 12px; }

/* ── 12. SIDEBAR ─────────────────────────────────────────── */
.sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-section {
    background:    var(--bg-secondary);
    padding:       24px;
    border-radius: 8px;
    box-shadow:    0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 24px;
}
.sidebar-title {
    font-size:      12px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--accent);
    margin-bottom:  16px;
    padding-bottom: 12px;
    border-bottom:  2px solid var(--border);
}
.sidebar-search form { display: flex; gap: 8px; }
.sidebar-search-input {
    flex: 1;
    padding: 10px 14px;
    border:  1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    outline:   none;
    font-family: var(--font-body);
    background: var(--bg-primary);
}
.sidebar-search-input:focus { border-color: var(--accent); }
.sidebar-search-btn {
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.sidebar-search-btn:hover { background: var(--accent-hover); }

.sidebar-item {
    display:       flex;
    gap:           12px;
    padding:       12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items:   flex-start;
}
.sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-item-content { flex: 1; min-width: 0; }
.sidebar-item-type {
    font-size:      10px;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:          var(--accent);
    margin-bottom:  4px;
}
.sidebar-item-title {
    font-family: var(--font-heading);
    font-size:   14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    color:       var(--text-primary);
    display:     -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:    hidden;
}
.sidebar-item-title:hover { color: var(--accent); }
.sidebar-item-meta { font-size: 12px; color: var(--text-tertiary); }

/* ── 13. HALAMAN PROFIL PENULIS ──────────────────────────── */
.author-container {
    max-width: 800px;
    margin:    64px auto;
    padding:   0 24px;
}
.author-header {
    text-align:    center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}
.author-name {
    font-family:   var(--font-heading);
    font-size:     42px;
    font-weight:   700;
    color:         var(--text-primary);
    margin-bottom: 12px;
}
.author-bio  { color: var(--text-secondary); line-height: 1.8; max-width: 600px; margin: 0 auto; }

/* ── 14. HALAMAN PENCARIAN ───────────────────────────────── */
.search-container {
    max-width: 800px;
    margin:    64px auto;
    padding:   0 24px;
}
.search-form-large { margin-bottom: 48px; }
.search-input-large {
    width:         100%;
    padding:       16px 24px;
    border:        2px solid var(--border);
    border-radius: 8px;
    font-size:     18px;
    outline:       none;
    font-family:   var(--font-body);
    background:    var(--bg-secondary);
    margin-bottom: 16px;
}
.search-input-large:focus { border-color: var(--accent); }
.search-results-count { color: var(--text-secondary); margin-bottom: 32px; font-size: 15px; }

/* ── 15. HALAMAN 404 ─────────────────────────────────────── */
.error-container {
    text-align: center;
    padding:    128px 24px;
}
.error-code {
    font-family: var(--font-heading);
    font-size:   120px;
    font-weight: 700;
    color:       var(--border);
    line-height: 1;
    margin-bottom: 24px;
}
.error-title {
    font-family:   var(--font-heading);
    font-size:     32px;
    margin-bottom: 16px;
    color:         var(--text-primary);
}
.error-desc { color: var(--text-secondary); margin-bottom: 32px; }

/* ── 16. ALERT / FLASH MESSAGES ──────────────────────────── */
.alert {
    padding:       14px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size:     15px;
}
.alert-success { background: #d1e7dd; border: 1px solid #badbcc; color: #0a3622; }
.alert-error   { background: #f8d7da; border: 1px solid #f5c2c7; color: #58151c; }
.alert-info    { background: #cff4fc; border: 1px solid #b6effb; color: #055160; }

/* ── 17. TEMA LIST ───────────────────────────────────────── */
.tema-list-container {
    max-width: 900px;
    margin:    64px auto;
    padding:   0 24px;
}
.tema-card {
    background:    var(--bg-secondary);
    border-radius: 8px;
    padding:       32px;
    margin-bottom: 24px;
    box-shadow:    0 2px 8px rgba(0,0,0,.06);
    transition:    all 0.3s ease;
    cursor:        pointer;
    border-left:   4px solid transparent;
    position:      relative;
    overflow:      hidden;
}
.tema-card:hover { border-left-color: var(--accent); transform: translateX(4px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.tema-card-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.tema-card-title {
    font-family: var(--font-heading);
    font-size:   28px;
    font-weight: 700;
    color:       var(--text-primary);
    line-height: 1.2;
}
.tema-card-date  { font-size: 13px; color: var(--text-tertiary); white-space: nowrap; }
.tema-card-desc  { color: var(--text-secondary); line-height: 1.7; margin-top: 8px; font-size: 16px; }
.tema-card-footer { margin-top: 16px; display: flex; gap: 16px; font-size: 13px; color: var(--text-tertiary); }

/* ── 18. FOOTER ──────────────────────────────────────────── */
.footer {
    background:  var(--bg-secondary);
    border-top:  1px solid var(--border);
    padding:     48px 0;
    text-align:  center;
    color:       var(--text-secondary);
    font-size:   14px;
    margin-top:  80px;
}
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }

/* ── 19. PULL QUOTE & ORNAMEN PENUTUP ───────────────────── */

/* Pull Quote: kutipan dramatis yang menonjol di tengah artikel */
.pull-quote {
    font-family:   var(--font-heading);
    font-size:     24px;
    font-style:    italic;
    font-weight:   400;
    line-height:   1.5;
    color:         var(--text-primary);
    text-align:    center;
    padding:       40px 48px;
    margin:        56px -24px;
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position:      relative;
}
.pull-quote::before {
    content:     "\201C";
    font-family: var(--font-heading);
    font-size:   96px;
    line-height: 0;
    position:    absolute;
    top:         56px;
    left:        16px;
    color:       var(--accent);
    opacity:     0.2;
}

/* Ornamen akhir artikel (⁂ diletakkan di PHP) */
.article-end-mark {
    text-align:    center;
    color:         var(--text-tertiary);
    font-size:     20px;
    letter-spacing: 0.6em;
    margin:        64px 0 40px;
    user-select:   none;
}

/* ── 20. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .single-post-layout {
        grid-template-columns: 1fr;
        max-width: var(--content-width);
        padding: 0 24px;
    }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    body              { font-size: 16px; }
    .logo-text        { font-size: 24px; }
    .nav              { display: none; flex-direction: column; gap: 0; }
    .nav.open         {
        display: flex;
        position: absolute;
        top: 80px; left: 0; right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        box-shadow: 0 8px 16px rgba(0,0,0,.08);
        z-index: 999;
    }
    .nav.open a       { padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 16px; }
    .hamburger        { display: flex; }
    .search-input-wrapper.active { width: 160px; }

    .hero-issue       { padding: 40px 24px; }
    .hero-issue h1,
    .page-title,
    .article-title,
    .tema-title,
    .author-name      { font-size: 32px; }

    .article-grid,
    .content-grid     { grid-template-columns: 1fr; }
    .about-content    { padding: 32px 24px; }
    .error-code       { font-size: 80px; }
    .tema-card-header { flex-direction: column; gap: 4px; }
}
