/*
Theme Name: GridStream Dark
Theme URI: https://example.com/
Author: ChatGPT
Description: Versi dark + modern dari GridStream dengan layout lebih lebar (hampir full), grid responsif, search, menu atas-bawah, sidebar widget, serta opsi Layout di Customizer.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gridstream
Tags: grid-layout, responsive, two-columns, custom-menu, featured-images
*/

/* ===== Base ===== */
:root {
  /* Default dibuat lebih lebar (hampir full) seperti contoh referensi */
  --container: 1680px;
  /* Grid kolom bisa di-override via Customizer (Layout) */
  --grid-cols: 4;
  --grid-cols-wide: 5;
  --grid-cols-ultra: 6;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --border: rgba(0,0,0,.08);
  --muted: rgba(0,0,0,.60);
  --muted2: rgba(0,0,0,.45);
  --bg: #fff;
  --soft: #f7f7f8;
  --accent: #16a34a;
  --danger: #e11d48;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: #111;
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container {
  /* Lebih "full" (gutter kiri-kanan lebih kecil) */
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  background: #111; color: #fff; padding: 10px 12px; border-radius: 8px;
  z-index: 9999;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.btn:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); text-decoration: none; }
.btn-primary { border-color: transparent; background: #111; color: #fff; }
.btn-soft { background: var(--soft); }
.btn-danger { background: #fff; border-color: rgba(225,29,72,.35); color: var(--danger); }

.pill {
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted2); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  /* supaya progress bar bisa menempel rapi */
  overflow: visible;
}

/* Progress bar (scroll) di bawah header */
.gs-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
}
.gs-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 0 999px 999px 0;
}
.header-top {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: inline-flex; gap: 10px; align-items: center;
  font-weight: 700;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(22,163,74,.18), rgba(99,102,241,.12));
}
.brand-name { letter-spacing: .2px; }

.header-actions {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
}
.header-actions a { font-size: 13px; color: var(--muted); }
.header-actions a:hover { color: #111; text-decoration: none; }

.search-form {
  display: flex; align-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  gap: 8px;
}
.search-form input[type="search"] {
  border: 0; outline: 0; width: 100%;
  font-size: 14px;
}
.search-form button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 10px; border-radius: 999px;
}
.search-form button:hover { background: var(--soft); }

.nav-row {
  border-top: 1px solid rgba(0,0,0,.04);
  padding: 8px 0;
}
.nav-row .menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 18px; align-items: center;
  overflow: auto;
}
.nav-row .menu a {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-row .menu a:hover { color: #111; text-decoration: none; }
.nav-secondary .menu a { font-size: 12px; color: var(--muted2); }

@media (max-width: 880px) {
  .header-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .header-actions { justify-content: flex-start; }
}

/* ===== Main ===== */
.site-main {
  padding: 18px 0 34px;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 18px 0 10px;
}
.section-title {
  margin: 0;
  font-size: 18px;
}
.section-tools {
  display: flex; align-items: center; gap: 10px;
}
.section-tools select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
  gap: 16px;
}
/* Extra lebar (desktop besar) */
@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(var(--grid-cols-wide, 5), 1fr); }
}
/* Ultra wide */
@media (min-width: 1800px) {
  .grid { grid-template-columns: repeat(var(--grid-cols-ultra, 6), 1fr); }
}
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
}
.card-body {
  padding: 10px 12px 12px;
}
.card-title {
  font-size: 13px;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted2);
  font-size: 12px;
}
.meta-left, .meta-right {
  display: inline-flex; gap: 10px; align-items: center;
}
.meta-item { display: inline-flex; gap: 6px; align-items: center; }
.meta-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); opacity: .8; }

/* ===== Pagination ===== */
.pagination {
  margin: 22px 0 16px;
}
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}
.page-numbers.current {
  background: #111;
  border-color: #111;
  color: #fff;
}
.page-numbers:hover { text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.08); }

/* ===== Tag strip ===== */
.tag-strip {
  margin: 14px auto 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tag-strip .tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.tag-strip .tags a {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}
.tag-strip .tags a:hover { color: #111; text-decoration: none; }
.tag-strip .toggle {
  display: flex; justify-content: center;
  margin-top: 12px;
}

/* ===== Single ===== */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
@media (max-width: 980px) {
  .single-layout { grid-template-columns: 1fr; }
}
.player {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
}
.player iframe, .player video {
  width: 100%;
  height: 100%;
}
.single-head {
  margin: 10px 0 8px;
}
.single-title {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: .2px;
}
.pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.actions {
  margin: 12px 0 14px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.sidebar .widget {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}
.sidebar .widget + .widget { margin-top: 12px; }

/* ===== 404 ===== */
.banner-404 {
  border: 2px solid rgba(225,29,72,.35);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  margin: 14px 0 8px;
  font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  color: var(--muted);
}
.footer-menu .menu {
  list-style: none; padding: 0; margin: 0 0 10px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.footer-menu .menu a { font-size: 12px; color: var(--muted); }
.footer-menu .menu a:hover { color: #111; text-decoration: none; }
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
}

/* WP core helpers */
.alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-block-image img { border-radius: 10px; }

/* ===== Modern Comments (GridStream) ===== */
.gs-comments{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  margin-top: 18px;
}

.gs-comments__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.gs-comments__title{
  margin:0;
  font-size:16px;
}

.gs-note{
  margin: 6px 0 12px;
  color: var(--muted2);
  font-size: 12px;
}

.gs-comment-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.gs-field{ display:flex; flex-direction:column; gap:6px; }
.gs-field--full{ grid-column: 1 / -1; }

.gs-label{
  font-size:12px;
  color: var(--muted);
}

.gs-input{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  outline: none;
}

.gs-input:focus{
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

.gs-textarea{
  min-height: 140px;
  resize: vertical;
}

.gs-submit{
  margin-top: 4px;
}

.comment-form-cookies-consent{
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--muted2);
}

.comment-form-cookies-consent input{
  transform: translateY(1px);
}

/* List komentar */
.gs-comment-list{
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.gs-comment-list .comment{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.gs-comment-list .comment-meta{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
}

.gs-comment-list .comment-content{
  font-size: 13px;
}

@media (max-width: 760px){
  .gs-comment-form{
    grid-template-columns: 1fr;
  }
}


/* ===== Modern Comment List ===== */
.gs-comment-list{margin:0 0 12px;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.gs-comment{margin:0}
.gs-comment__wrap{display:flex;gap:12px;align-items:flex-start}
.gs-comment__avatar img{border-radius:999px;border:1px solid var(--border)}
.gs-comment__bubble{
  flex:1;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px 10px;
  background:#fff;
}
.gs-comment__meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted2);margin-bottom:6px}
.gs-comment__author a{font-weight:700;color:#111;text-decoration:none}
.gs-comment__author a:hover{text-decoration:underline}
.gs-comment__dot{opacity:.6}
.gs-comment__content{font-size:13px;color:#111}
.gs-comment__pending{display:inline-block;margin-bottom:6px;color:var(--muted)}
.gs-comment__actions{margin-top:8px;display:flex;gap:10px;align-items:center}
.gs-comment__actions a{
  display:inline-flex;align-items:center;justify-content:center;
  padding:7px 12px;border-radius:999px;border:1px solid var(--border);
  background:#fff;color:var(--muted);font-size:12px;text-decoration:none
}
.gs-comment__actions a:hover{box-shadow:0 6px 16px rgba(0,0,0,.08);color:#111}
.gs-comment__edit{opacity:.8}
.gs-comment .children{list-style:none;margin:12px 0 0;padding-left:54px;display:flex;flex-direction:column;gap:12px}
@media (max-width:760px){ .gs-comment .children{padding-left:18px} }


/* ===== Sidebar Random Videos (Modern) ===== */
.gs-side-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.gs-side-item{
  display:flex;
  gap:10px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.gs-side-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  text-decoration:none;
}

.gs-side-thumb{
  width:64px;
  height:64px;
  border-radius:12px;
  overflow:hidden;
  flex:0 0 64px;
  border:1px solid rgba(0,0,0,.06);
  background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
}

.gs-side-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.gs-side-info{
  min-width:0;
  flex:1;
}

.gs-side-title{
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  margin:0 0 6px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.gs-side-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color: var(--muted2);
}

/* ===== Auth Modal ===== */
.gs-auth-modal{position:fixed;inset:0;display:none;z-index:9999}
.gs-auth-modal.is-open{display:block}
.gs-auth-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);backdrop-filter: blur(6px)}
.gs-auth-dialog{
  position:relative;
  width:min(520px, calc(100% - 24px));
  margin: 10vh auto 0;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  overflow:hidden;
}
.gs-auth-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}
.gs-auth-title{font-weight:800}
.gs-auth-x{border:0;background:transparent;cursor:pointer;font-size:16px;padding:6px 10px;border-radius:10px}
.gs-auth-x:hover{background:var(--soft)}

.gs-auth-tabs{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border)}
.gs-auth-tab{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  color: var(--muted);
  font-size: 13px;
}
.gs-auth-tab.is-active{background:#111;border-color:#111;color:#fff}

.gs-auth-body{padding:14px 16px}
.gs-auth-panel{display:none}
.gs-auth-panel.is-active{display:block}

.gs-auth-form{display:flex;flex-direction:column;gap:10px}
.gs-auth-msg{margin:0 0 8px;color:var(--muted);font-size:13px}
.gs-auth-submit{margin-top:6px}

/* rapikan output wp_login_form */
#gs-login-form p{margin:0 0 10px}
#gs-login-form label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
#gs-login-form input[type="text"],
#gs-login-form input[type="password"]{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
}
#gs-login-form input:focus{outline:none;box-shadow:0 0 0 4px rgba(0,0,0,.06)}
#gs-login-form input[type="submit"]{
  border:0;
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
}
#gs-login-form .forgetmenot{display:flex;gap:8px;align-items:center;color:var(--muted2);font-size:12px}

/* Logo WP default */
.custom-logo-link{display:flex;align-items:center}
.custom-logo{display:block;width:auto;height:auto;max-width:100%;object-fit:contain}

/* Header tetap rapi (tidak ikut ngembang) */
.header .header-inner,
.site-header .header-inner{
  min-height: 84px;          /* tinggi stabil seperti theme biasa */
  display:flex;
  align-items:center;
}

.header .site-branding,
.site-header .site-branding{
  display:flex;
  align-items:center;
}

/* Batasi logo agar tidak memaksa header jadi tinggi */
.site-header .custom-logo,
.header .custom-logo{
  max-height: 60px;          /* ini “batas aman” */
}

.gs-footer-logo-wrap{
  display:flex;
  justify-content:center;
  margin: 10px 0 6px;
}
.gs-footer-logo{display:inline-flex;align-items:center;justify-content:center}
.gs-footer-logo-img{
  max-height: 46px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

.gs-cats-page{padding:24px 0}
.gs-page-head{margin:0 0 14px}
.gs-page-title{font-size:22px;margin:0}

.gs-cat-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
}

@media (max-width:1100px){
  .gs-cat-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
}
@media (max-width:820px){
  .gs-cat-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width:520px){
  .gs-cat-grid{grid-template-columns:1fr}
}

.gs-cat-card{
  display:block;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  text-decoration:none;
}

.gs-cat-thumb{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
}

.gs-cat-badge{
  position:absolute;
  left:10px;
  bottom:10px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.65);
  color:#fff;
}

.gs-cat-meta{padding:12px}
.gs-cat-name{font-weight:700;font-size:14px;color:#111}
.gs-cat-desc{margin-top:6px;font-size:12px;color:rgba(0,0,0,.6);line-height:1.35}
.gs-cat-card:hover{transform:translateY(-1px)}

.gs-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 14px}
.gs-tab{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:13px;
  cursor:pointer;
}
.gs-tab.is-active{
  border-color:#ff4b7d;
  color:#ff4b7d;
  background:rgba(255,75,125,.06);
}

.gs-panel{display:none}
.gs-panel.is-active{display:block}

.gs-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 18px;
  font-size:13px;
}
@media (max-width:700px){
  .gs-detail-grid{grid-template-columns:1fr}
}

.gs-shots{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
@media (max-width:900px){ .gs-shots{grid-template-columns:repeat(3,1fr)} }
@media (max-width:600px){ .gs-shots{grid-template-columns:repeat(2,1fr)} }
.gs-shot img{width:100%;height:auto;border-radius:10px;display:block}

.gs-share-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

.gs-details-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fff;
  padding:16px;
}

.gs-details-head{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.gs-details-title{font-weight:800;font-size:16px;color:#111}

.gs-details-sub{display:flex;gap:8px;flex-wrap:wrap}
.gs-pill{
  display:inline-flex;align-items:center;
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  font-size:12px;color:rgba(0,0,0,.75);
  background:rgba(0,0,0,.02);
}

.gs-details-body{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.gs-details-block{
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:12px;
  background:rgba(0,0,0,.015);
}

.gs-details-label{
  font-size:12px;
  font-weight:700;
  color:rgba(0,0,0,.7);
  margin-bottom:10px;
}

.gs-chip-row{display:flex;gap:8px;flex-wrap:wrap}
.gs-chip{
  display:inline-flex;align-items:center;
  padding:8px 10px;border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  font-size:12px;
  color:#111;
}
.gs-chip--soft{
  background:rgba(255,75,125,.06);
  border-color:rgba(255,75,125,.25);
  color:#ff4b7d;
}
.gs-muted{font-size:12px;color:rgba(0,0,0,.55)}

.gs-details-block .gs-chip-row{
  max-height: 120px;
  overflow:auto;
  padding-right:4px;
}

/* =====================================================
   Dark Skin (GridStream Dark)
   Default: aktif (class .gs-dark di <body> dan/atau <html>)
   ===================================================== */

html.gs-dark{color-scheme:dark;}
html.gs-dark body,
body.gs-dark{
  /* Background gelap dengan sedikit glow biar tidak flat */
  background:
    radial-gradient(1200px 650px at 18% -10%, rgba(255,75,125,.10), transparent 60%),
    radial-gradient(900px 520px at 82% -5%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(800px 520px at 50% 110%, rgba(22,163,74,.08), transparent 55%),
    #0b0d10;
  color:#e7ecf4;
}

html.gs-dark :root,
html.gs-dark body,
body.gs-dark{
  --bg:#0b0d10;
  --soft:#0f141b;
  --card:#0f141b;
  --border:rgba(255,255,255,.10);
  --muted:rgba(255,255,255,.78);
  --muted2:rgba(255,255,255,.60);
  --shadow:0 14px 34px rgba(0,0,0,.55);
}

html.gs-dark a{color:rgba(255,255,255,.92)}
html.gs-dark a:hover{color:#fff}

/* Header */
html.gs-dark .site-header{
  background:rgba(11,13,16,.78);
  border-bottom:1px solid rgba(255,255,255,.08);
}
html.gs-dark .nav-row{border-top:1px solid rgba(255,255,255,.06)}
html.gs-dark .nav-row .menu a{color:rgba(255,255,255,.80)}
html.gs-dark .nav-row .menu a:hover{color:#fff}

html.gs-dark .header-actions a{color:rgba(255,255,255,.78)}
html.gs-dark .header-actions a:hover{color:#fff}

html.gs-dark .search-form{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
html.gs-dark .search-field{color:#e7ecf4}
html.gs-dark .search-field::placeholder{color:rgba(255,255,255,.55)}

/* Dropdown sort (index) */
html.gs-dark .section-tools select{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.90);
}
html.gs-dark .section-tools select:focus{outline:2px solid rgba(255,75,125,.35); outline-offset:2px;}
html.gs-dark .section-tools select option{background:#0f141b; color:#e7ecf4;}

/* Pagination */
html.gs-dark .page-numbers{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.86);
}
html.gs-dark .page-numbers:hover{
  background:rgba(255,255,255,.10);
  box-shadow:0 16px 34px rgba(0,0,0,.55);
}
html.gs-dark .page-numbers.current{
  background:#fff;
  border-color:#fff;
  color:#111;
}

/* Buttons / pills */
html.gs-dark .btn,
html.gs-dark .pill{
  border-color:rgba(255,255,255,.12);
}
html.gs-dark .btn-soft{
  background:rgba(255,255,255,.06);
}
html.gs-dark .btn-soft:hover{background:rgba(255,255,255,.10)}
html.gs-dark .btn-primary{background:#fff;color:#111}
html.gs-dark .btn-primary:hover{filter:brightness(.95)}

/* Cards & widgets */
html.gs-dark .card,
html.gs-dark .widget,
html.gs-dark .gs-cat-card,
html.gs-dark .gs-details-card,
html.gs-dark .gs-comments,
html.gs-dark .gs-comment-form{
  background:var(--card);
  border:1px solid rgba(255,255,255,.10);
}
html.gs-dark .card:hover{box-shadow:0 10px 26px rgba(0,0,0,.45)}

html.gs-dark .meta,
html.gs-dark .footer-copy,
html.gs-dark .gs-side-meta,
html.gs-dark .gs-details-meta,
html.gs-dark .gs-details-block p{color:var(--muted2)}

html.gs-dark .section-title{color:rgba(255,255,255,.90)}

/* Tags strip */
html.gs-dark .tag-strip .tags a,
html.gs-dark .tag-pill,
html.gs-dark .gs-tag{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.86);
}
html.gs-dark .tag-strip .tags a:hover,
html.gs-dark .tag-pill:hover,
html.gs-dark .gs-tag:hover{background:rgba(255,255,255,.10)}

/* Single tabs */
html.gs-dark .gs-tabs .gs-tab{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.86);
}
html.gs-dark .gs-tabs .gs-tab.is-active{background:#fff;color:#111;border-color:#fff}

/* Comment bubble */
html.gs-dark .gs-comment__bubble{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
html.gs-dark .gs-comment__meta{color:rgba(255,255,255,.70)}
html.gs-dark .gs-comment__content{color:rgba(255,255,255,.92)}

/* Inputs */
html.gs-dark input[type="text"],
html.gs-dark input[type="email"],
html.gs-dark input[type="password"],
html.gs-dark textarea{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  color:#e7ecf4;
}
html.gs-dark input::placeholder,
html.gs-dark textarea::placeholder{color:rgba(255,255,255,.55)}

/* Footer */
html.gs-dark .site-footer{
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(11,13,16,.85);
}
html.gs-dark .footer-menu a{color:rgba(255,255,255,.78)}
html.gs-dark .footer-menu a:hover{color:#fff}

/* Theme toggle button (ikon) */
.gs-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0}
.gs-theme-toggle .gs-theme-ic{font-size:16px;line-height:1}

/* Back to top */
.gs-backtop{
  position:fixed;
  right:16px;
  bottom:16px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:999;
}
.gs-backtop.is-show{opacity:1;transform:translateY(0);pointer-events:auto}

html.gs-dark .gs-backtop{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.92);
  box-shadow:0 16px 30px rgba(0,0,0,.55);
}

/* ===== Dark tokens (aman, tidak ngerusak layout) ===== */
:root{
  --gs-bg: #0b0f14;
  --gs-surface: rgba(255,255,255,.04);
  --gs-surface-2: rgba(255,255,255,.06);
  --gs-border: rgba(255,255,255,.10);
  --gs-text: rgba(255,255,255,.92);
  --gs-muted: rgba(255,255,255,.62);
  --gs-accent: #ff4b7d;
}

/* Pastikan teks global kebaca di dark */
body{
  background: var(--gs-bg);
  color: var(--gs-text);
}

/* Card/box gelap konsisten */
.widget,
.gs-details-card,
.gs-panel,
.gs-cat-card,
.gs-card,
.card{
  background: var(--gs-surface);
  border: 1px solid var(--gs-border);
  color: var(--gs-text);
}

/* Judul-judul */
h1,h2,h3,h4,.section-title,.gs-details-title{
  color: var(--gs-text);
}

/* ===== FIX 1: Tags / Pills yang jadi putih ===== */
/* Tag chips dari the_tags / tag list apa pun */
.post-tags a,
.tags a,
.tagcloud a,
.gs-chip,
.gs-pill{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--gs-text) !important;
}

/* Tag yang "soft" / accent */
.gs-chip--soft{
  background: rgba(255,75,125,.12) !important;
  border-color: rgba(255,75,125,.35) !important;
  color: #ffd3df !important;
}

/* ===== FIX 2: Tabs (Video Details / Report / etc) ===== */
.gs-tab,
.gs-tabs button{
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--gs-text) !important;
}

.gs-tab.is-active,
.gs-tabs button.is-active{
  background: rgba(255,75,125,.14) !important;
  border-color: rgba(255,75,125,.40) !important;
  color: #ffd3df !important;
}

/* ===== FIX 3: Video Details text yang gelap (kurang kebaca) ===== */
.gs-details-label{
  color: var(--gs-muted) !important;
}
.gs-muted{
  color: var(--gs-muted) !important;
}
.gs-details-block{
  background: rgba(0,0,0,.18) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* ===== FIX 4: Sidebar Search (input + button) ===== */
.widget input[type="search"],
.widget input[type="text"],
.widget input[type="email"],
.widget input[type="url"],
.widget textarea,
.widget select,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--gs-text) !important;
}

input::placeholder,
textarea::placeholder{
  color: rgba(255,255,255,.45) !important;
}

.widget input:focus,
.widget textarea:focus,
input:focus,
textarea:focus,
select:focus{
  outline: none !important;
  border-color: rgba(255,75,125,.55) !important;
  box-shadow: 0 0 0 3px rgba(255,75,125,.12) !important;
}

/* Button */
button,
input[type="submit"],
.wp-block-button__link,
.btn{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--gs-text);
}

.btn.btn-primary,
button.btn-primary{
  background: rgba(255,75,125,.18) !important;
  border-color: rgba(255,75,125,.45) !important;
  color: #ffd3df !important;
}

/* ===== FIX 5: Pagination / select sort yang kadang masih putih ===== */
.pagination a,
.page-numbers{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--gs-text) !important;
}
.page-numbers.current{
  background: rgba(255,75,125,.20) !important;
  border-color: rgba(255,75,125,.50) !important;
  color: #ffd3df !important;
}

/* ===== FIX CATEGORY/TAGS PILL PUTIH DI ATAS JUDUL (SINGLE) ===== */

/* Umum: semua link di area meta/tags agar jadi dark pill */
.entry-meta a,
.post-meta a,
.post-cats a,
.post-categories a,
.category a,
.categories a,
.cat-links a,
.tags-links a,
.single .tags a,
.single .post-tags a{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.88) !important;
  border-radius: 999px !important;
  padding: 7px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
}

/* Hover biar terasa modern */
.entry-meta a:hover,
.post-meta a:hover,
.post-cats a:hover,
.post-categories a:hover,
.cat-links a:hover,
.tags-links a:hover{
  border-color: rgba(255,75,125,.45) !important;
  background: rgba(255,75,125,.12) !important;
  color: #ffd3df !important;
}

/* Kalau theme kamu pakai class .pill */
.pill,
.pills a{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.9) !important;
}

/* ===== FIX SEARCH WIDGET + SEARCH FORM (DARK) ===== */

/* Box widget search */
.widget_search,
.widget.widget_search,
.sidebar .widget_search{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 16px !important;
}

/* Label "Search" di widget */
.widget_search label,
.widget_search .wp-block-search__label{
  color: rgba(255,255,255,.80) !important;
}

/* Input search */
.widget_search input[type="search"],
.widget_search input[type="text"],
.wp-block-search input[type="search"],
.search-form input[type="search"],
.search-form input[type="text"]{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
  border-radius: 12px !important;
}

/* Button search */
.widget_search button,
.widget_search input[type="submit"],
.wp-block-search button,
.search-form button,
.search-form input[type="submit"]{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: rgba(255,255,255,.92) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}

/* Hover/focus */
.widget_search button:hover,
.widget_search input[type="submit"]:hover,
.wp-block-search button:hover,
.search-form button:hover,
.search-form input[type="submit"]:hover{
  background: rgba(255,75,125,.18) !important;
  border-color: rgba(255,75,125,.45) !important;
  color: #ffd3df !important;
}

.widget_search input:focus,
.wp-block-search input:focus,
.search-form input:focus{
  outline: none !important;
  border-color: rgba(255,75,125,.55) !important;
  box-shadow: 0 0 0 3px rgba(255,75,125,.14) !important;
}
