/* =====================================================
   PedangJP — Neon Dark Yellow Theme
   Mobile-First, Lightweight
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600&display=swap');

:root {
  --yellow: #FFE600;
  --yellow-dim: #cbb800;
  --yellow-glow: rgba(255,230,0,0.35);
  --bg: #080808;
  --bg2: #101010;
  --card: #141414;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-dim: #888;
  --radius: 10px;
  --font-brand: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-img {
  height: 58px; /* Sedikit lebih besar agar makin terlihat jelas */
  width: auto;
  max-width: 100%; /* Agar tidak overflow di layar sangat kecil */
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,230,0,0.4));
  image-rendering: -webkit-optimize-contrast; /* Membuat logo PNG lebih tajam */
}

.header-nav { display: flex; gap: 8px; }

.btn-outline {
  padding: 6px 14px;
  border: 1.5px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--yellow-glow);
  box-shadow: 0 0 10px var(--yellow-glow);
}
.btn-solid {
  padding: 6px 14px;
  border: 1.5px solid var(--yellow);
  background: var(--yellow);
  color: #000;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-solid:hover {
  box-shadow: 0 0 14px var(--yellow-glow);
  transform: translateY(-1px);
}

/* ── HERO INFO (Banner) ─────────────────────────── */
.hero-info {
  width: 100%;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  overflow: hidden;
  position: relative;
}
.hero-link {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}
.hero-info img { 
  width: 100%; 
  max-width: 1200px; 
  height: auto;
  max-height: 280px;
  object-fit: contain; 
  display: block;
  margin: 0 auto;
}
.banner-placeholder {
  color: var(--text-dim);
  font-size: 12px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 12px 24px;
  margin: 8px;
  text-align: center;
  width: calc(100% - 16px);
}

/* ── MAIN CONTAINER ─────────────────────────────── */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

/* ── CLOCK CARD ─────────────────────────────────── */
.clock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.clock-time {
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 0 16px var(--yellow-glow);
  letter-spacing: 3px;
}
.clock-date { font-size: 12px; color: var(--text-dim); }
.clock-tz { font-size: 11px; color: var(--yellow-dim); letter-spacing: 1px; }

/* ── MAIN CARD ──────────────────────────────────── */
.main-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.main-card h2 {
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ── SELECT / FORM ──────────────────────────────── */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FFE600' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow-glow); }

/* ── TIPE ANGKA (RADIO TABS) ────────────────────── */
.tipe-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.tipe-group input[type="radio"] { display: none; }
.tipe-group label {
  display: block;
  text-align: center;
  padding: 8px 4px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-dim);
}
.tipe-group input[type="radio"]:checked + label {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255,230,0,0.08);
  box-shadow: 0 0 8px var(--yellow-glow);
}

/* ── GENERATE BUTTON ────────────────────────────── */
.btn-generate {
  width: 100%;
  padding: 14px;
  background: var(--yellow);
  border: none;
  border-radius: 10px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  letter-spacing: 1px;
  transition: box-shadow .2s, transform .15s;
  text-transform: uppercase;
}
.btn-generate:hover {
  box-shadow: 0 0 20px var(--yellow-glow);
  transform: translateY(-1px);
}
.btn-generate:active { transform: translateY(0); }

/* ── RESULT CARD ────────────────────────────────── */
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
  display: none;
  animation: fadeIn .4s ease;
}
.result-card.show { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.result-pasaran {
  font-size: 13px;
  color: var(--yellow-dim);
  margin-bottom: 12px;
}
.result-angka {
  font-family: var(--font-brand);
  font-size: 42px;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 24px var(--yellow-glow), 0 0 48px rgba(255,230,0,.15);
  letter-spacing: 8px;
  text-align: center;
  margin-bottom: 6px;
}
.result-tipe {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ── PENERAWANGAN ────────────────────────────────── */
.visi-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.visi-list { list-style: none; }
.visi-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.visi-list li:last-child { border-bottom: none; }
.visi-list li::before {
  content: '✦';
  color: var(--yellow);
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 3px;
}

/* ── ARTIKEL SEO ─────────────────────────────────── */
.article-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
}
.article-section h1 {
  font-family: var(--font-brand);
  font-size: 16px;
  color: var(--yellow);
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-section h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 6px;
}
.article-section p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ── DISCLAIMER ──────────────────────────────────── */
.disclaimer {
  background: rgba(255,230,0,0.04);
  border: 1px solid rgba(255,230,0,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}
.disclaimer strong { color: var(--yellow-dim); }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: #0c0c0c;
  border-top: 1px solid var(--border);
  padding: 20px 16px 12px;
}
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.footer-brand {
  margin-bottom: 6px;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,230,0,0.4));
}
.footer-tagline { font-size: 11px; color: var(--text-dim); margin-bottom: 14px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-copy {
  font-size: 11px;
  color: #444;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

/* ── STICKY FOOTER NAV ───────────────────────────── */
.sticky-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  backdrop-filter: blur(8px);
}
.sticky-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  gap: 3px;
  transition: color .2s;
}
.sticky-nav a.active, .sticky-nav a:hover { color: var(--yellow); }
.sticky-nav svg { width: 20px; height: 20px; }

/* Offset body so content isn't hidden behind sticky nav */
body { padding-bottom: 62px; }

/* ── RESPONSIVE DESKTOP ──────────────────────────── */
@media (min-width: 640px) {
  .clock-time { font-size: 36px; }
  .result-angka { font-size: 56px; }
  .hero-info img { max-height: 280px; }
  body { padding-bottom: 0; }
  .sticky-nav { display: none; }
}
