/**
 * Aluta — Episodes Dropdown styles.
 * The dropdown is rendered hidden in the footer and shown by JS when the
 * `.aluta-ep-trigger` button is clicked.
 */

.aluta-ep-dropdown {
	position: fixed;
	z-index: 99999;
	background: #ffffff;
	border: 1px solid #E0E0E0;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
	min-width: 280px;
	max-width: 380px;
	max-height: 440px;
	overflow-y: auto;
	padding: 6px 0;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	pointer-events: none;
}

.aluta-ep-dropdown.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.aluta-ep-dropdown[hidden] {
	display: none !important;
}

.aluta-ep-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 18px;
	color: #282828;
	text-decoration: none;
	border-bottom: 1px solid #f3f3f3;
	transition: background-color 0.12s ease;
}

.aluta-ep-item:last-child {
	border-bottom: none;
}

.aluta-ep-item:hover,
.aluta-ep-item:focus-visible {
	background-color: #fafafa;
	outline: none;
}

.aluta-ep-item-title {
	font-size: 14px;
	font-weight: 600;
	color: #282828;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aluta-ep-item-date {
	font-size: 12px;
	color: #747474;
}

/* Custom scrollbar */
.aluta-ep-dropdown::-webkit-scrollbar {
	width: 6px;
}
.aluta-ep-dropdown::-webkit-scrollbar-track {
	background: transparent;
}
.aluta-ep-dropdown::-webkit-scrollbar-thumb {
	background: #cccccc;
	border-radius: 3px;
}
.aluta-ep-dropdown::-webkit-scrollbar-thumb:hover {
	background: #999999;
}

/* Trigger open state — a tiny visual cue */
.aluta-ep-trigger.is-open .elementor-button,
.aluta-ep-trigger.is-open > a {
	box-shadow: 0 0 5px 2px rgba(41, 37, 37, 0.336);
}

/* Flip the button's icon 180° when the dropdown is open. */
.aluta-ep-trigger .elementor-button-icon,
.aluta-ep-trigger .elementor-button-icon img,
.aluta-ep-trigger .elementor-button-icon svg {
	transition: transform 0.2s ease;
	transform-origin: center center;
	display: inline-block;
}

.aluta-ep-trigger.is-open .elementor-button-icon,
.aluta-ep-trigger.is-open .elementor-button-icon img,
.aluta-ep-trigger.is-open .elementor-button-icon svg {
	transform: rotate(90deg);
}

/* Mobile responsive */
@media (max-width: 600px) {
	.aluta-ep-dropdown {
		left: 12px !important;
		right: 12px !important;
		width: auto;
		max-width: none;
	}
}
