/* ============================================================
   PH-HEADER.CSS — Tambahkan di custom.css atau enqueue terpisah
   Style header persis seperti Pornhub.com
   ============================================================ */

/* ---- Reset header ---- */
#header, #header * { box-sizing: border-box; }
#header a { text-decoration: none; }
#header a:hover { text-decoration: none; }
.custom-logo-link img,
.logoWrapper img,
.navbar-brand img {
    width: auto !important;
    height: 55px !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
}
/* ============================================================
   #headerWrapper — baris utama hitam
   ============================================================ */
#headerWrapper {
	width: 100%;
	background-color: #0e0e0e;
	border-bottom: 1px solid #1a1a1a;
}

#headerContainer {
	height: 60px;
	width: 100%;
	max-width: 1323px;
	margin: 0 auto;
	padding: 0 16px;
	display: grid;
	grid-template-columns: 280px 1fr 235px;
	grid-column-gap: 10px;
	align-items: center;
}

/* Responsive: layar sedang */
@media (max-width: 1200px) {
	#headerContainer { grid-template-columns: 220px 1fr 200px; }
}
@media (max-width: 768px) {
	#headerContainer {
		grid-template-columns: auto 1fr auto;
		padding: 0 10px;
	}
}

/* ============================================================
   KOLOM KIRI: Hamburger + Logo
   ============================================================ */
#headerContainer .headerContainerColumn:first-child {
	display: flex;
	align-items: center;
}

#headerContainer .logo {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
}

/* Hamburger button */
#desktopNavigation {
	height: 60px;
	width: 44px;
	padding: 0;
	margin-right: 14px;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

#desktopNavigation .hamburgerIcon {
	color: #ff9000;
	font-size: 22px;
	line-height: 1;
	pointer-events: none;
}

#desktopNavigation:hover .hamburgerIcon {
	color: #ffaa33;
}

/* Logo wrapper */
.logoWrapper {
	display: flex;
	align-items: center;
}

.logoWrapper img {
	height: 38px;
	width: auto;
	display: block;
}

/* Logo teks fallback */
.site-logo-text,
.site-logo-text a {
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.5px;
	white-space: nowrap;
}

.site-logo-text a:hover { color: #ff9000; }

/* ============================================================
   KOLOM TENGAH: Search + Upload
   ============================================================ */
#headerContainer .withSearch {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Search wrapper */
.headerSearchWrapper {
	flex: 1;
	min-width: 0;
}

/* Search bar container */
#searchBarContainer {
	height: 37px;
	background-color: #252525;
	border-radius: 20px;
	display: grid;
	grid-template-columns: 44px 1fr;
	position: relative;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

#searchBarContainer:focus-within {
	box-shadow: 0 0 0 2px rgba(255,144,0,0.4);
}

/* Search icon / button kiri */
#btnSearch {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	width: 100%;
	height: 100%;
}

#btnSearch:hover { color: #ff9000; }
#btnSearch svg { pointer-events: none; }

/* Search fieldset reset */
#search_form fieldset.fs-nf {
	border: none;
	margin: 0;
	padding: 0;
}

/* Input teks */
#searchInput {
	width: 100%;
	height: 37px;
	background: transparent;
	border: none;
	outline: none;
	color: #fff;
	font-size: 14px;
	padding: 0 12px 0 0;
}

#searchInput::placeholder { color: #888; }

/* Upload icon buttons */
.uploadBtnContent {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.uploadBtnContent a {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c6c6c6;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	transition: color 0.15s;
}

.uploadBtnContent a:hover { color: #fff; }

/* Sembunyikan di mobile */
@media (max-width: 768px) {
	.uploadBtnContent { display: none; }
}

/* ============================================================
   KOLOM KANAN: User / Login
   ============================================================ */
#headerContainer .headerContainerColumn:last-child {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

#topRightProfileMenu {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Login button - bulat abu gelap */
#headerLoginLink.removeAdLink.signIn {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #151515;
	border-radius: 25px;
	padding: 8px 12px;
	color: #c6c6c6;
	cursor: pointer;
	transition: color 0.15s, background 0.15s;
}

#headerLoginLink.removeAdLink.signIn:hover {
	color: #fff;
	background-color: #222;
}

/* Profile dropdown */
.profileOptions {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: #0e0e0e;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	width: 280px;
	padding: 10px;
	z-index: 9999;
	box-shadow: 0 6px 20px rgba(0,0,0,0.8);
}

.profileOptions.open { display: block; }

#rightTopMenuSection {
	display: flex;
	gap: 0;
}

.topMenuButtons {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 5px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	border-radius: 8px;
	transition: background 0.15s;
}

.topMenuButtons:hover {
	background: #191919;
	color: #fff;
}

.topMenuButtons .iconHolder {
	width: 54px;
	height: 54px;
	background: #151515;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	transition: background 0.15s;
}

.topMenuButtons:hover .iconHolder { background: #252525; }

#signUpBtn .iconHolder svg { color: #ff9000; }

.topMenuButtons span { color: #fff; }

/* ============================================================
   #headerMenuContainer — NAV BAR BAWAH
   ============================================================ */
#headerMenuContainer {
	width: 100%;
	background: #0e0e0e;
	border-top: 1px solid #1a1a1a;
	border-bottom: 2px solid #181818;
}

#headerMainMenuInner {
	width: 100%;
}

#headerCampaignDiv {
	max-width: 1323px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Menu list */
#headerMainMenu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	height: 40px;
}

/* Tiap item menu */
#headerMainMenu > li {
	display: flex;
	align-items: stretch;
	position: relative;
}

/* Link menu */
#headerMainMenu > li > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	color: #9b9b9b;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	border-top: 1px solid transparent;
	border-left: 1px solid transparent;
	border-right: 1px solid transparent;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
	position: relative;
}

#headerMainMenu > li > a:hover {
	color: #fff;
	background: #191919;
	border-top-color: #252525;
	border-left-color: #252525;
	border-right-color: #252525;
}

/* Active — garis oranye bawah */
#headerMainMenu > li.current-menu-item > a,
#headerMainMenu > li.current-menu-ancestor > a,
#headerMainMenu > li > a.active {
	color: #fff;
	border-bottom-color: #ff9000;
}

/* Arrow dropdown */
#headerMainMenu > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0; height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-left: 5px;
	margin-top: 2px;
}

/* Submenu dropdown */
#headerMainMenu .sub-menu,
#headerMainMenu .dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #111;
	border: 1px solid #2a2a2a;
	border-top: 2px solid #ff9000;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	min-width: 180px;
	z-index: 9999;
	box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

#headerMainMenu > li:hover > .sub-menu,
#headerMainMenu > li:hover > .dropdown-menu {
	display: block;
}

#headerMainMenu .sub-menu li a,
#headerMainMenu .dropdown-menu li a {
	display: block;
	padding: 10px 16px;
	color: #c6c6c6;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

#headerMainMenu .sub-menu li a:hover,
#headerMainMenu .dropdown-menu li a:hover {
	background: #1e1e1e;
	color: #fff;
}

/* ============================================================
   ALERT BAR
   ============================================================ */
#abAlertWrapper {
	width: 100%;
	background: #1b1b1b;
	border-bottom: 1px solid #2a2a2a;
}

#abAlert {
	max-width: 1323px;
	margin: 0 auto;
	padding: 9px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	position: relative;
	color: #c6c6c6;
	font-size: 13px;
	text-align: center;
}

.abAlertIcon {
	color: #ff9000;
	font-size: 16px;
	flex-shrink: 0;
}

#abAlert a {
	color: #ff9000;
	text-decoration: none;
}

#abAlert a:hover { text-decoration: underline; }

#abAlertClose {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	padding: 0 6px;
	transition: color 0.15s;
}

#abAlertClose:hover { color: #fff; }

/* ============================================================
   LEFT MENU (slide-out)
   ============================================================ */
/* 1. Kondisi awal: Menu disembunyikan di luar layar kiri (-300px) */
/* Posisi awal: menu disembunyikan 300px ke kiri */
aside#leftMenu {
    position: fixed !important;
    top: 0 !important;
    left: -300px !important;
    width: 300px !important;
    height: 100vh !important;
    background: #0e0e0e !important;
    border-right: 1px solid #2a2a2a !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    transition: left 0.3s ease-in-out !important; /* Efek meluncur */
    display: block !important;
}

/* Saat class .open muncul via JavaScript, geser ke posisi 0 */
aside#leftMenu.open {
    left: 0 !important;
}

/* Gaya untuk area gelap (Overlay) */
#leftMenuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Hitam transparan */
    z-index: 99998;
}

#leftMenuOverlay.show {
    display: block;
}

#leftMenuScrollable { padding: 60px 0 30px; }

.leftMenuList {
	list-style: none;
	margin: 0;
	padding: 0;
}

.leftMenuList li a {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	color: #c6c6c6;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s, color 0.15s;
}

.leftMenuList li a:hover {
	background: #191919;
	color: #fff;
}

.leftMenuList li.current-menu-item > a { color: #ff9000; }

/* ============================================================
   MATIKAN ELEMEN LAMA KOLORTUBE YANG TIDAK TERPAKAI
   ============================================================ */
.body-gradient,
.bg-darken,
#wrapper-navbar,
.header-search-form,
.header-search-toggle {
	display: none !important;
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {
	#headerContainer {
		height: 52px;
	}

	#headerSearchWrapperFree,
	.headerSearchWrapper {
		display: none;
	}

	.withSearch {
		justify-content: flex-end;
	}

	#headerMainMenu > li > a {
		padding: 0 10px;
		font-size: 10px;
	}

	#headerMenuContainer {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	#headerMainMenu {
		min-width: max-content;
	}

	#abAlert { font-size: 11px; padding: 7px 40px 7px 16px; }
}
