/* =========================
   BASE
========================= */
body{
  background:#111;
  color:#eee;
  font-family:Arial,system-ui,-apple-system,BlinkMacSystemFont;
  margin:0;
}

a{ color:inherit; text-decoration:none; }

/* =========================
   NAVBAR
========================= */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:#111;
  border-bottom:1px solid #222;
}

.nav-inner{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:12px 15px;
}

.brand{
  font-size:20px;
  font-weight:800;
  color:#fff;
  letter-spacing:.5px;
}

.menu{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.menu a{
  font-size:14px;
  color:#bbb;
}

.menu a:hover{ color:#fff; }

.search{
  display:flex;
  gap:8px;
  align-items:center;
}

.search input{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #2a2a2a;
  background:#0f0f0f;
  color:#fff;
  width:200px;
}

.search button{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #2a2a2a;
  background:#1c1c1c;
  color:#fff;
  cursor:pointer;
}

.search button:hover{ background:#222; }

/* =========================
   GRID (GALERI)
========================= */

/* desktop */
.grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:15px;
  padding:15px;
}

/* tablet */
@media (max-width: 900px){
  .grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

/* mobile */
@media (max-width: 520px){
  .grid{ grid-template-columns:repeat(1, minmax(0,1fr)); }
}

/* =========================
   CARD
========================= */
.card{
  background:#1c1c1c;
  border:1px solid #222;
  border-radius:14px;
  padding:14px;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.thumb{
  display:block;
  margin-bottom:10px;
}

.thumb img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:12px;
  background:#0f0f0f;
  border:1px solid #222;
}

.thumb-ph{
  height:140px;
  border-radius:12px;
  background:#0f0f0f;
  border:1px solid #222;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777;
  font-size:13px;
}

.title{
  margin:8px 0 12px;
  font-size:16px;
  font-weight:700;
}

.title a{ color:#fff; }

/* =========================
   BUTTON (DOWNLOAD)
========================= */
.btn{
  position:relative;
  display:block;              /* PENTING */
  width:100%;                 /* PENTING */
  box-sizing:border-box;      /* PENTING */
  padding:12px 14px;
  background:#0af;
  color:#00131f;
  font-weight:700;
  overflow:hidden;
  border-radius:12px;
  text-align:center;
}

/* khusus tombol download di card */
.btn.full{
  margin-top:10px;
}

.btn::before{
  content:'';
  position:absolute;
  left:-100%;
  top:0;
  width:100%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.6),
    transparent
  );
  animation:shine 1.6s infinite;
}

@keyframes shine{
  to{ left:100% }
}

/* =========================
   PAGINATION
========================= */
.pager{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  padding:20px 15px;
}

.pageinfo{
  color:#bbb;
  font-size:14px;
}

/* MOBILE kecil (tetap pakai hamburger layout) */
@media (max-width:520px){
  .search input{ width:100%; }
}


/* ===== HAMBURGER (CSS only) ===== */
.nav-toggle{
  display:none;
}

.nav-burger{
  display:none;
  width:42px;
  height:42px;
  border:1px solid #2a2a2a;
  border-radius:12px;
  background:#141414;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}

.nav-burger span{
  display:block;
  width:18px;
  height:2px;
  background:#fff;
  border-radius:2px;
}

/* ===== MOBILE NAV BEHAVIOR ===== */
@media (max-width: 720px){
  .nav-inner{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand burger"
      "search search"
      "menu menu";
    gap:10px;
    align-items:center;
  }

  .brand{ grid-area: brand; }
  .nav-burger{ grid-area: burger; display:flex; }
  .search{ grid-area: search; }
  .menu{ grid-area: menu; }

  /* menu jadi panel */
  .menu{
    display:none;
    flex-direction:column;
    gap:10px;
    padding:12px;
    border:1px solid #222;
    border-radius:14px;
    background:#141414;
  }

  .menu a{
    padding:10px 12px;
    border-radius:12px;
    background:#101010;
    border:1px solid #222;
    color:#ddd;
  }

  /* ketika hamburger ON */
  .nav-toggle:checked ~ .menu{
    display:flex;
  }

  .search input{ width:100%; }
}

/* ===== Mobile: brand di tengah + burger jelas ===== */
@media (max-width: 720px){
  .brand{
    justify-self:center;
    text-align:center;
  }

  /* bikin burger terlihat jelas (3 garis) */
  .nav-burger{
    background:#141414;
  }
  .nav-burger span{
    width:20px;
    height:2px;
    background:#fff;
  }

  /* menu kalau banyak: jadi panel scroll */
  .menu{
    max-height: 55vh;
    overflow:auto;
  }
}

/* optional: kasih sedikit jarak biar menu tidak nempel */
@media (max-width: 720px){
  .menu a{
    display:block;
  }
}

@media (max-width: 720px){
  .nav-burger span{ transition: .2s ease; }

  .nav-toggle:checked + .nav-burger span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger span:nth-child(2){
    opacity:0;
  }
  .nav-toggle:checked + .nav-burger span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 720px){
  /* layout: title + burger, lalu search full */
  .nav-inner{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand burger"
      "search search"
      "menu menu";
    gap:10px;
    align-items:center;
  }

  .brand{
    grid-area: brand;
    justify-self:center;
    text-align:center;
    width:100%;
    font-size:20px;
  }

  .nav-burger{
    grid-area: burger;
    display:flex;
    width:44px;
    height:44px;
    border:1px solid #2a2a2a;
    border-radius:12px;
    background:#141414;
    align-items:center;
    justify-content:center;
    flex-direction:column;   /* penting */
    gap:6px;                 /* jarak antar garis */
  }

  .nav-burger span{
    display:block;
    width:22px;
    height:2px;
    background:#fff;
    border-radius:2px;
  }

  .search{
    grid-area: search;
    display:flex;
    gap:8px;
  }

  .search input{
    width:100%;
    flex:1;
  }

  /* menu panel */
  .menu{
    grid-area: menu;
    display:none;
    flex-direction:column;
    gap:10px;
    padding:12px;
    border:1px solid #222;
    border-radius:14px;
    background:#141414;
    max-height:55vh;
    overflow:auto;
  }

  .menu a{
    display:block;
    padding:10px 12px;
    border-radius:12px;
    background:#101010;
    border:1px solid #222;
    color:#ddd;
  }

  .nav-toggle:checked ~ .menu{
    display:flex;
  }
}

@media (max-width: 720px){
  .nav-burger span{ transition:.2s ease; }

  .nav-toggle:checked + .nav-burger span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger span:nth-child(2){
    opacity:0;
  }
  .nav-toggle:checked + .nav-burger span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ===== Single Page Layout ===== */
.container{
  padding:15px;
  max-width:1100px;
  margin:0 auto;
}

.crumb{
  color:#aaa;
  font-size:13px;
  margin:10px 0 14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.crumb a{ color:#cfd7ff; }
.crumb .cur{ color:#fff; }

.layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:15px;
  align-items:start;
}

.post{
  background:#1c1c1c;
  border:1px solid #222;
  border-radius:14px;
  padding:16px;
}

.post-head{
  display:flex;
  gap:14px;
  align-items:center;
}

.post-icon img{
  width:96px;
  height:96px;
  border-radius:18px;
  object-fit:cover;
  background:#0f0f0f;
  border:1px solid #222;
}

.post-meta h1{
  margin:0 0 10px;
  font-size:22px;
}

.post-body{
  margin-top:14px;
  color:#ddd;
  line-height:1.7;
}

.share{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #222;
}
.share-title{ color:#bbb; font-size:13px; margin-bottom:10px; }
.share-links{ display:flex; gap:10px; flex-wrap:wrap; }
.sbtn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #2a2a2a;
  background:#141414;
  color:#fff;
  font-size:14px;
}
.sbtn:hover{ background:#1a1a1a; }

/* Sidebar */
.side-box{
  background:#1c1c1c;
  border:1px solid #222;
  border-radius:14px;
  padding:14px;
  position:sticky;
  top:76px;
}
.side-title{
  font-weight:800;
  margin-bottom:10px;
}
.side-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:12px;
  border:1px solid transparent;
}
.side-item:hover{
  border-color:#2a2a2a;
  background:#141414;
}
.side-ic{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid #222;
  background:#0f0f0f;
}
.side-ic.ph{
  display:inline-block;
}
.side-txt{
  color:#fff;
  font-size:14px;
  line-height:1.2;
}

/* Responsive single page */
@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
  .side-box{ position:static; top:auto; }
}


.post-sub{ color:#aaa; font-size:13px; margin-top:-6px; }

.side-badge{
  margin-left:auto;
  font-size:12px;
  color:#bbb;
  border:1px solid #2a2a2a;
  padding:4px 8px;
  border-radius:999px;
  background:#101010;
}

.menu-sep{
  width:1px;
  height:18px;
  background:#222;
  display:inline-block;
  margin:0 6px;
  opacity:.8;
}

.menu-sep{
  width:1px;height:18px;
  background:#222;
  display:inline-block;
  margin:0 6px;
  opacity:.8;
}
.menu a.active{
  color:#fff;
  border-color:rgba(0,183,255,.35);
}

.blog-card{ text-align:left; }
.blog-title{ font-weight:900; font-size:16px; margin-bottom:6px; }
.blog-desc{ color:#9fb2d6; font-size:13px; line-height:1.5; }
.side-item.active{ background:#101010; border-color:rgba(0,183,255,.25); }

/* Playstore-like horizontal screenshots */
.shot-box{margin-top:14px}
.shot-title{font-weight:900;margin:0 0 10px 0}
.shot-row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:4px 2px 10px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.shot-row::-webkit-scrollbar{height:8px}
.shot-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}

.shot-item{
  flex:0 0 auto;
  width:260px;           /* ukuran card screenshot */
  aspect-ratio: 16 / 9;  /* mirip playstore */
  border-radius:14px;
  overflow:hidden;
  scroll-snap-align:start;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.22);
  display:block;
}
.shot-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.catbar{border-top:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.18)}
.catbar-inner{max-width:1100px;margin:0 auto;padding:10px 12px;display:flex;gap:10px;overflow:auto;white-space:nowrap}
.catlink{display:inline-block;padding:8px 12px;border:1px solid rgba(255,255,255,.08);border-radius:999px;text-decoration:none;color:inherit}
.catlink:hover{border-color:rgba(255,255,255,.18)}

/* ===== Category pills bar ===== */
.navcats{
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
}

.navcats-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.navcats-inner::-webkit-scrollbar{ display:none; }

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}

.chip:hover{
  background: rgba(255,255,255,.06);
}

.chip.active{
  border-color: rgba(0,160,255,.65);
  box-shadow: 0 0 0 3px rgba(0,160,255,.12);
}


