/**
 * YouTube Video Showcase - Frontend Styles (Lectrolab Neon Edition)
 * Inspired by: Deep black obsidian background, glowing pink halo ring, electric violet
 */

:root {
	--yts-bg-dark: #09040e;
	--yts-surface: rgba(22, 10, 36, 0.75);
	--yts-surface-hover: rgba(36, 14, 58, 0.85);
	--yts-neon-pink: #ff2a8d;
	--yts-neon-pink-bright: #ff4fa1;
	--yts-neon-purple: #9d4edd;
	--yts-neon-violet: #7209b7;
	--yts-border-subtle: rgba(255, 42, 141, 0.2);
	--yts-border-glow: rgba(255, 42, 141, 0.6);
	--yts-text-main: #ffffff;
	--yts-text-muted: #c4b5d4;
	--yts-glow-halo: 0 0 30px rgba(255, 42, 141, 0.35);
	--yts-glow-halo-strong: 0 0 45px rgba(255, 42, 141, 0.65), 0 0 15px rgba(157, 78, 221, 0.5);
	--yts-radius: 16px;
	--yts-font: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Wrapper */
.yts-wrapper {
	position: relative;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 30px 20px;
	font-family: var(--yts-font);
	box-sizing: border-box;
	color: var(--yts-text-main);
}

.yts-wrapper * {
	box-sizing: border-box;
}

/* Header Section */
.yts-header {
	position: relative;
	text-align: center;
	margin-bottom: 40px;
}

.yts-subtitle {
	display: inline-block;
	font-size: 0.95rem;
	font-style: italic;
	letter-spacing: 0.05em;
	color: var(--yts-neon-pink-bright);
	text-transform: uppercase;
	margin-bottom: 8px;
	font-weight: 600;
	text-shadow: 0 0 12px rgba(255, 42, 141, 0.6);
}

.yts-title {
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	color: #ffffff;
	line-height: 1.2;
}

.yts-header-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 250px;
	height: 70px;
	background: radial-gradient(circle, rgba(255, 42, 141, 0.25) 0%, rgba(157, 78, 221, 0.15) 60%, transparent 80%);
	filter: blur(35px);
	z-index: -1;
	pointer-events: none;
}

/* Grid Layout */
.yts-grid {
	display: grid;
	gap: 26px;
	width: 100%;
}

.yts-grid-cols-2 {
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.yts-grid-cols-3 {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.yts-grid-cols-4 {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Card Component (Lectrolab Halo Aesthetic) */
.yts-card {
	position: relative;
	background: var(--yts-surface);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-radius: var(--yts-radius);
	overflow: hidden;
	border: 1px solid var(--yts-border-subtle);
	transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
	cursor: pointer;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
	display: flex;
	flex-direction: column;
}

.yts-card:hover {
	transform: translateY(-7px);
	border-color: var(--yts-border-glow);
	background: var(--yts-surface-hover);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), var(--yts-glow-halo);
}

/* Halo ring behind card on hover */
.yts-card-glow-halo {
	position: absolute;
	top: -50px;
	left: -50px;
	right: -50px;
	bottom: -50px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 42, 141, 0.2) 0%, rgba(157, 78, 221, 0.05) 50%, transparent 70%);
	filter: blur(25px);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 0;
}

.yts-card:hover .yts-card-glow-halo {
	opacity: 1;
}

/* Thumbnail Container */
.yts-card-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0d0617;
	z-index: 1;
}

.yts-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yts-card:hover .yts-card-thumb {
	transform: scale(1.06);
}

/* Gradient overlay on top of thumbnail */
.yts-card-gradient-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9, 4, 14, 0.1) 0%, rgba(9, 4, 14, 0.3) 50%, rgba(14, 6, 24, 0.95) 100%);
	transition: opacity 0.3s ease;
}

/* Play Trigger Button (Lectrolab Halo Ring Style) */
.yts-play-trigger {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.yts-play-button-circle {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(18, 6, 31, 0.7);
	backdrop-filter: blur(8px);
	border: 2px solid var(--yts-neon-pink);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	box-shadow: 0 0 20px rgba(255, 42, 141, 0.5), inset 0 0 10px rgba(255, 42, 141, 0.3);
	transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yts-play-button-circle svg {
	margin-left: 3px;
	filter: drop-shadow(0 0 6px var(--yts-neon-pink));
}

/* Halo Pulse Ring around play button */
.yts-play-halo-pulse {
	position: absolute;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	border: 1px solid rgba(255, 42, 141, 0.4);
	box-shadow: 0 0 25px rgba(255, 42, 141, 0.3);
	opacity: 0.6;
	transition: all 0.4s ease;
}

.yts-card:hover .yts-play-button-circle {
	transform: scale(1.14);
	background: var(--yts-neon-pink);
	color: #ffffff;
	box-shadow: 0 0 35px rgba(255, 42, 141, 0.9), 0 0 15px #ffffff;
}

.yts-card:hover .yts-play-button-circle svg {
	filter: none;
}

.yts-card:hover .yts-play-halo-pulse {
	transform: scale(1.28);
	border-color: rgba(255, 42, 141, 0.8);
	opacity: 1;
}

/* Badges */
.yts-badge {
	position: absolute;
	padding: 4px 10px;
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	z-index: 2;
	backdrop-filter: blur(8px);
}

.yts-duration-badge {
	bottom: 12px;
	right: 12px;
	background: rgba(9, 4, 14, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.yts-category-badge {
	top: 12px;
	left: 12px;
	background: linear-gradient(135deg, rgba(255, 42, 141, 0.35) 0%, rgba(157, 78, 221, 0.3) 100%);
	border: 1px solid rgba(255, 42, 141, 0.4);
	color: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Card Content Area */
.yts-card-content {
	position: relative;
	padding: 18px 20px 22px;
	z-index: 1;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.yts-card-artist {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--yts-neon-pink-bright);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.yts-card-title {
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--yts-text-main);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.25s ease;
}

.yts-card:hover .yts-card-title {
	color: #ffffff;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Slider Carousel Layout */
.yts-slider-container {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 10px 0;
}

.yts-slider-viewport {
	overflow: hidden;
	width: 100%;
	border-radius: var(--yts-radius);
	padding: 10px 0 20px;
	cursor: grab;
}

.yts-slider-viewport:active {
	cursor: grabbing;
}

.yts-slider-track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
	user-select: none;
	-webkit-user-select: none;
}

.yts-slide-item {
	flex: 0 0 calc(33.333% - 18px);
	margin-right: 26px;
	box-sizing: border-box;
}

/* Responsive Slide Item Widths */
.yts-wrapper[data-columns="2"] .yts-slide-item {
	flex: 0 0 calc(50% - 14px);
}

.yts-wrapper[data-columns="3"] .yts-slide-item {
	flex: 0 0 calc(33.333% - 18px);
}

.yts-wrapper[data-columns="4"] .yts-slide-item {
	flex: 0 0 calc(25% - 20px);
}

/* Slider Navigation Buttons (Glowing Halo Ring Arrows) */
.yts-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(22, 10, 36, 0.85);
	backdrop-filter: blur(12px);
	border: 1px solid var(--yts-neon-pink);
	color: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 0 16px rgba(255, 42, 141, 0.35);
	padding: 0 !important;
	outline: none;
}

/* Bulletproof icon styles to prevent WordPress theme style overrides */
.yts-nav-btn svg,
.yts-nav-btn .yts-icon-svg {
	display: block !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	min-height: 24px !important;
	max-width: 24px !important;
	max-height: 24px !important;
	fill: #ffffff !important;
	color: #ffffff !important;
	stroke: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: none !important;
	margin: 0 !important;
	transform: none !important;
}

.yts-nav-btn svg path,
.yts-nav-btn .yts-icon-svg path {
	fill: #ffffff !important;
	color: #ffffff !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.yts-prev-btn {
	left: -22px;
}

.yts-next-btn {
	right: -22px;
}

.yts-nav-btn:hover {
	background: var(--yts-neon-pink);
	color: #ffffff !important;
	box-shadow: var(--yts-glow-halo-strong);
	transform: translateY(-50%) scale(1.1);
}

.yts-nav-btn:hover svg,
.yts-nav-btn:hover svg path {
	fill: #ffffff !important;
	color: #ffffff !important;
}

.yts-nav-btn:active {
	transform: translateY(-50%) scale(0.95);
}

.yts-nav-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.2);
}

/* Slider Dots Pagination */
.yts-dots-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
}

.yts-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.35s ease;
}

.yts-dot:hover {
	background: rgba(255, 42, 141, 0.6);
	box-shadow: 0 0 8px rgba(255, 42, 141, 0.6);
}

.yts-dot.active {
	width: 28px;
	border-radius: 12px;
	background: var(--yts-neon-pink);
	box-shadow: 0 0 14px var(--yts-neon-pink);
}

/* Lightbox Modal (Lectrolab Neon Cyberpunk Experience) */
.yts-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yts-modal-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.yts-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 3, 12, 0.88);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.yts-modal-container {
	position: relative;
	width: 90%;
	max-width: 960px;
	z-index: 2;
	transform: scale(0.92);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yts-modal-overlay.is-active .yts-modal-container {
	transform: scale(1);
}

/* Ambient Halo Background Glow for Modal */
.yts-modal-halo-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border-radius: 30px;
	background: radial-gradient(circle, rgba(255, 42, 141, 0.25) 0%, rgba(157, 78, 221, 0.15) 50%, transparent 75%);
	filter: blur(50px);
	pointer-events: none;
}

.yts-modal-dialog {
	position: relative;
	background: #0f061c;
	border: 1px solid var(--yts-border-glow);
	border-radius: 20px;
	padding: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--yts-glow-halo-strong);
	overflow: hidden;
}

.yts-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(22, 10, 36, 0.9);
	border: 1px solid var(--yts-neon-pink);
	color: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	z-index: 10;
	transition: all 0.25s ease;
	box-shadow: 0 0 12px rgba(255, 42, 141, 0.4);
	padding: 0 !important;
	outline: none;
}

.yts-modal-close svg,
.yts-modal-close .yts-icon-svg {
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	fill: #ffffff !important;
	color: #ffffff !important;
	stroke: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: none !important;
}

.yts-modal-close svg path,
.yts-modal-close .yts-icon-svg path {
	fill: #ffffff !important;
	color: #ffffff !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.yts-modal-close:hover {
	background: var(--yts-neon-pink);
	color: #ffffff !important;
	transform: rotate(90deg) scale(1.1);
	box-shadow: 0 0 20px var(--yts-neon-pink);
}

.yts-modal-close:hover svg,
.yts-modal-close:hover svg path {
	fill: #ffffff !important;
	color: #ffffff !important;
}

.yts-modal-header-info {
	padding: 6px 45px 14px 10px;
}

.yts-modal-video-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 0 12px rgba(255, 42, 141, 0.4);
}

.yts-modal-video-aspect {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000000;
	border-radius: 12px;
	overflow: hidden;
}

.yts-modal-player-wrapper {
	width: 100%;
	height: 100%;
}

.yts-modal-player-wrapper iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Empty state */
.yts-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: var(--yts-text-muted);
	background: rgba(22, 10, 36, 0.4);
	border: 1px dashed var(--yts-border-subtle);
	border-radius: var(--yts-radius);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.yts-slide-item,
	.yts-wrapper[data-columns="3"] .yts-slide-item,
	.yts-wrapper[data-columns="4"] .yts-slide-item {
		flex: 0 0 calc(50% - 14px);
	}
	.yts-prev-btn {
		left: -12px;
	}
	.yts-next-btn {
		right: -12px;
	}
}

@media (max-width: 640px) {
	.yts-wrapper {
		padding: 20px 14px;
	}
	.yts-grid-cols-2,
	.yts-grid-cols-3,
	.yts-grid-cols-4 {
		grid-template-columns: 1fr;
	}
	.yts-slide-item,
	.yts-wrapper[data-columns="2"] .yts-slide-item,
	.yts-wrapper[data-columns="3"] .yts-slide-item,
	.yts-wrapper[data-columns="4"] .yts-slide-item {
		flex: 0 0 100%;
		margin-right: 16px;
	}
	.yts-prev-btn {
		left: 4px;
	}
	.yts-next-btn {
		right: 4px;
	}
	.yts-nav-btn {
		width: 40px;
		height: 40px;
	}
	.yts-modal-container {
		width: 96%;
	}
	.yts-modal-dialog {
		padding: 10px;
	}
	.yts-modal-video-title {
		font-size: 1rem;
	}
}
