/**
 * TSDL Pro - Frontend styles for locked topic UI.
 * Uses Tutor LMS design conventions.
 */

/* Locked topic banner */
.tsdl-locked-topic-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	margin: 0 0 4px;
	background-color: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 6px;
}

.tsdl-locked-topic-info {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #5d4037;
	font-size: 13px;
	line-height: 1.4;
}

.tsdl-locked-topic-info i {
	font-size: 16px;
	color: #f57c00;
	flex-shrink: 0;
}

/* Lock icon next to lessons */
.tsdl-lock-icon {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
}

.tsdl-lock-icon i {
	font-size: 14px;
	color: #f57c00;
}

/* Locked content message (when accessing directly) */
.tsdl-locked-content-message {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 20px;
	margin: 20px 0;
	background-color: #fff3e0;
	border: 1px solid #ffe0b2;
	border-radius: 8px;
	color: #e65100;
	font-size: 14px;
}

.tsdl-locked-content-message i {
	font-size: 20px;
}

/* Locked topic visual cue: dim lessons */
.tsdl-topic-locked .tutor-course-content-list-item-title {
	opacity: 0.6;
}

.tsdl-topic-locked .tutor-course-content-list-item-title a {
	pointer-events: none;
	cursor: default;
	color: inherit;
	text-decoration: none;
}

/* Purchase button in banner */
.tsdl-purchase-topic-btn {
	white-space: nowrap;
	flex-shrink: 0;
}

.tsdl-purchase-topic-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Responsive */
@media (max-width: 576px) {
	.tsdl-locked-topic-banner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.tsdl-locked-topic-info {
		justify-content: center;
	}

	.tsdl-purchase-topic-btn {
		width: 100%;
	}
}
