/* Halaman konten XP Down Detector — mengikuti tema XP (jendela biru/beige) */
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #1a1a1a;
  background: #3a6ea5 url("../assets/img/wallpaper.jpg") center/cover no-repeat fixed;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 10px;
}

.page-window {
  width: 100%;
  max-width: 860px;
  background: #ece9d8;
  border: 1px solid #0831d9;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* Titlebar ala XP */
.page-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #094ade 95%, #0137c8 100%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}
.ptb-icon { font-size: 14px; }
.ptb-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptb-buttons { display: flex; gap: 3px; }
.ptb-buttons i { width: 16px; height: 14px; border-radius: 3px; display: inline-block; cursor: pointer; background: radial-gradient(circle at 30% 30%, #7ba2e8, #2b5cd5 60%, #1c3fa8); }
.ptb-buttons i:hover { filter: brightness(1.2); }
.ptb-close { background: radial-gradient(circle at 30% 30%, #f3a093, #e04a34 60%, #a72c1a) !important; }

/* Status jendela: maximize & minimize */
body.maximized-pagewin { padding: 0; }
body.maximized-pagewin .page-window { max-width: 100%; border-radius: 0; min-height: 100vh; }
.page-window.hidden-pagewin { display: none; }
.pagewin-task {
  position: fixed; left: 12px; bottom: 12px; z-index: 9998;
  background: linear-gradient(180deg, #3f8cf3, #0b50d6);
  border: 1px solid #0831d9; border-radius: 4px;
  color: #fff; padding: 6px 14px; font-size: 12px;
  cursor: pointer; box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}
.pagewin-task.hidden-pagewin { display: none; }

/* Menubar navigasi */
.page-menubar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px 6px;
  background: #ece9d8;
  border-bottom: 1px solid #d4d0c8;
}
.page-menubar a {
  padding: 4px 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 11px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.page-menubar a:hover { background: #316ac5; color: #fff; }
.page-menubar .menubar-cta { margin-left: auto; border: 1px solid #7f9db9; background: linear-gradient(180deg, #fbfbfb, #e9e6d8); font-weight: bold; }

/* Konten */
.page-content {
  background: #fff;
  border-top: 1px solid #b8c8de;
  padding: 18px 22px 24px;
  min-height: 320px;
}
.page-content h1 { font-size: 21px; margin: 6px 0 10px; color: #0c2c6b; }
.page-content h2 { font-size: 16px; margin: 20px 0 8px; color: #0c2c6b; border-bottom: 1px solid #dfe6f4; padding-bottom: 3px; }
.page-content h3 { font-size: 14px; margin: 14px 0 6px; color: #123c78; }
.page-content p, .page-content li { line-height: 1.65; }
.page-content a { color: #0b3cc1; }
.page-content code { background: #f3f2ec; border: 1px solid #d4d0c8; padding: 1px 4px; border-radius: 3px; font-size: 12px; }

.page-intro { color: #444; border-left: 3px solid #3a6ea5; padding-left: 10px; }

.breadcrumb { font-size: 11px; color: #666; margin-bottom: 10px; }
.breadcrumb a { color: #0b3cc1; text-decoration: none; }

.post-meta { color: #777; font-size: 11px; margin-bottom: 12px; }
.post-list { display: grid; gap: 12px; }
.post-card {
  border: 1px solid #b8c8de;
  background: linear-gradient(180deg, #f4f6fb, #eef1f8);
  border-radius: 3px;
  padding: 12px 14px;
}
.post-card h2 { font-size: 15px; margin: 0 0 4px; border: none; }
.post-card h2 a { text-decoration: none; color: #0c2c6b; }
.post-card h2 a:hover { text-decoration: underline; }
.post-more { font-size: 12px; text-decoration: none; font-weight: bold; }

.post-body ul, .post-body ol { padding-left: 22px; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 10px 0; }
.svc-table th, .svc-table td, .post-body th, .post-body td { border: 1px solid #b8c8de; padding: 5px 8px; text-align: left; }
.post-body th { background: #dfe6f4; }

.svc-links { columns: 2; }
.svc-links li { margin: 3px 0; }
@media (max-width: 560px) { .svc-links { columns: 1; } }

.svc-tips { margin: 10px 0; }
.svc-tips li { margin: 6px 0; line-height: 1.55; }
.svc-peers { margin: 18px 0 6px; }
.svc-peer-links { display: flex; flex-wrap: wrap; gap: 10px; }

.svc-hero {
  border: 1px solid #b8c8de;
  background: linear-gradient(180deg, #f4f6fb, #dfe6f4);
  border-radius: 3px;
  padding: 12px 14px;
  margin: 10px 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.svc-live { flex: 1; min-width: 220px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1f9b1f; margin-right: 4px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.btn-xp {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  background: linear-gradient(180deg, #fbfbfb, #e9e6d8);
  color: #1a1a1a !important;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-xp:hover { background: #dfeaf9; }

.post-cta {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px dashed #7f9db9;
  background: #f6f8fd;
  border-radius: 3px;
  text-align: center;
}
.post-cta p { margin: 0 0 8px; font-weight: bold; color: #0c2c6b; }

.ad-slot {
  margin: 16px 0;
  min-height: 90px;
  border: 1px dashed #b8c8de;
  background: repeating-linear-gradient(45deg, #fafbfe, #fafbfe 12px, #f1f4fa 12px, #f1f4fa 24px);
  border-radius: 3px;
}

/* Unit iklan AdSense yang sebenarnya */
.ad-box { margin: 16px 0; min-height: 120px; }
.ad-box ins.adsbygoogle { display: block; min-height: 120px; background: #fff; border: 1px solid #d4d0c8; }
.ad-label {
  display: block; color: #999; font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px;
}

/* Formulir kontak */
.contact-form { max-width: 480px; display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-weight: bold; font-size: 12px; margin-top: 6px; }
.contact-form input, .contact-form textarea {
  border: 1px solid #7f9db9;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  border-radius: 0;
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.cf-status { min-height: 18px; font-size: 12px; }
.cf-status.error { color: #a72c1a; }

/* Footer */
.page-footer { background: #ece9d8; border-top: 1px solid #d4d0c8; padding: 10px 16px 12px; }
.footer-links { font-size: 11px; margin-bottom: 4px; }
.footer-links a { color: #0b3cc1; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 10px; color: #777; }

/* Banner persetujuan cookie */
.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 840px;
  margin: 0 auto;
  background: #ece9d8;
  border: 1px solid #7f9db9;
  border-radius: 4px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  z-index: 9999;
  font-size: 12px;
}
.consent-banner.hidden { display: none; }
.consent-text { flex: 1; min-width: 240px; }
.consent-text p { margin: 4px 0 0; line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; }
.consent-btn {
  border: 1px solid #7f9db9;
  background: linear-gradient(180deg, #fbfbfb, #e9e6d8);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
}
.consent-btn.primary { background: linear-gradient(180deg, #3f8cf3, #0b50d6); color: #fff; border-color: #0831d9; }

@media (max-width: 640px) {
  body { padding: 8px 4px; }
  .page-content { padding: 14px; }

  /* Menubar: tautan lebih besar agar mudah disentuh, CTA tetap tampil */
  .page-menubar { gap: 0; }
  .page-menubar a { padding: 9px 10px; font-size: 12px; }
  .page-menubar .menubar-cta { margin-left: 0; width: 100%; text-align: center; }

  .ptb-buttons i { width: 22px; height: 20px; }

  /* Tabel lebar (perbandingan layanan, dll) bisa digeser horizontal */
  .post-body table, .svc-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .btn-xp { padding: 10px 16px; font-size: 13px; }

  /* 16px mencegah auto-zoom iOS saat fokus ke input */
  .contact-form input, .contact-form textarea { font-size: 16px; }

  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}
