/* Tutorial Page Styles */
.tutorial-section {
	width: 100%;
	max-width: 1200px;
	margin-top: 8px;
	margin-bottom: 24px;
	position: relative;
}

/* Back Link */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #ffffff80;
	text-decoration: none;
	transition: color 0.2s ease;
	margin-bottom: 24px;
}

.back-link:hover {
	color: var(--accent-color);
}

.back-link svg {
	transition: transform 0.2s ease;
}

.back-link:hover svg {
	transform: translateX(-4px);
}

/* Tutorial Container */
.tutorial-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}

/* Video Info - Always below video player */
.video-info {
	grid-column: 1;
	margin-top: 24px;
}

/* Video Player */
.video-player-container {
	width: 100%;
	background-color: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-header {
	padding-bottom: 20px;
	border-bottom: 1px solid #ffffff14;
	margin-bottom: 0;
}

.category-badge {
	display: inline-block;
	padding: 4px 10px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background-color: var(--accent-15);
	color: var(--accent-color);
	border-radius: 4px;
	margin-bottom: 12px;
}

.category-badge.beginner {
	background-color: rgba(85, 234, 174, 0.15);
	color: #55eaae;
}

.category-badge.intermediate {
	background-color: rgba(234, 154, 85, 0.15);
	color: #ea9a55;
}

.category-badge.advanced {
	background-color: rgba(234, 85, 189, 0.15);
	color: #ea55bd;
}

.video-title {
	font-family: 'Poppins', sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.3;
	margin: 0 0 16px 0;
}

.video-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.video-stats {
	display: flex;
	align-items: center;
	gap: 12px;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #ffffff60;
}

.stat-item svg {
	opacity: 0.7;
}

.stat-divider {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background-color: #ffffff30;
}

.video-actions {
	display: flex;
	gap: 12px;
}

.action-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.action-btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

.action-btn svg {
	opacity: 0.8;
}

/* Video Description & Author */
.video-description {
	background-color: #0e0e0e;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #ffffff08;
}

.author-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.author-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.author-name {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
}

.author-sub {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: #ffffff60;
}

.subscribe-btn {
	background-color: #ffffff;
	color: #000000;
	border: none;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.subscribe-btn:hover {
	background-color: #e0e0e0;
}

.video-description p {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #ffffffa0;
	margin: 0;
}

/* Playlist Section */
.playlist-section {
	grid-column: 1;
	margin-top: 24px;
	background-color: #0c0c0c;
	border-radius: 12px;
	border: 1px solid #ffffff08;
	overflow: hidden;
	height: fit-content;
}

.playlist-header {
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.playlist-header h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
}

.playlist-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.autoplay-label {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: #ffffff60;
}

/* Switch Toggle */
.switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ffffff20;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	transition: .4s;
}

input:checked + .slider {
	background-color: var(--accent-color);
}

input:checked + .slider:before {
	transform: translateX(16px);
}

.slider.round {
	border-radius: 20px;
}

.slider.round:before {
	border-radius: 50%;
}

/* Playlist Items */
.playlist-items {
	display: flex;
	flex-direction: column;
}

.playlist-item {
	display: flex;
	gap: 12px;
	padding: 12px;
	cursor: pointer;
	transition: background 0.2s ease;
	border-bottom: 1px solid #ffffff06;
}

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

.playlist-item:hover {
	background: #ffffff06;
}

.playlist-thumbnail {
	position: relative;
	width: 120px;
	height: 68px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.playlist-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.duration {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background-color: rgba(0, 0, 0, 0.8);
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 500;
	padding: 2px 4px;
	border-radius: 4px;
}

.play-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.playlist-item:hover .play-overlay {
	opacity: 1;
}

.play-overlay svg {
	color: #ffffff;
	width: 24px;
	height: 24px;
}

.playlist-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
}

.playlist-info h4 {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.playlist-author,
.playlist-views {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	color: #ffffff60;
}

.playlist-number {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: #ffffff40;
	align-self: center;
}

/* Author Section */
.author-section {
	margin-top: 24px;
	grid-column: 1 / -1;
}

.author-bio {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #ffffff14;
}

.author-bio p {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #ffffffa0;
	margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.tutorial-container {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.tutorial-section {
		margin-top: 0;
	}

	.video-title {
		font-size: 18px;
	}

	.video-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.video-actions {
		width: 100%;
		justify-content: space-between;
	}

	.action-btn {
		flex: 1;
		justify-content: center;
		padding: 8px;
	}

	.author-row {
		flex-wrap: wrap;
	}

	.subscribe-btn {
		margin-left: auto;
	}
}
