/*
Theme Name: Bisnis Papua Pro - Cloned Portal Edition
Theme URI: https://bisnispapua.com
Author: Tim Redaksi & Engineering Bisnis Papua
Author URI: https://bisnispapua.com
Description: Tema Portal Berita Ekonomi, Bisnis & Investasi Papua Cloned 100% Identik dengan Website React Portal. Menggunakan Skema Warna Biru Utama #00c2ff, Pemotongan Gambar Unggulan Otomatis Presisi Uniform (Aspect Ratio 16:9 & 16:10), Auto-Rotating Ad Banner Engine (6.5s), 12 Zona Penempatan Iklan Resmi & Google AdSense, Kotak Rekomendasi 4 Produk Afiliasi Marketplace (Shopee & Tokopedia), Arsitektur Mobile-First 100% Responsif, Drawer Menu Navigasi HP, Tipografi Jelas & Tajam, dan Kustomisasi Warna Penuh.
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, magazine, grid-layout, custom-header, sticky-post, translation-ready, accessibility-ready, dark-mode, seo-friendly, custom-colors, full-color-palette, responsive-layout, mobile-first
Text Domain: bisnis-papua
*/

/* Core Color System & Dynamic CSS Variables - ELECTRIC BLUE #00c2ff */
:root {
  --bp-primary: #00c2ff;
  --bp-primary-dark: #008eb8;
  --bp-primary-deep: #055376;
  --bp-secondary: #0086b8;
  --bp-accent: #f59e0b;
  --bp-breaking-bg: #f59e0b;
  --bp-breaking-text: #020617;
  --bp-header-top-bg: #f1f5f9;
  --bp-header-top-text: #334155;
  --bp-body-bg: #f8fafc;
  --bp-card-bg: #ffffff;
  --bp-card-border: #e2e8f0;
  --bp-text-main: #0f172a;
  --bp-text-muted: #64748b;
  --bp-link-color: #0086b8;
  --bp-footer-bg: #0b1320;
  --bp-footer-text: #94a3b8;
  
  --bp-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bp-font-serif: 'Lora', Georgia, Cambria, 'Times New Roman', Times, serif;
}

.dark {
  --bp-body-bg: #070d18;
  --bp-card-bg: #0f172a;
  --bp-card-border: #1e293b;
  --bp-text-main: #f1f5f9;
  --bp-text-muted: #94a3b8;
  --bp-header-top-bg: #0f172a;
  --bp-header-top-text: #cbd5e1;
}

/* =========================================================================
   GLOBAL RESET & FULL MOBILE ANTI-OVERFLOW ARCHITECTURE
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--bp-font-sans);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bp-body-bg);
  color: var(--bp-text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* LOGO & ARTICLE TITLE COLOR UNIFORMITY ACROSS MOBILE & PC */
.brand-logo-pill, .site-logo-prefix {
  background-color: #00c2ff !important;
  color: #020617 !important;
  font-weight: 900 !important;
  border-radius: 0.5rem !important;
  letter-spacing: -0.025em !important;
}
.brand-logo-text, .site-logo-suffix {
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
}
.entry-title, .post-card-title, .hero-title, .article-title-text {
  color: var(--bp-text-main);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}
.entry-title a, .post-card-title a, .hero-title a {
  color: inherit;
  text-decoration: none;
}
.entry-title a:hover, .post-card-title a:hover, .hero-title a:hover {
  color: var(--bp-primary-dark);
}
.dark .entry-title a:hover, .dark .post-card-title a:hover, .dark .hero-title a:hover {
  color: var(--bp-primary);
}

/* ANTI-OVERFLOW CONTAINER SAFEGUARDS */
img, video, iframe, embed, object, table, canvas, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.widget-box, .sidebar-widget, aside, article, .single-article-content, .card-box, main {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

/* =========================================================================
   MANDATORY UNIFORM CROPPING FOR ALL NEWS IMAGES ACROSS THE THEME
   ========================================================================= */
.wp-post-image,
.featured-news-img,
.featured-image-box img,
.thumbnail-box img,
.bp-thumb-crop {
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Aspect Ratio Containers */
.aspect-16-9, .aspect-video {
  aspect-ratio: 16 / 9 !important;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.aspect-16-10 {
  aspect-ratio: 16 / 10 !important;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* =========================================================================
   MOBILE TYPOGRAPHY & READABILITY ENHANCEMENTS
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--bp-text-main);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bp-headline-fluid {
  font-size: clamp(1.25rem, 3.5vw + 0.6rem, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* Article Reading Layout & High-Legibility Typography on Mobile */
.single-article-content {
  max-width: 75ch;
  color: var(--bp-text-main);
  font-size: 1.0625rem; /* 17px on mobile */
  line-height: 1.85;
}

@media (min-width: 640px) {
  .single-article-content {
    font-size: 1.125rem; /* 18px on desktop/tablet */
  }
}

.single-article-content p {
  margin-bottom: 1.5rem;
  color: inherit;
  overflow-wrap: break-word;
  word-break: break-word;
}

.single-article-content h2 {
  font-family: var(--bp-font-serif);
  color: var(--bp-text-main);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw + 0.5rem, 1.85rem);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.single-article-content h3 {
  font-family: var(--bp-font-serif);
  color: var(--bp-text-main);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw + 0.4rem, 1.5rem);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.single-article-content blockquote {
  border-left: 4px solid #00c2ff;
  background-color: #f0f9ff;
  padding: 1.1rem 1.25rem;
  font-style: italic;
  color: #0073a3;
  border-radius: 0.75rem;
  margin: 1.75rem 0;
  font-size: 1.05em;
  line-height: 1.7;
}

.dark .single-article-content blockquote {
  background-color: #082f49;
  color: #38bdf8;
}

.single-article-content img {
  border-radius: 1rem;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

/* =========================================================================
   RESPONSIVE TABLE WRAPPER (TOUCH-SCROLLABLE ON MOBILE)
   ========================================================================= */
.bp-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid var(--bp-card-border);
  background-color: var(--bp-card-bg);
}

.bp-table-responsive table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

.bp-table-responsive th,
.bp-table-responsive td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bp-card-border);
  font-size: 0.875rem;
}

/* =========================================================================
   RESPONSIVE EMBED / VIDEO CONTAINER
   ========================================================================= */
.bp-embed-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bp-embed-responsive iframe,
.bp-embed-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* =========================================================================
   AD PLACEMENT SAFEGUARD (ZERO HORIZONTAL SCROLL ON PHONES)
   ========================================================================= */
.bp-ad-wrapper {
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.25rem auto;
  text-align: center;
}

.bp-ad-wrapper ins.adsbygoogle,
.bp-ad-wrapper iframe,
.bp-ad-wrapper img {
  max-width: 100% !important;
  height: auto !important;
}

/* =========================================================================
   TOUCH TARGETS & MOBILE BUTTON SIZES (MIN 44px ACCESSIBILITY)
   ========================================================================= */
.bp-touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Reading Progress Bar (Fixed Top) */
#bp-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #00c2ff, #42d4ff, #00a2d8, #f59e0b);
  z-index: 999999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.8);
}

/* Turbo Instant Navigation Top Progress Bar */
#bp-turbo-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00c2ff, #38bdf8, #008eb8);
  z-index: 99999;
  transition: width 0.15s ease, opacity 0.25s ease;
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.8);
  pointer-events: none;
}

/* AUTO-ROTATING BANNER FADE TRANSITION */
.bp-auto-ad-slide {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.bp-auto-ad-slide.fade-out {
  opacity: 0;
  transform: scale(0.98);
}
.bp-auto-ad-slide.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Custom Scrollbar Utilities */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================================================
   MOBILE FLOATING ACTIONS & DRAWER ANIMATIONS
   ========================================================================= */
#bp-mobile-drawer {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#bp-mobile-drawer.translate-x-full {
  transform: translateX(100%);
  pointer-events: none;
}

#bp-mobile-drawer.translate-x-0 {
  transform: translateX(0);
  pointer-events: auto;
}

#bp-back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#bp-back-to-top.opacity-0 {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

#bp-back-to-top.opacity-100 {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
