/* ============================================================
   KuyhAa Indonesia — Main Stylesheet
   Font: Droid Sans (title), Tahoma (body)
   Colors: #0d0d0d bg, #90b906 green, white text
   ============================================================ */

:root {
  --green:        #90b906;
  --green-dark:   #6a8a04;
  --green-light:  #a8d008;
  --black:        #0d0d0d;
  --black2:       #111111;
  --black3:       #1a1a1a;
  --white:        #ffffff;
  --gray:         #cccccc;
  --gray-dark:    #888888;
  --red:          #e74c3c;
  --orange:       #e67e22;
  --border:       #2a2a2a;
  --font-title:   'Droid Sans', serif;
  --font-body:    Tahoma, Verdana, Geneva, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT — wider like original
   ============================================================ */
.wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-inner {
  display: flex;
  gap: 15px;
  padding: 12px 0 30px;
  align-items: flex-start;
  width: 100%;
}

.main-content { flex: 1; min-width: 0; }
.sidebar { width: 220px; flex-shrink: 0; min-width: 220px; }

/* ============================================================
   HEADER — logo full row, search below full width no button
   ============================================================ */
#site-header {
  background: var(--black);
  padding: 10px 0 6px;
}

#site-header .wrapper {
  display: block;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 30px;
}

.site-logo { display: block; margin-bottom: 8px; }
.site-logo img { height: 110px; width: auto; max-width: 320px; }

/* Search — no button, full width */
.header-search { display: block; width: 620px; max-width: 100%; margin-bottom: 6px; }
.header-search form { display: block; position: relative; }

.header-search input[type="text"] {
  width: 100%;
  background: var(--black);
  border: 1px solid #90b906;
  color: var(--white);
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  display: block;
}

.header-search input[type="text"]::placeholder { color: #666; }
.header-search input[type="text"]:focus { border-color: var(--green); }

/* ============================================================
   SIDEBAR — nav links
   ============================================================ */
.sidebar-nav a {
  display: block;
  color: var(--green);
  padding: 5px 0 5px 0;
  border-bottom: 1px solid #222;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: padding-left 0.2s ease, color 0.2s ease;
  position: relative;
}

.sidebar-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--green);
  transition: width 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--white);
  text-decoration: none;
  padding-left: 8px;
}

.sidebar-nav a:hover::before {
  width: 3px;
}

.sidebar-promo {
  color: var(--green);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 0 8px;
  border-bottom: 1px solid #222;
  margin-bottom: 2px;
}

.sidebar-title {
  color: var(--white);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 14px 0 8px;
}

/* Category list with icons */
.cat-list { list-style: none; }
.cat-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-bottom: 1px solid #1a1a1a;
}

.cat-list li img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Default category icon using CSS */
.cat-icon-default {
  width: 32px;
  height: 32px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cat-list li a {
  color: var(--green);
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

.cat-list li a:hover { color: var(--green-light); }

.other-cat-list { list-style: none; }
.other-cat-list li { padding: 2px 0; }
.other-cat-list li a { color: var(--green); font-size: 11px; text-decoration: none; }
.other-cat-list li a:hover { color: var(--green-light); }

/* ============================================================
   POST LIST — Homepage
   ============================================================ */
.post-list { list-style: none; }

.post-item {
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
}

.post-item:last-child { border-bottom: none; }

/* Promo block — no box, plain */
.promo-block {
  padding: 8px 0 14px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 2px;
  background: transparent;
}

.promo-block-title {
  font-size: 20px;
  color: var(--green);
  font-family: var(--font-title);
  font-weight: 400;
  margin-bottom: 5px;
}

.promo-block-text { font-size: 13px; color: #ccc; line-height: 1.6; }

/* Post title — Droid Sans, 20px, weight 400, #90b906 */
.post-item-title {
  font-family: 'Droid Sans', 'Trebuchet MS', serif;
  font-size: 20px;
  font-weight: 400 !important;
  line-height: 24px;
  margin-bottom: 3px;
}

.post-item-title a {
  color: var(--green);
  text-decoration: none;
}

.post-item-title a:hover {
  color: var(--green-light);
  text-decoration: underline;
}

/* Post meta — italic gray, date · by · category only */
.post-item-meta {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.post-item-meta a { color: #888; text-decoration: none; }
.post-item-meta a:hover { color: var(--green); }

/* Post excerpt — justified */
.post-item-excerpt {
  font-size: 13px;
  color: #ccc;
  line-height: 1.65;
  text-align: justify;
  font-family: var(--font-body);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 14px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 4px 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--white);
  font-size: 12px;
  text-decoration: none;
}

.pagination a:hover { background: var(--green); border-color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); }
.pagination .dots { background: transparent; border: none; color: #888; }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.post-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1.3;
}

.post-meta {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-bottom: 14px;
}

.post-meta a { color: #888; }
.post-meta a:hover { color: var(--green); }

/* Download button */
.btn-download {
  display: block;
  width: fit-content;
  margin: 14px auto;
  background: linear-gradient(to bottom, #8ecf50, #5a9e28);
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
  padding: 11px 44px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  box-shadow: 0 3px 10px rgba(90,158,40,0.35);
  text-decoration: none;
  transition: transform 0.1s;
}

.btn-download:hover {
  background: linear-gradient(to bottom, #9fd466, #6ab030);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Post content */
.post-content {
  font-size: 13px;
  color: #ddd;
  line-height: 1.75;
  text-align: justify;
}

.post-content p { margin-bottom: 10px; }
.post-content h2 { color: var(--white); font-size: 15px; margin: 14px 0 7px; font-family: var(--font-title); font-weight: 400; }
.post-content ul, .post-content ol { padding-left: 20px; margin-bottom: 10px; }
.post-content li { margin-bottom: 4px; }
.post-content strong { color: var(--white); }

/* Screenshots */
.screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.screenshots-grid img {
  width: 600px;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}

.screenshots-grid img:hover { border-color: var(--green); }

/* Download info */
.download-info { margin: 14px 0; font-size: 13px; color: #ccc; }
.download-info p { margin-bottom: 4px; }
.download-info a { color: var(--green); }

/* Notice box */
.notice-box {
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #ccc;
}

.notice-box .label-penting { color: var(--red); font-weight: bold; }
.notice-box .label-rar { color: var(--white); font-weight: bold; }
.notice-box .red { color: var(--red); }
.notice-box .orange { color: var(--orange); }
.notice-box a { color: var(--green); }

/* Related list */
.related-list { list-style: none; }
.related-list li { padding: 3px 0; border-bottom: 1px dotted var(--border); font-size: 12px; }
.related-list li::before { content: '○ '; color: #666; }
.related-list li a { color: var(--green); }

/* Tags */
.post-tags { margin: 10px 0; font-size: 12px; color: #888; }
.post-tags a { color: var(--green); margin-right: 4px; }

/* HR separator */
.section-hr { border: none; border-top: 1px solid #2a2a2a; margin: 14px 0; }

/* Post prev/next */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.post-nav a { color: var(--green); }
.post-nav .prev::before { content: '« '; }
.post-nav .next::after  { content: ' »'; }

/* Share buttons */
.share-buttons { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.share-btn:hover { opacity: 0.85; text-decoration: none; color: var(--white); }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.twitter  { background: #1da1f2; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { font-size: 11px; color: #888; padding: 5px 0 8px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 4px; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-banner { padding: 8px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.category-banner h1 { font-size: 18px; color: var(--green); font-weight: 400; font-family: var(--font-title); }

.filter-bar {
  display: flex;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 12px;
  align-items: center;
  color: #888;
}

.filter-bar a { color: #888; padding: 2px 9px; border: 1px solid #333; text-decoration: none; }
.filter-bar a:hover, .filter-bar a.active { color: var(--white); background: var(--green); border-color: var(--green); }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header { padding: 8px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.search-header h1 { font-size: 15px; color: var(--white); font-weight: bold; }
.search-header span { color: var(--green); }

.search-wrapper { position: relative; }

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--black2);
  border: 1px solid var(--green);
  z-index: 999;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}

.search-dropdown.active { display: block; }

.search-dropdown-item {
  padding: 7px 11px;
  border-bottom: 1px solid #222;
  cursor: pointer;
  font-size: 12px;
  color: #ccc;
}

.search-dropdown-item:hover { background: var(--black3); color: var(--green); }

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.download-box {
  background: var(--black2);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}

.download-box h2 { color: var(--green); font-size: 20px; margin-bottom: 12px; font-family: var(--font-title); font-weight: 400; }

.download-countdown { text-align: center; padding: 24px 0; }

.countdown-num {
  font-size: 72px;
  font-weight: bold;
  color: var(--green);
  line-height: 1;
  display: block;
  font-family: Georgia, serif;
}

.countdown-label { font-size: 13px; color: #888; margin-top: 8px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border: 1px solid #333; }
.lightbox-close { position: fixed; top: 14px; right: 18px; font-size: 30px; color: var(--white); cursor: pointer; z-index: 10000; }
.lightbox-close:hover { color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--black2);
  border-top: 1px solid var(--border);
  padding: 22px 0 14px;
  margin-top: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.footer-col-title {
  color: var(--white);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.footer-link-list { list-style: none; }
.footer-link-list li { padding: 2px 0; }
.footer-link-list li a { color: var(--green); font-size: 12px; text-decoration: none; }
.footer-link-list li a:hover { color: var(--green-light); }
.footer-link-list.with-bullet li::before { content: '○ '; color: #666; font-size: 10px; }

.official-quote { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 7px; }
.official-quote .qq { font-size: 20px; color: var(--white); font-family: Georgia, serif; line-height: 1; margin-top: -2px; }
.official-quote a { color: var(--green); font-size: 13px; font-style: italic; }

.subscribe-box { margin-top: 6px; }
.subscribe-box p { font-size: 12px; color: #ccc; margin-bottom: 6px; }
.subscribe-box .red { color: var(--red); font-weight: bold; }
.subscribe-box input[type="email"] {
  width: 100%;
  background: var(--black);
  border: 1px solid #333;
  color: var(--white);
  padding: 5px 9px;
  font-size: 12px;
  font-family: var(--font-body);
  margin-top: 4px;
  outline: none;
}
.subscribe-box input[type="email"]:focus { border-color: var(--green); }

.btn-subscribe {
  background: var(--black3);
  border: 1px solid #555;
  color: var(--white);
  padding: 4px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  margin-bottom: 4px;
}
.btn-subscribe:hover { background: var(--green); border-color: var(--green); }

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 10px;
  font-size: 11px;
  color: #666;
  line-height: 1.9;
}
.footer-bottom a { color: var(--green); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404 h1 { font-size: 80px; color: var(--green); font-family: Georgia, serif; line-height: 1; }
.error-404 p { color: #888; font-size: 14px; margin: 14px 0; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--green);
  z-index: 9999;
  transition: width 0.1s;
}

/* ============================================================
   DARK MODE TOGGLE
   ============================================================ */
.theme-toggle {
  position: fixed;
  bottom: 18px; right: 18px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 15px;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-orange { color: var(--orange); }
.text-gray   { color: #888; }
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.bold  { font-weight: bold; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .site-inner { flex-direction: column; }
  .sidebar { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .post-item-title { font-size: 17px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .countdown-num { font-size: 52px; }
}

/* ============================================================
   POST INFO TABLE
   ============================================================ */
.post-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 13px;
}

.post-info-table tr {
  border-bottom: 1px solid #2a2a2a;
}

.post-info-table td {
  padding: 6px 10px;
  vertical-align: top;
}

.post-info-table td:first-child {
  color: #888;
  width: 110px;
  font-weight: bold;
  white-space: nowrap;
}

.post-info-table td:last-child {
  color: #ddd;
}

/* Section Headings */
.section-heading {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  margin: 12px 0 8px;
}

.post-content h2 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 14px 0 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid #2a2a2a;
}

.post-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ddd;
  margin: 10px 0 5px;
}
/* ============================================================
   SCROLL TO TOP BUTTON — Phase 6
   ============================================================ */
#scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 65px;
  right: 18px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  z-index: 498;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.2s;
}
#scroll-top-btn:hover { background: var(--green-dark); }
#scroll-top-btn.visible { display: block; }

/* ============================================================
   POST INFO TABLE
   ============================================================ */
.post-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 13px;
}
.post-info-table tr { border-bottom: 1px solid #2a2a2a; }
.post-info-table td { padding: 6px 10px; vertical-align: top; }
.post-info-table td:first-child {
  color: #888;
  width: 110px;
  font-weight: bold;
  white-space: nowrap;
}
.post-info-table td:last-child { color: #ddd; }

/* ============================================================
   SECTION HEADINGS — SEO
   ============================================================ */
.section-heading {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  margin: 12px 0 8px;
}
.post-content h2 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 14px 0 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid #2a2a2a;
}
.post-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ddd;
  margin: 10px 0 5px;
}
.post-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin: 8px 0 4px;
}

/* ============================================================
   SPEED OPTIMIZATIONS
   ============================================================ */
img { content-visibility: auto; }
.post-list { contain: content; }

body.light-mode {
  --black:     #ffffff;
  --black2:    #f5f5f5;
  --black3:    #eeeeee;
  --white:     #1a1a1a;
  --border:    #dddddd;
  --gray-dark: #555555;
  background:  #ffffff;
  color:       #1a1a1a;
}

body.light-mode .sidebar-nav a { color: var(--green); }
body.light-mode .post-item-title a { color: var(--green); }
body.light-mode .post-item-excerpt { color: #333; }
body.light-mode .post-item-meta { color: #666; }
body.light-mode #site-header { background: #ffffff; border-bottom: 1px solid #ddd; }
body.light-mode #site-footer { background: #f0f0f0; }
body.light-mode .footer-bottom { color: #555; }
body.light-mode .header-search input[type="text"] { background: #fff; border-color: #ccc; color: #333; }
body.light-mode .notice-box { color: #333; }
body.light-mode .post-content { color: #222; }
body.light-mode .download-info { color: #333; }
body.light-mode .related-list li a { color: var(--green); }
body.light-mode .promo-block { background: #f9f9f9; }
body.light-mode .post-info-table td:first-child { color: #555; }
body.light-mode .post-info-table td:last-child { color: #222; }
body.light-mode .post-info-table tr { border-bottom: 1px solid #ddd; }