@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* WooCommerce Video Library Main Stylesheet */
.wcvl-video-library-container,
.wcvl-single-video-container {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1e293b;
	line-height: 1.5;
	margin: 20px 0;
}

/* Grid Layout */
.wcvl-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 30px;
	margin: 24px 0;
}

/* Card Styling */
.wcvl-video-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.wcvl-video-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Cover Image */
.wcvl-card-image {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	background-color: #f1f5f9;
	overflow: hidden;
}

.wcvl-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.wcvl-video-card:hover .wcvl-card-image img {
	transform: scale(1.05);
}

/* Badge Indicator */
.wcvl-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 4px;
}

.wcvl-badge-unlocked {
	background: rgba(16, 185, 129, 0.9);
}

/* Card Content */
.wcvl-card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.wcvl-card-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.wcvl-card-description {
	font-size: 0.875rem;
	color: #64748b;
	margin-bottom: 20px;
	line-height: 1.6;
	flex-grow: 1;
}

/* Premium Buttons */
.wcvl-video-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wcvl-video-btn-buy {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #ffffff !important;
}

.wcvl-video-btn-buy:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
	transform: translateY(-1px);
	box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.wcvl-video-btn-watch {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff !important;
}

.wcvl-video-btn-watch:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	transform: translateY(-1px);
	box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* Empty notices */
.wcvl-notice-empty {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	color: #64748b;
	font-size: 1rem;
}

/* Single Video View / Player Details */
.wcvl-single-video-container {
	max-width: 960px;
	margin: 0 auto;
}

.wcvl-video-player-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	background-color: #0f172a;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
	margin-bottom: 24px;
}

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

/* Locked Screen view */
.wcvl-locked-video-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle, rgba(15,23,42,0.95) 0%, rgba(2,6,23,0.98) 100%);
	color: #ffffff;
	padding: 24px;
	text-align: center;
	box-sizing: border-box;
}

.wcvl-locked-icon {
	font-size: 3.5rem;
	margin-bottom: 16px;
	animation: pulse-lock 2s infinite ease-in-out;
}

.wcvl-locked-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: #f8fafc;
}

.wcvl-locked-desc {
	font-size: 0.95rem;
	color: #94a3b8;
	max-width: 400px;
	margin-bottom: 24px;
	line-height: 1.5;
}

.wcvl-locked-video-wrapper .wcvl-video-btn-buy {
	padding: 14px 32px;
	font-size: 1rem;
}

@keyframes pulse-lock {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.08);
		opacity: 0.85;
	}
}

/* Single Meta details */
.wcvl-video-details {
	padding: 10px 0;
}

.wcvl-video-header-title {
	font-size: 2rem;
	font-weight: 700;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 12px;
}

.wcvl-video-content-body {
	color: #334155;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* Utility Notice for Login checks */
.wcvl-login-notice {
	background: #f8fafc;
	border-left: 4px solid #6366f1;
	border-radius: 8px;
	padding: 20px;
	text-align: left;
	margin: 20px 0;
}
.wcvl-login-notice p {
	margin: 0 0 15px 0;
	color: #475569;
	font-size: 1rem;
}
