/**
 * Flying Side Out (Drawer Sidebar) Styles
 * News Steam Plus by Rifan Muazin (https://gig.web.id)
 */

:root {
	--flyout-sidebar-width: 340px;
}

/* Site Logo max-width */
.site-logo img,
.custom-logo-link img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Hamburger Trigger Button in Header ("Tombol Garis Tumpuk Tiga") */
.flying-side-trigger-wrap {
	display: inline-flex;
	align-items: center;
	align-self: center;
}

.flying-side-trigger-wrap.flyout-btn-left {
	margin-right: 14px;
}

.flying-side-trigger-wrap.flyout-btn-right {
	margin-left: 12px;
}

.flying-side-trigger-btn {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 38px;
	padding: 7px;
	background: transparent;
	border: 1px solid var(--border-clr, #e0e0e0);
	border-radius: var(--radius, 4px);
	cursor: pointer;
	transition: all 0.25s ease;
	outline: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flying-side-trigger-btn:hover,
.flying-side-trigger-btn:focus {
	background: var(--primary-color, #ff9d23);
	border-color: var(--primary-color, #ff9d23);
	box-shadow: 0 2px 8px rgba(255, 157, 35, 0.35);
}

.flying-side-trigger-btn .fly-bar {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--clr-text, #333333);
	border-radius: 2px;
	transition: all 0.25s ease;
}

.flying-side-trigger-btn:hover .fly-bar,
.flying-side-trigger-btn:focus .fly-bar {
	background-color: #ffffff;
}

/* Flying Side Out Drawer Panel */
.flying-side-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	width: var(--flyout-sidebar-width, 340px);
	max-width: 88vw;
	background: #ffffff;
	z-index: 9999999;
	box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
	transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s ease;
	display: flex;
	flex-direction: column;
	visibility: hidden;
}

.flying-side-drawer.flying-side-left {
	left: 0;
	transform: translateX(-100%);
}

.flying-side-drawer.flying-side-right {
	right: 0;
	transform: translateX(100%);
}

.flying-side-drawer.is-active {
	visibility: visible;
	transform: translateX(0);
}

/* Drawer Header */
.flying-side-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #191e24;
	color: #ffffff;
	border-bottom: 3px solid var(--primary-color, #ff9d23);
	flex-shrink: 0;
}

.flying-side-drawer-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.flying-side-drawer-title i {
	color: var(--primary-color, #ff9d23);
	font-size: 1rem;
}

.flying-side-close-btn {
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #ffffff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
}

.flying-side-close-btn:hover,
.flying-side-close-btn:focus {
	background: var(--primary-color, #ff9d23);
	color: #ffffff;
	transform: rotate(90deg);
}

/* Drawer Body & Custom Scrollbar */
.flying-side-drawer-body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 22px 20px;
	-webkit-overflow-scrolling: touch;
}

.flying-side-drawer-body::-webkit-scrollbar {
	width: 5px;
}

.flying-side-drawer-body::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.flying-side-drawer-body::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.flying-side-drawer-body::-webkit-scrollbar-thumb:hover {
	background: var(--primary-color, #ff9d23);
}

/* Widgets inside Flying Drawer */
.flying-side-drawer-body .widget {
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px dashed var(--border-clr, #e0e0e0);
}

.flying-side-drawer-body .widget:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.flying-side-drawer-body .widget-title {
	font-size: 1.05rem;
	margin-top: 0;
	margin-bottom: 14px;
	position: relative;
	padding-bottom: 8px;
	color: #1a1e24;
}

.flying-side-drawer-body .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 35px;
	height: 2px;
	background: var(--primary-color, #ff9d23);
}

/* Fallback Menu & Search */
.flying-side-fallback .widget_search {
	margin-bottom: 20px;
}

.flying-side-fallback .search-form {
	display: flex;
	width: 100%;
}

.flying-side-fallback .search-form input[type="search"] {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 3px 0 0 3px;
	outline: none;
}

.flying-side-fallback .search-form button[type="submit"] {
	padding: 8px 14px;
	background: var(--primary-color, #ff9d23);
	color: #fff;
	border: none;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
}

.flying-side-fallback-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.flying-side-fallback-menu li {
	margin-bottom: 6px;
}

.flying-side-fallback-menu li a {
	display: block;
	padding: 9px 12px;
	border-radius: 4px;
	color: var(--clr-text, #333);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	background: #f7f8fa;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.flying-side-fallback-menu li a:hover {
	background: #eceef1;
	border-left-color: var(--primary-color, #ff9d23);
	color: var(--primary-color, #ff9d23);
	padding-left: 16px;
}

/* Drawer Backdrop Overlay */
.flying-side-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 9999990;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.flying-side-backdrop.is-active {
	opacity: 1;
	visibility: visible;
}

body.flying-side-open {
	overflow: hidden !important;
}
