/* =============================================
   CREATYPE LICENSE PAGE
   Styles for [creatype_license_list] shortcode.
   Bundled in plugin so no child-theme CSS is needed.
   ============================================= */

/* Hide the WordPress template page title on the license page
   (the <h1>License</h1> rendered by theme before post_content) */
article#brx-content.post-13713 > h1:first-of-type {
	display: none;
}

/* --- Main two-column layout (sidebar + content) --- */
.melek-license-bricks-layout {
	flex-direction: row !important;
	column-gap: var(--space-l);
	align-items: flex-start;
}

/* --- Left sidebar: accordion tab list --- */
#brxe-dcac11 {
	width: 300px;
	max-width: 300px;
	flex-shrink: 0;
	gap: 0 !important;
	position: sticky;
	top: var(--space-4xl);
}

/* --- Right content area --- */
#brxe-411f13 {
	flex: 1;
	min-width: 0;
	gap: 0 !important;
}

/* --- Sidebar accordion tab titles --- */
.lisensi-judul.brxe-block {
	flex-direction: row;
	align-items: center;
	gap: var(--space-m, 16px);
	padding: 12px 16px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lisensi-judul.brxe-block:hover {
	background-color: rgba(255, 255, 255, 0.03);
}

/* Active sidebar tab */
#brxe-dcac11 .lisensi-judul.open {
	background-color: var(--card, rgba(255, 255, 255, 0.05));
}

#brxe-dcac11 .lisensi-judul.open:hover {
	background-color: var(--card, rgba(255, 255, 255, 0.05));
}

/* Sidebar tab icons - fixed 18px */
#brxe-dcac11 .lisensi-judul .brxe-svg,
#brxe-dcac11 .lisensi-judul > svg {
	width: 18px;
	height: 18px;
	min-width: 18px;
	flex-shrink: 0;
}

/* Sidebar tab text */
#brxe-dcac11 .lisensi-judul .brxe-heading {
	font-size: var(--text-m, 16px);
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- Right-side duplicate accordion title (hidden on desktop) --- */
.brxe-fb9928 {
	display: none;
}

/* --- Page heading --- */
#brxe-e052e4 {
	font-size: var(--text-5xl) !important;
}

/* --- License type heading letter-spacing --- */
.brxe-04e223 {
	letter-spacing: normal !important;
}

/* --- Page wrapper: gap between heading and accordion layout --- */
.melek-license-bricks-page {
	display: flex;
	flex-direction: column;
	gap: var(--space-4xl);
	padding-top: var(--space-4xl);
	padding-bottom: var(--space-4xl);
	padding-left: var(--space-m);
	padding-right: var(--space-m);
}

/* --- Content panel visibility: only show .open panel --- */
.lisensi-konten {
	display: none;
}

.lisensi-konten.open {
	display: block;
	background-color: var(--card);
	padding: 32px;
	border: 1px solid var(--border);
	animation: melekFadeIn 0.35s ease;
}

@keyframes melekFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --- Content panel (each license section wrapper) --- */
.brxe-87a6be.brxe-block {
	gap: 0 !important;
}

/* --- Content header: large icon + title + description --- */
.brxe-f3075b.brxe-block {
	flex-direction: row !important;
	align-items: center;
	gap: var(--space-l, 24px);
	padding-bottom: var(--space-l, 24px);
}

/* Large license icon in content header */
.brxe-f3075b > .brxe-svg,
.brxe-280dc5.brxe-svg {
	width: 30px;
	height: 30px;
	min-width: 30px;
	padding: 20px;
	background-color: var(--primary);
	flex-shrink: 0;
	box-sizing: content-box;
}

/* Content header text block */
.brxe-b2e4c9.brxe-block {
	gap: 4px !important;
	flex: 1;
	min-width: 0;
	justify-content: center;
}

/* Content panel inner layout */
.brxe-4776b5.brxe-block {
	gap: 0 !important;
}

/* --- Feature list --- */
.brxe-1e9504.brxe-block {
	gap: 0 !important;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Feature row */
.brxe-c91cd2.brxe-block {
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: nowrap;
	padding: var(--space-m) 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 0;
}

/* Feature row info block */
.brxe-b8f6a0.brxe-block {
	flex: 1;
	min-width: 0;
	gap: 4px !important;
}

/* Feature row label */
.brxe-c91cd2 .brxe-0f0ad6.brxe-text-basic {
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 0 !important;
}

/* Content header license title */
.brxe-94133e {
	font-size: var(--text-l) !important;
}

/* Check / cross icons in feature rows */
.melek-license-row-icon {
	width: 20px;
	height: 20px;
	min-width: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

/* Warning rows – color now set inline on the SVG stroke (#ef4444) */

/* --- Term group headers (Permitted / Prohibited) --- */
.melek-term-header {
	padding-top: 16px !important;
	padding-bottom: 4px !important;
	border-bottom: none !important;
}

.melek-term-header .melek-term-label {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--muted-foreground, #888) !important;
	margin: 0 !important;
}

.melek-term-header:first-child {
	padding-top: 0 !important;
}

/* --- Notice / Warning section --- */
.melek-license-notice {
	background-color: rgba(179, 0, 0, 0.07);
	margin-top: var(--space-l);
	padding: var(--space-m);
	border: 1px solid var(--border);
	align-self: center !important;
	align-items: center !important;
}

#brxe-21c546 {
	color: #b30000 !important;
	font-size: 30px !important;
	font-weight: 700;
	text-align: center;
}

#brxe-0bed60 {
	text-align: center;
}

/* --- Contact block in sidebar --- */
#brxe-0be60b,
#brxe-0be60b-mobile {
	margin-top: var(--space-2xl);
	gap: var(--space-s);
}

/* Contact Us button: text + arrow gap */
#brxe-0c0792,
#brxe-0c0792-mobile {
	flex-direction: row;
	align-items: center;
	gap: var(--space-m);
	margin-top: var(--space-m);
}

/* Contact Us button: semibold text */
#brxe-0c0792 .text,
#brxe-0c0792-mobile .text {
	font-weight: 500;
}

/* Contact Us link hover animation — slide-up text effect (matches reference) */
.brxe-text-link {
	display: flex;
	overflow: hidden;
	position: relative;
}

.uppercase.brxe-text-link {
	text-transform: uppercase;
}

.brxe-text-link::after {
	content: attr(data-meta);
}

.link-transition {
	cursor: pointer;
}

.link-transition::after {
	position: absolute;
	bottom: 0;
	left: 0;
	transform: translateY(100%);
	transition: all 0.3s ease;
}

.link-transition span:not(.icon) {
	transition: all 0.3s ease;
}

.link-transition:hover span:not(.icon) {
	transform: translateY(-100%);
}

.link-transition:hover::after {
	transform: translateY(0%);
}

/* Mobile accordion title cursor */
.brxe-fb9928 .brxe-f1ea01.brxe-block {
	cursor: pointer;
}

/* Mobile duplicate contact block: hidden on desktop */
.melek-license-contact-mobile {
	display: none !important;
}

/* =============================================
   LICENSE PAGE - Mobile responsive
   ============================================= */
@media (max-width: 767px) {
	/* Smaller headline on mobile */
	#brxe-e052e4 {
		font-size: var(--text-3xl) !important;
	}

	/* License type heading (e.g. "Desktop License") smaller on mobile */
	.brxe-04e223 {
		font-size: var(--text-m) !important;
		letter-spacing: normal !important;
	}

	/* Smaller content title on mobile */
	.brxe-94133e {
		font-size: var(--text-m) !important;
	}

	/* Smaller notice title on mobile */
	.melek-license-notice .brxe-text-basic.font-700 {
		font-size: 20px !important;
	}

	/* Stack vertically on mobile */
	.melek-license-bricks-layout {
		flex-direction: column !important;
		row-gap: var(--space-m);
	}

	/* Hide sidebar on mobile */
	#brxe-dcac11 {
		display: none !important;
	}

	/* Show right-side accordion titles on mobile */
	.brxe-fb9928 {
		display: flex;
	}

	/* Right-side accordion title styling — match reference */
	.brxe-f1ea01.brxe-block {
		align-items: center;
		flex-direction: row;
		justify-content: flex-start;
		column-gap: 12px;
		padding: var(--space-m);
		transition: all 0.3s ease;
		max-width: 100%;
	}

	/* Right-side title icons */
	.brxe-f1ea01 .brxe-svg,
	.brxe-f08aed.brxe-svg {
		width: 20px;
		height: 20px;
		min-width: 20px;
		flex-shrink: 0;
	}

	/* Show mobile contact block */
	.melek-license-contact-mobile {
		display: flex !important;
		margin-top: var(--space-2xl);
	}

	/* Desktop contact block hidden on mobile */
	#brxe-0be60b:not(.melek-license-contact-mobile) {
		display: none !important;
	}

	/* Content header: row on mobile (matches reference brxe-f3075b) */
	.brxe-f3075b.brxe-block {
		flex-direction: row;
		align-items: center;
		column-gap: var(--space-m);
		flex-wrap: nowrap;
	}

	/* Icon size on mobile */
	.brxe-280dc5.brxe-svg {
		width: var(--text-5xl);
		height: var(--text-5xl);
		min-width: var(--text-5xl);
		padding: 20px;
	}

	/* Content area: show as flex on mobile */
	#brxe-411f13 {
		display: flex;
	}
}
