﻿*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{margin:0;padding:0;font-family:Arial,sans-serif;background:#fff;-webkit-font-smoothing:antialiased;}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;}
button{font-family:inherit;}

.theme-toggle{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  width:38px;height:38px;border-radius:50%;cursor:pointer;
  background:var(--apk-toggle-bg,rgba(0,0,0,.06));
  border:1px solid var(--apk-toggle-border,rgba(0,0,0,.08));
  color:var(--apk-toggle-icon,#333);
  transition:background .15s ease,border-color .15s ease;
}
.theme-toggle:hover{background:var(--apk-toggle-bg-hover,rgba(0,0,0,.1));}
.theme-toggle-icon{width:18px;height:18px;fill:currentColor;}
.theme-toggle .icon-moon{display:none;}
[data-theme="dark"] .theme-toggle .icon-sun{display:none;}
[data-theme="dark"] .theme-toggle .icon-moon{display:block;}

.hdr-logo-fallback{background:var(--apk-toggle-bg,rgba(0,0,0,.06));}

/* ---------- Logo swap dark/light mode ---------- */
.hdr-logo-dark{display:none;}
[data-theme="dark"] .hdr-logo-light{display:none;}
[data-theme="dark"] .hdr-logo-dark{display:inline-flex;align-items:center;}

/* ---------- Search: toggle di header ---------- */
.apk-search-toggle-wrap{position:relative;}
.apk-search-toggle{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  width:38px;height:38px;border-radius:50%;cursor:pointer;
  background:var(--apk-toggle-bg,rgba(0,0,0,.06));border:1px solid var(--apk-toggle-border,rgba(0,0,0,.08));
  color:var(--apk-toggle-icon,#333);transition:background .15s ease;
}
.apk-search-toggle:hover{background:var(--apk-toggle-bg-hover,rgba(0,0,0,.1));}
.apk-search-toggle svg{width:17px;height:17px;fill:currentColor;}
.apk-search-form-header{
  position:absolute;top:calc(100% + 8px);right:0;z-index:60;
  display:flex;align-items:center;gap:6px;background:var(--apk-surface,#fff);
  border:1px solid var(--apk-header-border,rgba(0,0,0,.08));border-radius:999px;
  padding:6px 6px 6px 16px;box-shadow:var(--apk-shadow-hover,0 10px 24px rgba(0,0,0,.15));width:0;opacity:0;
  overflow:hidden;pointer-events:none;transition:width .2s ease,opacity .2s ease;
}
.apk-search-form-header.is-open{width:280px;opacity:1;pointer-events:auto;}
.apk-search-form-header input{flex:1;border:none;background:transparent;outline:none;font-size:13px;color:var(--apk-text,#1a1a1a);min-width:0;}
.apk-search-form-header button{
  display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;
  border-radius:50%;border:none;background:var(--apk-primary);color:#fff;cursor:pointer;
}
.apk-search-form-header button svg{width:14px;height:14px;fill:currentColor;}

/* ---------- Search: box menonjol di homepage ---------- */
.apk-search-box-wrap{max-width:640px;margin:0 auto 20px;padding:0 18px;}
.apk-search-form-home{
  display:flex;align-items:center;gap:10px;background:var(--apk-surface,#fff);
  border-radius:999px;padding:6px 8px 6px 20px;box-shadow:var(--apk-shadow,0 2px 10px rgba(0,0,0,.08));
  border:1px solid var(--apk-header-border,rgba(0,0,0,.08));
}
.apk-search-box-icon{width:18px;height:18px;fill:var(--apk-text-muted,#666);flex-shrink:0;}
.apk-search-form-home input{flex:1;border:none;background:transparent;outline:none;font-size:14px;color:var(--apk-text,#1a1a1a);min-width:0;}
.apk-search-form-home button{
  background:linear-gradient(135deg,var(--apk-primary),var(--apk-secondary));color:#fff;
  border:none;border-radius:999px;padding:11px 22px;font-size:13px;font-weight:700;cursor:pointer;flex-shrink:0;
}

/* ---------- Halaman hasil pencarian ---------- */
.apk-search-results-wrap{max-width:1100px;margin:10px auto 30px;padding:0 14px;}
.apk-search-results-title{font-family:"Poppins",sans-serif;font-size:18px;font-weight:700;color:var(--apk-text,#1a1a1a);margin:0 0 18px;}
.apk-search-results-title span{color:var(--apk-primary);}
.apk-search-empty{padding:40px 20px;text-align:center;color:var(--apk-text-muted,#666);font-size:14px;}
