/* KIN mockup — mirrors informasinusantara.co.id/wp/news layout */
:root {
  --kin-blue: #0049ec;
  --kin-purple: #672ea7;
  --kin-purple-dark: #4a1d7a;
  --kin-purple-light: #f3eef9;
  --kin-purple-hero: linear-gradient(135deg, #f8f4fc 0%, #ebe3f5 50%, #f5f0fa 100%);
  --kin-link: #cc3366;
  --kin-text: #333333;
  --kin-muted: #666666;
  --kin-border: #e8e8e8;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--kin-text);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--kin-link); text-decoration: none; }
a:hover { text-decoration: underline; }

.preview-banner {
  background: #fff8e6;
  border-bottom: 2px solid #f0c040;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--kin-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--kin-text);
  text-decoration: none !important;
}
.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b4bb9, #672ea7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--kin-text);
  font-weight: 500;
  text-decoration: none !important;
}
.main-nav a:hover { color: var(--kin-purple); }
.main-nav a.active {
  color: var(--kin-purple);
  border-bottom: 2px solid var(--kin-purple);
}
.main-nav a.live-link::after { content: " ↗"; font-size: 9px; opacity: .5; }
.btn-contact {
  background: var(--kin-purple);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none !important;
}

/* News hero — purple gradient like live */
.news-hero {
  background: var(--kin-purple-hero);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.news-hero::before,
.news-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .35;
}
.news-hero::before {
  width: 80px; height: 80px;
  background: #c9b3e8;
  top: 20%; left: 8%;
}
.news-hero::after {
  width: 50px; height: 50px;
  background: #a78bda;
  bottom: 25%; right: 12%;
}
.news-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--kin-purple);
  margin-bottom: 10px;
  position: relative;
}
.news-hero p {
  color: var(--kin-muted);
  font-size: 1rem;
  position: relative;
}

/* Tanpa hero ungu — langsung ke konten (target layout setelah akses WP) */
.news-body--flush {
  padding-top: 28px;
}
.news-page-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--kin-purple);
  margin: 0 0 20px;
  letter-spacing: .02em;
}

/* News body */
.news-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

/* Hot 3 — replaces single hero featured */
.hot-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .hot-3 { grid-template-columns: 1fr; } }
.hot-card {
  position: relative;
  background: linear-gradient(180deg, #faf7fd 0%, #fff 100%);
  border: 2px solid #e8dff5;
  border-radius: 12px;
  padding: 16px;
}
.hot-card .grid-card-thumb { aspect-ratio: 16/9; margin-bottom: 12px; }
.hot-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 8px 0; }
.hot-card h3 a { color: var(--kin-text); text-decoration: none; }
.hot-card h3 a:hover { color: var(--kin-purple); }
.hot-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--kin-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
}

/* Grid lanjutan — no heading, thumbnails peek below hot-3 */
.news-feed-more {
  margin-top: 8px;
  padding-top: 4px;
}

/* Featured — horizontal card (legacy, unused) */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--kin-border);
}
@media (max-width: 768px) {
  .featured-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
.featured-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #e8e8e8, #f5f5f5);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #aaa;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}
.featured-body .cat-tag { margin-bottom: 10px; }
.featured-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--kin-text);
  line-height: 1.3;
  margin-bottom: 12px;
}
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body h2 a:hover { color: var(--kin-purple); }
.featured-body .excerpt {
  font-size: 15px;
  color: var(--kin-muted);
  margin-bottom: 12px;
  line-height: 1.55;
}
.post-meta { font-size: 14px; color: var(--kin-muted); }

/* Section heading */
.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kin-text);
  margin-bottom: 24px;
}

/* Grid cards — 3 columns like live */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .news-grid-3 { grid-template-columns: 1fr; }
}
.grid-card {
  display: flex;
  flex-direction: column;
}
.grid-card-thumb {
  aspect-ratio: 16/11;
  background: linear-gradient(145deg, #ececec, #f8f8f8);
  border-radius: 6px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  color: #bbb;
  font-size: 11px;
  overflow: hidden;
}
.grid-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grid-card-thumb--empty {
  background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
  min-height: 80px;
}
.grid-card .cat-tag { font-size: 12px; margin-bottom: 6px; }
.grid-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--kin-text);
}
.grid-card h3 a { color: inherit; text-decoration: none; }
.grid-card h3 a:hover { color: var(--kin-purple); }
.grid-card .excerpt {
  font-size: 14px;
  color: var(--kin-muted);
  line-height: 1.5;
}

.cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--kin-blue);
  letter-spacing: .04em;
}

.badge-draft { background: #fff3cd; color: #856404; font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 700; margin-right: 4px; }
.badge-july { background: #d4edda; color: #155724; font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 700; margin-right: 4px; }
.badge-live { background: #e8f4fd; color: #0c5460; font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 700; margin-right: 4px; }

/* CTA band */
.cta-band {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 0 24px 48px;
}
.cta-inner {
  background: linear-gradient(135deg, #7b4bb9, #672ea7);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-top: 8px;
}
.cta-label { font-size: 14px; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.btn-yellow {
  background: #f5d547;
  color: #333 !important;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-block;
  margin-top: 16px;
}

/* Single article */
.article-page-hero {
  background: var(--kin-purple-hero);
  padding: 32px 24px;
  text-align: center;
}
.article-page-hero .cat-tag { margin-bottom: 8px; }
.article-page-hero h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--kin-purple);
  line-height: 1.25;
}
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}
.article-author {
  font-size: 14px;
  color: var(--kin-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--kin-border);
}
.back-news { font-size: 14px; display: inline-block; margin-bottom: 16px; }
.article-content h2 { font-size: 1.2rem; color: var(--kin-purple); margin: 28px 0 10px; }
.article-content h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.article-content h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #3d2066;
  margin: 16px 0 6px;
}
.article-content h5 { font-size: 0.92rem; font-weight: 600; margin: 12px 0 4px; color: var(--kin-muted); }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; }
.article-content blockquote, .tldr {
  border-left: 4px solid var(--kin-purple);
  padding: 12px 16px;
  background: #f9f7fc;
  margin: 16px 0;
}
.article-content blockquote.dialogue {
  border-left-color: #25d366;
  background: #f0faf4;
  font-style: italic;
  color: #2c3e50;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--kin-border);
  margin: 28px 0;
}
.kin-figure {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--kin-border);
  background: #f8f8f8;
}
.kin-figure--has-copy {
  position: relative;
}
.kin-figure .copy-prompt-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.kin-figure .copy-prompt-btn:hover {
  background: #fff;
  color: var(--kin-purple);
  transform: scale(1.05);
}
.kin-figure .copy-prompt-btn.copied {
  background: #d4edda;
  color: #155724;
}
.prompt-store {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kin-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: #12121c;
}
.kin-figure figcaption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--kin-muted);
  padding: 10px 14px;
  border-top: 1px solid var(--kin-border);
  background: #fff;
}
.fig-brief { font-weight: 400; color: var(--kin-muted); font-size: 12px; }
.kin-diagram {
  margin: 32px 0;
  padding: 28px 20px;
  background: linear-gradient(180deg, #faf7ff 0%, #fff 100%);
  border: 1px solid rgba(103, 46, 167, 0.18);
  border-radius: 12px;
  overflow-x: auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(103, 46, 167, 0.06);
}
.kin-diagram svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.kin-diagram--empty {
  display: none;
}
.kin-prose-block {
  margin: 20px 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(103, 46, 167, 0.22);
  border-left: 4px solid #672ea7;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a2e;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(103, 46, 167, 0.04);
}
.kin-prose-block code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}
.kin-prose-block--steps code {
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 13px;
}
.kin-ascii-fallback {
  margin: 20px 0;
}
.kin-ascii-fallback summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #672ea7;
  padding: 10px 14px;
  background: #faf7ff;
  border: 1px solid rgba(103, 46, 167, 0.2);
  border-radius: 8px;
  list-style: none;
  user-select: none;
}
.kin-ascii-fallback summary::-webkit-details-marker {
  display: none;
}
.kin-ascii-fallback summary::before {
  content: "▸ ";
}
.kin-ascii-fallback[open] summary::before {
  content: "▾ ";
}
.kin-ascii-fallback[open] summary {
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}
.kin-ascii-fallback .kin-ascii-diagram {
  margin: 0;
  border-radius: 0 0 8px 8px;
  border-top: none;
}
.kin-ascii-diagram {
  margin: 28px 0;
  padding: 20px 24px;
  background: #12121c;
  color: #e8e4f3;
  border: 1px solid rgba(103, 46, 167, 0.45);
  border-radius: 12px;
  overflow-x: auto;
  font-family: Consolas, "Cascadia Code", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.kin-ascii-diagram code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.kin-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(103, 46, 167, 0.18);
  box-shadow: 0 4px 20px rgba(103, 46, 167, 0.06);
  background: #fff;
}
.kin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.kin-table th {
  background: linear-gradient(180deg, #f4f0fb 0%, #ede6f8 100%);
  color: #1a1a2e;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid #672ea7;
}
.kin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--kin-border);
  vertical-align: top;
}
.kin-table tbody tr:nth-child(even) td {
  background: #faf7ff;
}
.kin-table tbody tr:last-child td {
  border-bottom: none;
}
.kin-table tbody tr:hover td {
  background: #f4f0fb;
}
.article-content img { max-width: 100%; height: auto; }
.article-content pre:not(.kin-prose-block):not(.kin-ascii-diagram) {
  background: #f4f4f4;
  padding: 12px;
  overflow-x: auto;
  font-size: 13px;
}
.article-content pre { margin: 12px 0; }
.comments-placeholder {
  margin-top: 40px; padding: 24px; background: #f9f9f9;
  border: 1px dashed #ccc; color: #888; font-size: 14px; border-radius: 8px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #3d2066 0%, #2a1545 100%);
  color: rgba(255,255,255,.88);
  padding: 48px 24px 24px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.75); display: block; margin-bottom: 8px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-copy {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 13px;
  opacity: .65;
}

.preview-hub { max-width: var(--max); margin: 0 auto; padding: 32px 24px 64px; }
.preview-hub h1 { color: var(--kin-purple); margin-bottom: 8px; }
.review-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.review-table th, .review-table td { border: 1px solid var(--kin-border); padding: 10px 12px; text-align: left; }
.review-table th { background: var(--kin-purple-light); }
