/* =========================================================================
   BERITA LANGIT & JAPRI PAY — GLOBAL APP STYLESHEET (style.css)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-blue: #1d35bb;
  --primary-gradient: linear-gradient(135deg, #1d35bb 0%, #2b44d4 60%, #3b57ee 100%);
  --dark-navy-gradient: linear-gradient(135deg, #090e34 0%, #1e3a8a 60%, #1d35bb 100%);
  --bg-body: #f1f5f9;
  --bg-app: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --card-bg: #ffffff;
  --accent-emerald: #10b981;
  --accent-gold: #fbbf24;
  --accent-rose: #f43f5e;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace !important;
}

.font-arabic-quote {
  font-family: 'Amiri', serif !important;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
}

body {
  display: flex;
  justify-content: center;
}

/* =========================================================================
   CONTAINER APP & HEADER ROYAL BLUE
   ========================================================================= */
.app-shell, .app-screen {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 6rem;
}

.topbar, .header-japri {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 53, 187, 0.2);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.brand img.logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand .title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.topbar-spacer { flex: 1; }

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-pill:hover { background: rgba(255, 255, 255, 0.25); }

.user-pill .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0f172a;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}

.user-name, .user-name a, .user-link {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold) !important;
  text-decoration: none;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  margin-right: 6px;
}

/* =========================================================================
   CATEGORY SCROLL BAR
   ========================================================================= */
.catbar, .category-scroll {
  position: sticky;
  top: 52px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catbar::-webkit-scrollbar, .category-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-light);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cat-pill:hover { background: #f8fafc; color: var(--text-main); }

.cat-pill.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(29, 53, 187, 0.25);
}

/* =========================================================================
   CLEAN FINTECH CARDS & CONTENT
   ========================================================================= */
.content, .container {
  width: 100%;
  padding: 12px;
  margin: 0 auto;
}

.clean-card, .glass.card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-bottom: 12px;
}

.clean-card:hover, .glass.card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.12);
}

/* Tab Switcher Index */
.tab-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tab-btn.is-active {
  background: #ffffff;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Article List Grid (Index) */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.article-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-light);
}

.article-card-body {
  padding: 12px;
}

.article-card-title {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.article-card-title a {
  text-decoration: none;
  color: inherit;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  align-items: center;
}

.badge-reward-share {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

/* =========================================================================
   DETAIL ARTIKEL (artikel.php)
   ========================================================================= */
.article-header-box {
  padding: 16px;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.kop-title {
  font-size: 18px;
  font-weight: 900;
  color: #1e3a8a; /* Diubah menjadi Biru Navy */
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.article-body {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  padding: 16px;
  word-wrap: break-word;
}

.article-body p { margin: 0 0 14px; text-align: justify; }
.article-body img { width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.article-body blockquote, .quote-highlight-box {
  background: #f0fdf4;
  border-left: 4px solid var(--accent-emerald);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px 0;
  font-style: italic;
  color: #065f46;
  font-weight: 600;
}

/* Navigasi Paginasi Halaman Artikel */
.nav-ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 53, 187, 0.25);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
}

.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Related Slider */
#relWrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 12px;
  scrollbar-width: none;
}

#relWrap::-webkit-scrollbar { display: none; }

.rel-card {
  min-width: 200px;
  width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.rel-card a.rel-img img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.rel-panel {
  padding: 8px 10px;
}

.rel-panel a {
  color: #0f172a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =========================================================================
   SPEED DIAL FLOATING ACTION BUTTON (FAB)
   ========================================================================= */
.fab-wrap {
  position: fixed;
  right: max(1rem, calc(50% - 200px));
  bottom: 1.5rem;
  z-index: 60;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 53, 187, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover { transform: scale(1.06); }
.fab:active { transform: scale(0.92); }

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: absolute;
  right: 0;
  bottom: 66px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-open .fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 1.25rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.fab-item:hover { background: #1e293b; transform: translateX(-3px); }
.fab-item.item-post-glow {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid #6ee7b7;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 20px 16px 8px;
  text-align: center;
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.badge-legal {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.wa-cs-btn {
  background: #25d366;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.footer-info {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-info a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
}

.footer-nav-links {
  display: flex;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-blue);
}

.footer-nav-links a {
  text-decoration: none;
  color: inherit;
}