/* ============================================================
   ZI-RO · THEME LAYER v1  —  "Future Editorial"
   File    : assets/css/zir-theme.css
   Peran   : lapisan override terakhir (last layer).
             HARUS dimuat setelah style.css, index.css/read.css/
             category.css, DAN setelah blok <style> inline.
   Rollback: hapus tag <link> ke file ini. Situs kembali 100%.
   ============================================================ */

:root {
  color-scheme: dark;

  /* ---------- Palet Zi-Ro ---------- */
  --zir-midnight:    #080D19;
  --zir-navy:        #111C30;
  --zir-navy-2:      #16233C;
  --zir-blue:        #22B8FF;
  --zir-blue-soft:   rgba(34, 184, 255, .14);
  --zir-violet:      #A855F7;
  --zir-violet-soft: rgba(168, 85, 247, .14);
  --zir-ice:         #F4F7FF;
  --zir-muted:       #93A0B8;
  --zir-line:        rgba(34, 184, 255, .16);
  --zir-line-soft:   rgba(244, 247, 255, .08);
  --zir-glass:       rgba(17, 28, 48, .62);
  --zir-glass-2:     rgba(22, 35, 60, .78);
  --zir-shadow:      0 18px 44px -18px rgba(0, 0, 0, .85);

  /* ---------- Remap variabel lama: index.php ---------- */
  --bg:            var(--zir-midnight);
  --text:          var(--zir-ice);
  --muted:         var(--zir-muted);
  --glass:         rgba(34, 184, 255, .06);
  --glass-strong:  rgba(34, 184, 255, .10);
  --stroke:        var(--zir-line-soft);
  --cyan:          var(--zir-blue);
  --magenta:       var(--zir-violet);
  --violet:        var(--zir-violet);
  --red:           var(--zir-blue);
  --green:         #2EB85C;

  /* ---------- Remap variabel lama: category.css ---------- */
  --neon-red:      var(--zir-blue);
  --neon-green:    var(--zir-blue);
  --neon-cyan:     var(--zir-blue);
  --gold:          var(--zir-violet);
  --stroke-red:    rgba(34, 184, 255, .32);
  --stroke-cyan:   rgba(168, 85, 247, .28);
}

/* ============ DASAR ============ */
html,
body {
  background-color: var(--zir-midnight) !important;
  color: var(--zir-ice);
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Garis tipis ala interface futuristik (aksen non-informatif) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(244, 247, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 247, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
}

::selection {
  background: rgba(168, 85, 247, .38);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--zir-blue);
  outline-offset: 2px;
}

/* ============ TIPOGRAFI ============
   Orbitron dipakai HEMAT: hanya logotype.
   Headline berita pakai Plus Jakarta Sans 800 agar tetap terasa media. */
h1, h2, h3, h4, h5, h6,
.card-title, .card-title a,
.section-title,
#articleMainTitle,
.article-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--zir-ice);
}

p, li, .content p {
  color: #DCE4F5;
}

/* ============ HEADER ============ */
header {
  background: rgba(8, 13, 25, .86) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--zir-line) !important;
  box-shadow: none !important;
}

header h1,
header h1 a {
  color: var(--zir-ice) !important;
}

/* Logotype Zi-Ro: satu-satunya tempat Orbitron berbobot berat */
.dark-feed-brand .dark-feed-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #fff, var(--zir-blue) 60%, var(--zir-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}

.dark-feed-brand .dark-feed-tm {
  font-family: 'Orbitron', sans-serif;
  color: var(--zir-blue);
  filter: none !important;
}

/* Navigasi kategori */
nav a {
  color: var(--zir-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
  color: var(--zir-ice);
  background: var(--zir-blue-soft);
  border-color: rgba(34, 184, 255, .35);
}

/* ============ KARTU BERITA ============ */
.news-card {
  background-color: var(--zir-navy) !important;
  border: 1px solid var(--zir-line-soft) !important;
  border-radius: 14px;
  box-shadow: none;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 184, 255, .45) !important;
  background-color: var(--zir-navy-2) !important;
}

.card-thumbnail-wrapper {
  border-bottom: 1px solid var(--zir-line-soft);
  background: #0B1220;
}

.card-category {
  color: var(--zir-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card-title a {
  color: var(--zir-ice);
}

.card-title a:hover {
  color: var(--zir-blue);
}

.card-snippet {
  color: var(--zir-muted);
}

.card-meta {
  color: var(--zir-muted);
  border-top: 1px solid var(--zir-line-soft);
}

/* ============ JUDUL SEKSI ============ */
.section-title {
  color: var(--zir-ice);
  border-left: 3px solid var(--zir-blue);
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 20px;
  padding-left: 14px;
}

/* ============ HALAMAN ARTIKEL ============ */
/* Badan baca dibuat SOLID, tanpa blur — fokus ke foto & teks */
.article-container {
  background-color: var(--zir-navy) !important;
  border: 1px solid var(--zir-line-soft) !important;
  border-radius: 16px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: var(--zir-shadow);
}

.article-container p,
.content p {
  color: #DCE4F5;
  font-size: 17.5px;
  line-height: 1.78;
}

/* ============ FORM & INPUT ============ */
input,
textarea,
select {
  background: rgba(8, 13, 25, .72);
  border: 1px solid var(--zir-line-soft);
  color: var(--zir-ice);
  border-radius: 8px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(147, 160, 184, .75);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--zir-blue);
  box-shadow: 0 0 0 3px rgba(34, 184, 255, .16);
}

button,
.feed-sub-btn {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.feed-sub-btn {
  background: linear-gradient(135deg, var(--zir-blue), var(--zir-violet)) !important;
  box-shadow: 0 4px 16px rgba(34, 184, 255, .28) !important;
}

.feed-sub-btn:hover {
  box-shadow: 0 6px 22px rgba(34, 184, 255, .42) !important;
}

/* ============ FOOTER ============ */
footer {
  background-color: rgba(8, 13, 25, .92) !important;
  border-top: 1px solid var(--zir-line) !important;
  color: var(--zir-muted) !important;
}

footer a {
  color: var(--zir-blue) !important;
}

footer a:hover {
  color: var(--zir-violet) !important;
}

/* ============ PEMBERSIHAN RESIDU HORROR ============ */
/* Laser merah dengan 3 lapis glow: dimatikan total */
.laser-beam,
.laser-tip,
.laser-sparks {
  display: none !important;
}

/* Toast notifikasi: merah -> aksen violet */
#globalNewsAlertToast {
  background: var(--zir-navy) !important;
  border-color: var(--zir-violet) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .8) !important;
}

/* ============ SCROLLBAR ============ */
* {
  scrollbar-color: rgba(34, 184, 255, .35) transparent;
  scrollbar-width: thin;
}

/* ============ AKSESIBILITAS ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
