/* [17 Okt 2026] Header publik desktop v2 (layout/header-publik.blade.php). Kelas berprefiks dex-pb-.
   Fixed di atas (seperti navbar lama yang absolute menimpa konten), latar blur, bayangan setelah digulir.
   Hanya >= 992px; di bawahnya navbar lama tetap dipakai. */
.dex-pb {
	--pb-tinggi: 68px;
	--pb-bg: rgba(255, 255, 255, .82);
	--pb-garis: rgba(15, 23, 42, .08);
	--pb-teks: #0F172A;
	--pb-teks-2: #475569;
	--pb-hover: rgba(15, 23, 42, .05);
	--pb-aksen: #2563EB;
	--pb-panel: #FFFFFF;
	display: none;
	position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
	height: var(--pb-tinggi);
	background: var(--pb-bg);
	border-bottom: 1px solid transparent;
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.darkmode-page .dex-pb {
	--pb-bg: rgba(11, 18, 32, .82);
	--pb-garis: rgba(148, 163, 184, .16);
	--pb-teks: #E2E8F0;
	--pb-teks-2: #94A3B8;
	--pb-hover: rgba(148, 163, 184, .12);
	--pb-aksen: #60A5FA;
	--pb-panel: #0F172A;
}
.dex-pb.tergulir { border-bottom-color: var(--pb-garis); box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
@media (min-width: 992px) {
	.dex-pb { display: block; }
	/* navbar lama disembunyikan hanya bila header baru ada */
	.dex-pb ~ nav.navbar.navbar-1,
	body.dex-pb-aktif #main > nav.navbar.navbar-1 { display: none !important; }
}
.dex-pb a { text-decoration: none; }
.dex-pb-wadah { display: flex; align-items: center; gap: 28px; max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 32px; }
.dex-pb-logo { flex: 0 0 auto; display: flex; align-items: center; overflow: hidden; --hb-logo: 58px; }
.dex-pb-logo img {
	width: auto; height: var(--hb-logo);
	margin: calc(var(--hb-logo) * -.13) calc(var(--hb-logo) * -.30) calc(var(--hb-logo) * -.24) calc(var(--hb-logo) * -.28);
}
.dex-pb-logo img.dex-pb-gelap {
	height: calc(var(--hb-logo) * .7575);
	margin: calc(var(--hb-logo) * -.0682) calc(var(--hb-logo) * -.1303) calc(var(--hb-logo) * -.0788) calc(var(--hb-logo) * -.1129);
}
.dex-pb .dex-pb-gelap, body.darkmode-page .dex-pb .dex-pb-terang { display: none !important; }
body.darkmode-page .dex-pb .dex-pb-gelap { display: inline-block !important; }
body.darkmode-page .dex-pb .dex-pb-logo img.dex-pb-gelap { display: block !important; }

.dex-pb-nav { display: flex; flex: 1 1 auto; align-items: center; gap: 4px; min-width: 0; }
.dex-pb-link {
	display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px;
	background: transparent; color: var(--pb-teks) !important; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.dex-pb-link:hover, .dex-pb-link:focus-visible, .dex-pb-menu.buka > .dex-pb-link { background: var(--pb-hover); outline: none; }
.dex-pb-link.aktif { color: var(--pb-aksen) !important; }
.dex-pb-link .fa-angle-down { font-size: 13px; opacity: .7; transition: transform .2s ease; }
.dex-pb-menu.buka .fa-angle-down { transform: rotate(180deg); }

.dex-pb-menu { position: relative; }
.dex-pb-panel {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 2; min-width: 300px; padding: 8px;
	border: 1px solid var(--pb-garis); border-radius: 16px; background: var(--pb-panel);
	box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dex-pb-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dex-pb-menu.buka > .dex-pb-panel { opacity: 1; visibility: visible; transform: none; }
.dex-pb-panel-kanan { left: auto; right: 0; min-width: 200px; }
.dex-pb-panel > a, .dex-pb-panel > button {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
	background: transparent; color: var(--pb-teks) !important; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.dex-pb-panel > a:hover, .dex-pb-panel > a:focus-visible, .dex-pb-panel > button:hover, .dex-pb-panel > button:focus-visible { background: var(--pb-hover); outline: none; }
.dex-pb-panel > button.aktif { color: var(--pb-aksen) !important; font-weight: 700; }
.dex-pb-panel b { display: block; font-size: 14px; font-weight: 700; }
.dex-pb-panel small { display: block; margin-top: 1px; color: var(--pb-teks-2); font-size: 12px; }
.dex-pb-panel .flag-icon { flex: 0 0 22px; width: 22px !important; height: 16px !important; line-height: 16px; border-radius: 3px; background-size: cover; box-shadow: 0 0 0 1px var(--pb-garis); }
.dex-pb-ikon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.dex-pb-ikon.biru { background: rgba(37, 99, 235, .1); color: #2563EB; }
.dex-pb-ikon.hijau { background: rgba(5, 150, 105, .1); color: #059669; }
.dex-pb-ikon.ungu { background: rgba(124, 58, 237, .1); color: #7C3AED; }
.dex-pb-ikon.oranye { background: rgba(234, 88, 12, .1); color: #EA580C; }
.dex-pb-lencana { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(5, 150, 105, .12); color: #059669; font-size: 10.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }

.dex-pb-kanan { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.dex-pb-event {
	display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border: 1px solid rgba(220, 38, 38, .25); border-radius: 999px;
	background: rgba(220, 38, 38, .06); color: var(--pb-teks) !important; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.dex-pb-event:hover { background: rgba(220, 38, 38, .1); }
.dex-pb-live { padding: 2px 8px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; animation: dex-pb-denyut 1.6s ease-in-out infinite; }
@keyframes dex-pb-denyut { 50% { opacity: .65; } }
.dex-pb-ikonbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--pb-garis); border-radius: 10px;
	background: transparent; color: var(--pb-teks-2); font-size: 15px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.dex-pb-ikonbtn:hover, .dex-pb-ikonbtn:focus-visible, .dex-pb-menu.buka > .dex-pb-ikonbtn { background: var(--pb-hover); color: var(--pb-teks); outline: none; }
.dex-pb-ikonbtn .flag-icon { width: 22px !important; height: 16px !important; line-height: 16px; border-radius: 3px; background-size: cover; }
.dex-pb-ikonbtn .fa-angle-down { font-size: 12px; }
.dex-pb-tombol {
	display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
	color: var(--pb-teks) !important; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s ease, transform .15s ease;
}
.dex-pb-tombol:hover { background: var(--pb-hover); }
.dex-pb-tombol.utama { background: #2563EB; color: #fff !important; box-shadow: 0 6px 18px rgba(37, 99, 235, .28); }
.dex-pb-tombol.utama:hover { background: #1D4ED8; transform: translateY(-1px); }

@media (max-width: 1199px) {
	.dex-pb-wadah { gap: 16px; padding: 0 20px; }
	.dex-pb-event span:last-child { display: none; }
	.dex-pb-event { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .dex-pb *, .dex-pb { animation: none !important; transition: none !important; } }
