/* ==========================================================================
   Premium Course Tabs
   ========================================================================== */
.mp-premium-tabs-wrapper {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mp-border);
	margin-bottom: 40px;
	box-shadow: 0 4px 24px -12px rgba(0,0,0,0.05);
}

.mp-premium-tabs-wrapper.tutor-is-sticky {
	z-index: 20 !important;
}

body.tutor-popup-opened .mp-premium-tabs-wrapper,
body.tutor-modal-opened .mp-premium-tabs-wrapper,
body.modal-open .mp-premium-tabs-wrapper,
body.tutor-popup-opened .tutor-is-sticky,
body.tutor-modal-opened .tutor-is-sticky {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	z-index: -1 !important;
}

.mp-premium-tabs-inner {
	display: flex;
	align-items: center;
	min-height: 72px;
}

.mp-premium-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.mp-premium-nav::-webkit-scrollbar {
	display: none;
}

.mp-premium-nav-item {
	margin: 0;
	padding: 0;
	display: inline-flex;
}

.mp-premium-nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 12px 16px;
	color: var(--mp-text-muted);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}
.mp-premium-nav-link:hover {
	color: var(--mp-text-dark);
	background: var(--mp-primary-50);
}

.mp-premium-nav-link.is-active {
	color: var(--mp-primary-500);
	background: var(--mp-primary-50);
}

/* Bottom animated indicator for active tab */
.mp-premium-nav-indicator {
	position: absolute;
	bottom: -15px; /* Offset to align with the bottom of the wrapper */
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 32px;
	height: 3px;
	background-color: var(--mp-primary-500);
	border-radius: 3px 3px 0 0;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-premium-nav-link.is-active .mp-premium-nav-indicator {
	transform: translateX(-50%) scaleX(1);
}

.mp-premium-nav-text {
	position: relative;
	z-index: 2;
}

/* Tab Content Wrapper */
.mp-premium-tabs-content-wrapper {
	padding-bottom: 60px;
}

.mp-premium-tab-container {
	position: relative;
	background: var(--mp-surface);
	border-radius: 20px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.02), 0 0 0 1px var(--mp-border);
	overflow: hidden;
}

.mp-premium-tab-content-item {
	opacity: 0;
	visibility: hidden;
	height: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
	transform: translateY(10px);
}
.mp-premium-tab-content-item.is-active {
	opacity: 1;
	visibility: visible;
	height: auto;
	transform: translateY(0);
}

.mp-premium-tab-content-inner {
	padding: 48px;
}

/* Responsive */
@media (max-width: 768px) {
	.mp-premium-tabs-wrapper {
		margin-bottom: 24px;
	}
	.mp-premium-tabs-inner {
		min-height: 56px;
		position: relative;
		overflow: visible;
	}
	.mp-premium-nav {
		display: flex;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		padding-bottom: 4px;
		gap: 4px;
	}
	.mp-premium-nav-item {
		scroll-snap-align: start;
		flex-shrink: 0;
	}
	.mp-premium-nav-link {
		padding: 10px 14px;
		font-size: 0.85rem;
		white-space: nowrap;
	}
	.mp-premium-nav-indicator {
		bottom: -8px;
	}
	.mp-premium-tab-content-inner {
		padding: 20px 16px;
	}
	/* Gradient fade hint for scrollable tabs */
	.mp-premium-tabs-inner::after {
		content: '';
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 32px;
		background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
		pointer-events: none;
		z-index: 5;
	}
}

