/* AppShowcase — stylesheet frontend. Tanpa framework/font eksternal. Light + dark. */

/* ----- 1. Token ----------------------------------------------------------- */
:root {
  --primary: #01875f;
  --primary-hover: #056449;
  --accent: #1a73e8;
  --bg: #ffffff;
  --surface: #f7f9fa;
  --border: #e3e6e8;
  --text: #202124;
  --text-2: #5f6368;
  --star: #f9ab00;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --maxw: 1180px;

  /* turunan */
  --surface-2: #eef1f3;
  --primary-soft: rgba(1, 135, 95, .10);
  --accent-soft: rgba(26, 115, 232, .10);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, .12);
  --header-bg: rgba(255, 255, 255, .86);
  --scrim: rgba(255, 255, 255, 0);
  --ok: #1e8e3e;
  --warn: #b06000;
  --err: #c5221f;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131314;
    --surface: #1e1f20;
    --border: #3c4043;
    --text: #e8eaed;
    --text-2: #9aa0a6;
    --shadow: none;
    --surface-2: #282a2c;
    --primary-soft: rgba(1, 135, 95, .20);
    --accent-soft: rgba(26, 115, 232, .18);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, .45);
    --header-bg: rgba(19, 19, 20, .84);
    --scrim: rgba(19, 19, 20, 0);
    --ok: #81c995;
    --warn: #fdd663;
    --err: #f28b82;
  }
}

[data-theme="dark"] {
  --bg: #131314;
  --surface: #1e1f20;
  --border: #3c4043;
  --text: #e8eaed;
  --text-2: #9aa0a6;
  --shadow: none;
  --surface-2: #282a2c;
  --primary-soft: rgba(1, 135, 95, .20);
  --accent-soft: rgba(26, 115, 232, .18);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, .45);
  --header-bg: rgba(19, 19, 20, .84);
  --scrim: rgba(19, 19, 20, 0);
  --ok: #81c995;
  --warn: #fdd663;
  --err: #f28b82;
}

/* ----- 2. Dasar ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ----- 3. Utilitas -------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 12px 12px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

.text-muted { color: var(--text-2); }

/* ----- 4. Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px; flex-wrap: wrap;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.02em; flex: 0 0 auto;
}
.logo:hover { text-decoration: none; }
.logo img { border-radius: 9px; }
.logo__text { white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  color: var(--text-2); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.nav__link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav__link--active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.search-form {
  position: relative; display: flex; align-items: center;
  flex: 1 1 220px; max-width: 380px; margin-left: auto;
}
.search-form__icon {
  position: absolute; left: 13px; color: var(--text-2); pointer-events: none;
}
.search-form__input {
  width: 100%;
  padding: 9px 14px 9px 40px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
  transition: border-color .15s ease, background-color .15s ease;
  font-size: .93rem;
}
.search-form__input::placeholder { color: var(--text-2); }
.search-form__input:focus { background: var(--bg); border-color: var(--primary); outline: none; }
.search-form__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form__btn {
  position: absolute; right: 4px;
  border: 0; background: transparent; color: var(--primary);
  font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.search-form__btn:hover { background: var(--primary-soft); }

.site-header__actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--text-2);
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* Ikon menunjukkan AKSI: bulan = ganti ke gelap, matahari = ganti ke terang. */
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
}

.nav-toggle { display: none; }

/* ----- 5. Tombol ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: .95rem; text-align: center;
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; background: var(--border); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }

.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface); border-color: var(--text-2); }

.btn--play {
  background: var(--primary); color: #fff;
  padding: 11px 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.btn--play:hover { background: var(--primary-hover); box-shadow: var(--shadow-lg); }
.btn--play svg, .btn--play .btn__icon { flex: 0 0 auto; fill: currentColor; }
.btn--play__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn--play__text strong, .btn--play strong { font-size: 1rem; font-weight: 700; }
.btn--play__text small, .btn--play small { font-size: .72rem; font-weight: 500; opacity: .88; }
.btn--play--lg { padding: 12px 30px; font-size: 1.02rem; }

.btn--block { display: flex; width: 100%; }

/* ----- 6. Chips ----------------------------------------------------------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 20px; padding: 0; list-style: none;
}
.chips--scroll {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-2); font-size: .875rem; font-weight: 500;
  white-space: nowrap; flex: 0 0 auto;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { background: var(--surface); color: var(--text); border-color: var(--text-2); text-decoration: none; }
.chip--active {
  background: var(--primary-soft); border-color: var(--primary);
  color: var(--primary); font-weight: 600;
}

/* ----- 7. Hero ------------------------------------------------------------ */
.hero {
  padding: 52px 0 40px; text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% -30%, var(--primary-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero .container { max-width: 780px; }
.hero__title { margin-bottom: .35em; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
.hero__sub { color: var(--text-2); font-size: 1.05rem; margin-bottom: 1.6em; }
.hero .search-form { max-width: 560px; margin: 0 auto 22px; }
.hero .search-form__input { padding: 14px 16px 14px 44px; font-size: 1rem; border-radius: 999px; }
.hero .chips { justify-content: center; margin-bottom: 0; }

/* ----- 8. Section --------------------------------------------------------- */
.section { padding: 34px 0 6px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.section__head h2 { margin: 0; }
.section__more { font-size: .92rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.section__more:hover { color: var(--primary-hover); }

.page-head { padding: 30px 0 6px; }
.page-head p { color: var(--text-2); max-width: 68ch; }

/* ----- 9. Grid & scroller ------------------------------------------------- */
.grid-apps {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.grid-articles {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.h-scroll {
  display: flex; gap: 14px;
  overflow-x: auto; padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.h-scroll > * { scroll-snap-align: start; flex: 0 0 clamp(230px, 76vw, 300px); }
.h-scroll::-webkit-scrollbar { height: 8px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.h-scroll::-webkit-scrollbar-track { background: transparent; }

/* ----- 10. Kartu app ------------------------------------------------------ */
.app-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.app-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-2);
}
.app-card__icon {
  width: 72px; height: 72px; border-radius: 18px;
  object-fit: cover; background: var(--surface); flex: 0 0 auto;
}
.app-card__body { min-width: 0; }
.app-card__name {
  margin: 0 0 2px; font-size: .98rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card__meta {
  margin: 0 0 4px; color: var(--text-2); font-size: .82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-card__rating {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--text-2);
}
.app-card__downloads { color: var(--text-2); }

.app-card--row { flex-direction: row; align-items: center; gap: 14px; }
.app-card--row .app-card__icon { width: 64px; height: 64px; border-radius: 16px; }
.app-card--row .app-card__body { flex: 1 1 auto; }

.rating-chip { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--text); }
.rating-chip__star { color: var(--star); }

/* ----- 11. Kartu artikel -------------------------------------------------- */
.article-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.article-card:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow-lg); border-color: var(--text-2);
}
.article-card__img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.article-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.article-card__title {
  margin: 0 0 8px; font-size: 1.02rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__excerpt {
  margin: 0 0 14px; color: var(--text-2); font-size: .9rem; flex: 1 1 auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__date { color: var(--text-2); font-size: .8rem; }

/* ----- 12. Breadcrumbs ---------------------------------------------------- */
.breadcrumbs { padding: 16px 0 4px; font-size: .84rem; color: var(--text-2); }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: var(--border); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] {
  color: var(--text); font-weight: 500;
  max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ----- 13. Halaman aplikasi ----------------------------------------------- */
.app-head { display: flex; gap: 22px; align-items: flex-start; padding: 20px 0 8px; }
.app-head__icon {
  width: 128px; height: 128px; border-radius: var(--radius-lg);
  object-fit: cover; flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.app-head__info { min-width: 0; flex: 1 1 auto; }
.app-head__title { margin: 0 0 6px; }
.app-head__dev { margin: 0 0 12px; color: var(--primary); font-weight: 600; font-size: 1rem; }
.app-head__dev a { color: inherit; }
.app-head .chips { margin-bottom: 0; }

.stats-strip {
  display: flex; align-items: stretch; flex-wrap: wrap;
  margin: 22px 0; padding: 4px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat {
  flex: 1 1 0; min-width: 96px;
  padding: 12px 10px; text-align: center;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; }
.stat__val {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-weight: 700; font-size: 1rem; color: var(--text);
}
.stat__val svg { fill: currentColor; }
.stat__label {
  display: block; margin-top: 2px;
  font-size: .74rem; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .04em;
}

.install-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 6px; }
.install-note { color: var(--text-2); font-size: .82rem; margin: 0 0 22px; }

.glance {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 26px;
}
.glance h2, .glance__title {
  margin: 0 0 8px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-2);
}
.glance p { margin: 0 0 10px; font-size: 1.02rem; }
.glance p:last-child { margin-bottom: 0; }
.glance .chips { margin: 12px 0 0; }

.screenshots {
  display: flex; gap: 12px; margin: 0 0 8px;
  overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.screenshots img {
  height: 420px; width: auto; flex: 0 0 auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); object-fit: cover;
  scroll-snap-align: start;
}
.screenshots::-webkit-scrollbar { height: 8px; }
.screenshots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.video-embed { position: relative; padding-top: 56.25%; margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- 14. Tabel info & FAQ ----------------------------------------------- */
.info-table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: .93rem; }
.info-table th, .info-table td {
  text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.info-table th { width: 42%; color: var(--text-2); font-weight: 500; }
.info-table td { color: var(--text); font-weight: 500; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table code {
  background: var(--surface-2); padding: 2px 7px; border-radius: 6px;
  word-break: break-all;
}

.faq { margin: 0 0 30px; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); margin-bottom: 10px; overflow: hidden;
}
.faq details[open] { background: var(--surface); border-color: var(--text-2); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 14px 46px 14px 18px; position: relative;
  font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: var(--surface); }
.faq__answer, .faq details > div, .faq details > p {
  padding: 0 18px 16px; margin: 0; color: var(--text-2);
}

/* ----- 15. Prose ---------------------------------------------------------- */
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.8em 0 .6em; font-size: 1.4rem; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 1.15rem; }
.prose h4 { margin: 1.3em 0 .4em; font-size: 1.02rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 700; color: var(--text); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.4em 0; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { color: var(--text-2); font-size: .86rem; text-align: center; margin-top: .5em; }
.prose blockquote {
  margin: 1.4em 0; padding: .2em 0 .2em 1.1em;
  border-left: 4px solid var(--primary); color: var(--text-2); font-style: italic;
}
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose pre {
  background: var(--surface-2); padding: 16px; border-radius: 12px;
  overflow-x: auto; margin: 1.4em 0;
}
.prose pre code { background: none; padding: 0; }
.prose hr { margin: 2em 0; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.4em 0;
  font-size: .95rem; display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface); font-weight: 600; }
.prose iframe { max-width: 100%; border-radius: var(--radius); border: 0; }

.prose-clamp { position: relative; max-height: 22rem; overflow: hidden; }
.prose-clamp::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem;
  background: linear-gradient(to bottom, var(--scrim), var(--bg));
  pointer-events: none;
}
.prose-clamp.expanded { max-height: none; overflow: visible; }
.prose-clamp.expanded::after { display: none; }

.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 14px 0 0; padding: 8px 18px;
  border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--primary);
  font-weight: 600; font-size: .9rem;
}
.read-more:hover { background: var(--primary-soft); border-color: var(--primary); }

/* ----- 16. Pagination ----------------------------------------------------- */
.pagination {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; justify-content: center;
  margin: 34px 0 10px;
}
.pagination__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--text);
  font-size: .9rem; font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease;
}
.pagination__link:hover { background: var(--surface); border-color: var(--text-2); text-decoration: none; }
.pagination__link--current {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 700; cursor: default;
}
.pagination__link--current:hover { background: var(--primary); border-color: var(--primary); }
.pagination__gap { color: var(--text-2); padding: 0 4px; }

/* ----- 17. Footer --------------------------------------------------------- */
.site-footer {
  margin-top: 56px; padding: 44px 0 24px;
  background: var(--surface); border-top: 1px solid var(--border);
  color: var(--text-2); font-size: .92rem;
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin: 0 0 12px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text);
}
.footer-col__label {
  margin: 16px 0 8px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text);
}
.footer-col__text { margin: 12px 0 0; max-width: 42ch; line-height: 1.65; }
.footer-col__list { list-style: none; margin: 0; padding: 0; }
.footer-col__list li { margin-bottom: 9px; }
.footer-col__list a { color: var(--text-2); }
.footer-col__list a:hover { color: var(--primary); }
.footer-col__ico { font-style: normal; }
.logo--footer { font-size: 1rem; }

.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links__item {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-2);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.social-links__item:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  justify-content: space-between; align-items: center;
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--border); font-size: .86rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__credit a { color: var(--primary); font-weight: 600; }

/* ----- 18. Komponen kecil ------------------------------------------------- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: 12px; margin: 0 0 18px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .93rem;
}
.alert--success { border-color: var(--ok); background: rgba(30, 142, 62, .10); color: var(--ok); }
.alert--error { border-color: var(--err); background: rgba(197, 34, 31, .10); color: var(--err); }
.alert--info { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2);
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge--published { background: var(--primary-soft); color: var(--primary); }
.badge--draft { background: rgba(176, 96, 0, .12); color: var(--warn); }
.badge--featured { background: rgba(249, 171, 0, .16); color: #a06a00; }

.cta-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding: 24px 26px; margin: 34px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-soft), var(--surface));
}
.cta-banner__body { flex: 1 1 260px; min-width: 0; }
.cta-banner h2, .cta-banner__title { margin: 0 0 6px; font-size: 1.2rem; color: var(--text); }
.cta-banner p { margin: 0; color: var(--text-2); font-size: .95rem; }
.cta-banner .app-card { background: var(--bg); flex: 1 1 260px; }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0; }
.share-row__label { color: var(--text-2); font-size: .88rem; font-weight: 600; margin: 0; }
.share-row a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-2); font-size: .86rem; font-weight: 600;
}
.share-row a:hover { background: var(--surface); color: var(--text); border-color: var(--text-2); text-decoration: none; }

.meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  color: var(--text-2); font-size: .88rem; margin: 0 0 20px;
}

.empty {
  padding: 46px 20px; text-align: center; color: var(--text-2);
  border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface);
}

.article-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border); margin: 0 0 26px;
}

.content-narrow { max-width: 760px; }

/* ----- 19. Responsif ------------------------------------------------------ */
@media (max-width: 900px) {
  .site-header__inner { min-height: 58px; gap: 10px; row-gap: 0; }

  .nav-toggle { display: inline-flex; }

  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav--open { display: flex; }
  .nav__link { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }

  .search-form { order: 3; flex: 1 1 100%; max-width: none; margin: 0 0 12px; }
  .site-header__actions { margin-left: auto; }

  .app-head { gap: 16px; }
  .app-head__icon { width: 96px; height: 96px; border-radius: 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-col--about { grid-column: 1 / -1; }

  .screenshots img { height: 320px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .hero { padding: 36px 0 30px; }
  .section { padding: 26px 0 4px; }

  .grid-apps { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
  .grid-articles { grid-template-columns: 1fr; gap: 16px; }

  .app-card { padding: 12px; }
  .app-card__icon { width: 64px; height: 64px; border-radius: 16px; }
  .app-card__name { font-size: .92rem; }
  .app-card--row { flex: 0 0 clamp(215px, 82vw, 265px); }

  .app-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .app-head__icon { width: 88px; height: 88px; }

  .stats-strip { margin: 18px 0; }
  .stat { flex: 1 1 46%; min-width: 0; padding: 10px 6px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .btn--play--lg { width: 100%; }
  .install-row { gap: 10px; }

  .screenshots img { height: 260px; }

  .info-table th { width: 46%; }
  .info-table th, .info-table td { padding: 10px 8px; font-size: .89rem; }

  .prose-clamp { max-height: 18rem; }

  .cta-banner { padding: 20px; gap: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  .pagination__link { min-width: 38px; height: 38px; padding: 0 11px; }
  .pagination__link--nav { padding: 0 14px; }
}

@media (max-width: 380px) {
  .logo__text { font-size: .95rem; }
  .grid-apps { grid-template-columns: 1fr; }
  .app-card { flex-direction: row; align-items: center; gap: 12px; }
  .app-card .app-card__body { flex: 1 1 auto; min-width: 0; }
}

@media print {
  .site-header, .site-footer, .read-more, .share-row, .pagination, .skip-link { display: none !important; }
  .prose-clamp { max-height: none; }
  .prose-clamp::after { display: none; }
}
