/*
Theme Name: CleanDot
Theme URI: https://example.com/cleandot
Author: Minimalist Studio
Description: Tema blog WordPress putih bersih, sticky header tipografi dengan bulatan dot custom, tampilan List/Grid 2 kolom, thumbnail rounded, AdSense High-CTR, dan tipografi artikel editorial.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: cleandot
*/

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-light: #f1f5f9;
  --border-medium: #e2e8f0;
  --dot-color: #2563eb;
  --accent-color: #2563eb;
  --container-narrow: 740px;
  --container-wide: 960px;
  --thumb-ratio: 16 / 10;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6, .site-logo {
  font-family: var(--font-heading);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.container.container-wide {
  max-width: var(--container-wide);
}

/* =========================================
   STICKY HEADER & LOGO BULATAN DOT
========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

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

.site-logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.site-logo:hover {
  opacity: 0.88;
}

/* Bulatan Dot Murni (Bukan Kotak) */
.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dot-color);
  display: inline-block;
  margin-left: 3px;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}

.site-logo:hover .logo-dot {
  transform: scale(1.3);
}

/* Navigasi & Search Opsional */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.primary-menu a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.search-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.header-search-bar {
  display: none;
  padding: 12px 0 18px;
  border-top: 1px solid var(--border-light);
}

.header-search-bar.is-open {
  display: block;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 10px 16px;
  gap: 10px;
}

.header-search-form input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
}

/* =========================================
   ADSENSE CONTAINER (POLOS TANPA FRAME & ROUNDED)
========================================= */
.ad-wrapper {
  display: block;
  width: 100%;
  margin: 26px 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  text-align: center;
  min-height: 90px;
  clear: both;
}

.ad-wrapper.ad-has-code {
  background: transparent;
  border: none;
  padding: 0;
}

.ad-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* =========================================
   META TANGGAL & WAKTU BACA (STRIP + DOT)
========================================= */
.post-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.meta-strip {
  width: 14px;
  height: 1.5px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  display: inline-block;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background-color: var(--dot-color);
  border-radius: 50%;
  display: inline-block;
}

/* =========================================
   TAMPILAN BERANDA: LIST & GRID 2 KOLOM
========================================= */
.archive-header {
  margin-bottom: 32px;
  padding: 18px 22px;
  background: var(--bg-subtle);
  border-radius: 18px;
}

.archive-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Mode 1: List Bersih */
.post-list.layout-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.post-list.layout-list .post-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.post-list.layout-list .post-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

/* Mode 2: Grid Kotak 2 Menurun */
.post-list.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.post-list.layout-grid .post-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.post-list.layout-grid .post-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.07);
  transform: translateY(-3px);
}

/* Thumbnail di Beranda (Rounded) */
.post-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: var(--thumb-ratio);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-subtle);
}

.post-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-thumb-link img {
  transform: scale(1.04);
}

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

.post-title {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.layout-grid .post-title {
  font-size: 1.22rem;
}

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

.post-excerpt {
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 7px 14px;
  border-radius: 9999px;
}

.read-more-link svg {
  transition: transform 0.2s ease;
}

.read-more-link:hover {
  color: #ffffff;
  background: var(--accent-color);
}

.read-more-link:hover svg {
  transform: translateX(3px);
}

/* Pagination Rounded */
.pagination {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid transparent;
}

.pagination .page-numbers:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}

.pagination .page-numbers.current {
  background: var(--text-main);
  color: #ffffff;
}

/* =========================================
   HALAMAN ARTIKEL (SINGLE POST & PAGE)
========================================= */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 8px 16px;
  border-radius: 9999px;
  margin-bottom: 28px;
}

.back-home:hover {
  color: var(--text-main);
  background: var(--bg-muted);
}

.single-header {
  margin-bottom: 28px;
}

.single-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.24;
  letter-spacing: -0.03em;
}

/* Thumbnail Dalam Artikel (Rounded) */
.single-featured-image {
  margin-bottom: 36px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 36px -14px rgba(15, 23, 42, 0.08);
}

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

/* =========================================
   TIPOGRAFI DALAM ARTIKEL (EDITORIAL CLEAN)
========================================= */
.entry-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
}

.entry-content > * + * {
  margin-top: 1.45em;
}

/* Headings */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.022em;
  margin-top: 2.1em;
  margin-bottom: 0.65em;
}

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

.entry-content h3 { font-size: 1.28rem; }
.entry-content h4 { font-size: 1.12rem; }

/* Strong & Emphasis */
.entry-content strong,
.entry-content b {
  font-weight: 700;
  color: var(--text-main);
}

.entry-content em,
.entry-content i {
  font-style: italic;
  color: var(--text-main);
}

/* Links */
.entry-content a {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  text-decoration-color: var(--accent-color);
  background-color: rgba(37, 99, 235, 0.06);
}

/* Lists (Unordered & Ordered dengan Dot Bulat Selaras) */
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content ul {
  list-style: none;
  padding-left: 0;
}

.entry-content ul > li {
  position: relative;
  padding-left: 1.45em;
}

.entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0.25em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dot-color);
}

.entry-content ol > li::marker {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dot-color);
}

.entry-content li + li {
  margin-top: 0.55em;
}

.entry-content li > ul,
.entry-content li > ol {
  margin-top: 0.55em;
}

/* Blockquote Rounded */
.entry-content blockquote {
  position: relative;
  padding: 20px 24px;
  background: var(--bg-subtle);
  border-left: 4px solid var(--dot-color);
  border-radius: 16px;
  color: var(--text-main);
  font-size: 1.06rem;
  font-style: italic;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

/* Note / Callout Box (.note, .tip, .warning, .info-box) */
.entry-content .note,
.entry-content .info-box,
.entry-content .tip,
.entry-content .warning {
  padding: 18px 22px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--dot-color);
  border-radius: 16px;
  font-size: 0.96rem;
  color: var(--text-body);
}

.entry-content .note strong:first-child,
.entry-content .info-box strong:first-child,
.entry-content .tip strong:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.entry-content .warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #f59e0b;
}

/* Tabel Bersih & Rounded */
.entry-content .table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-medium);
}

.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.94rem;
}

.entry-content .table-responsive table {
  border: none;
  border-radius: 0;
}

.entry-content thead {
  background: var(--bg-subtle);
}

.entry-content th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-medium);
}

.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.entry-content tbody tr:last-child td {
  border-bottom: none;
}

.entry-content tbody tr:hover {
  background: rgba(248, 250, 252, 0.75);
}

/* Code & Pre Rounded */
.entry-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px 22px;
  border-radius: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
}

.entry-content code {
  font-family: var(--font-mono);
  background: var(--bg-muted);
  color: var(--text-main);
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.88em;
}

.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.entry-content kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-bottom-width: 2px;
  border-radius: 8px;
  color: var(--text-main);
}

/* Gambar & Garis Pemisah dalam Artikel */
.entry-content img,
.entry-content figure img {
  border-radius: 18px;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.entry-content hr {
  border: none;
  height: 1px;
  background: var(--border-medium);
  margin: 2.4em auto;
  width: 60%;
  border-radius: 9999px;
}

/* =========================================
   FOOTER ARTIKEL (TAGS & COPY LINK)
========================================= */
.single-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
}

.post-tags a:hover {
  color: var(--text-main);
  background: var(--bg-muted);
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-link-btn:hover {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

/* Navigasi Artikel Sebelum/Sesudah (Rounded) */
.post-navigation {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-box {
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-box:hover {
  border-color: var(--border-medium);
  background: var(--bg-subtle);
}

.nav-box.next {
  text-align: right;
}

.nav-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-box.next .nav-label {
  justify-content: flex-end;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Minimal Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 720px) {
  .post-list.layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .single-title {
    font-size: 1.72rem;
  }
  .post-title {
    font-size: 1.25rem;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
  .nav-box.next {
    text-align: left;
  }
  .nav-box.next .nav-label {
    justify-content: flex-start;
  }
}