﻿/* CSS Variables - Design System */
:root {
	--background: 220 25% 8%;
	--foreground: 0 0% 98%;
	--card: 220 20% 12%;
	--card-foreground: 0 0% 98%;
	--popover: 220 20% 12%;
	--popover-foreground: 0 0% 98%;
	--primary: 142 76% 36%;
	--primary-foreground: 0 0% 100%;
	--secondary: 25 95% 53%;
	--secondary-foreground: 0 0% 100%;
	--muted: 220 15% 20%;
	--muted-foreground: 0 0% 65%;
	--accent: 220 60% 50%;
	--accent-foreground: 0 0% 100%;
	--destructive: 0 84% 60%;
	--destructive-foreground: 0 0% 100%;
	--border: 220 15% 20%;
	--input: 220 15% 20%;
	--ring: 142 76% 36%;
	--radius: 0.75rem;
}

:root2 {
	--primary: 16.04deg 100% 60.39%;
	--secondary: 32.35deg 93.13% 54.31%;
	--accent: 45.94deg 100% 62.35%;
	--background: 0deg 0% 3.92%;
	--foreground: 0deg 0% 100%;
	--muted-foreground: 0deg 0% 62.75%;
	--border: 0deg 0% 20%;
	--card: 0deg 0% 10.2%;
}

/* Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	line-height: 1.6;
	direction: rtl;
}

/* Utility Classes */
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1rem;
}

.bg-background {
	background-color: hsl(var(--background));
}

.bg-card {
	background-color: hsl(var(--card));
}

.text-foreground {
	color: hsl(var(--foreground));
}

.text-muted-foreground {
	color: hsl(var(--muted-foreground));
}

.text-primary {
	color: hsl(var(--primary));
}

.text-secondary {
	color: hsl(var(--secondary));
}

.text-accent {
	color: hsl(var(--accent));
}

.border {
	border: 1px solid hsl(var(--border));
}

.border-border {
	border-color: hsl(var(--border));
}

.rounded-lg {
	border-radius: 0.5rem;
}

.rounded-xl {
	border-radius: 0.75rem;
}

.rounded-2xl {
	border-radius: 1rem;
}

.rounded-full {
	border-radius: 9999px;
}

.shadow-glow {
	box-shadow: 0 0 40px hsl(var(--primary) / 0.3);
}

.backdrop-blur-sm {
	backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
	backdrop-filter: blur(16px);
}

.transition-all {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
	transition: color 0.2s ease;
}

.transition-transform {
	transition: transform 0.3s ease;
}

.transition-opacity {
	transition: opacity 0.3s ease;
}

/* Gradients */
.bg-gradient-hero {
	background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

.bg-gradient-card {
	background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--background)));
}

/* Typography */
.text-sm {
	font-size: 0.875rem;
}

.text-base {
	font-size: 1rem;
}

.text-lg {
	font-size: 1.125rem;
}

.text-xl {
	font-size: 1.25rem;
}

.text-2xl {
	font-size: 1.5rem;
}

.text-3xl {
	font-size: 1.875rem;
}

.text-4xl {
	font-size: 2.25rem;
}

.text-5xl {
	font-size: 3rem;
}

.text-7xl {
	font-size: 4.5rem;
}

.font-bold {
	font-weight: 700;
}

.font-semibold {
	font-weight: 600;
}

.font-medium {
	font-weight: 500;
}

.leading-tight {
	line-height: 1.25;
}

.leading-relaxed {
	line-height: 1.75;
}

.text-center {
	text-align: center;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Layout */
.min-h-screen {
	min-height: 100vh;
}

.flex {
	display: flex;
}

.grid {
	display: grid;
}

.items-center {
	align-items: center;
}

.items-start {
	align-items: flex-start;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.flex-col {
	flex-direction: column;
}

.flex-wrap {
	flex-wrap: wrap;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.gap-4 {
	gap: 1rem;
}

.gap-6 {
	gap: 1.5rem;
}

.gap-8 {
	gap: 2rem;
}

.space-y-2 > * + * {
	margin-top: 0.5rem;
}

.space-y-4 > * + * {
	margin-top: 1rem;
}

/* Grid */
.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Positioning */
.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.fixed {
	position: fixed;
}

.inset-0 {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.top-0 {
	top: 0;
}

.bottom-2 {
	bottom: 0.5rem;
}

.right-2 {
	right: 0.5rem;
}

.z-0 {
	z-index: 0;
}

.z-10 {
	z-index: 10;
}

.z-50 {
	z-index: 50;
}

/* Overflow */
.overflow-hidden {
	overflow: hidden;
}

/* Aspect Ratio */
.aspect-video {
	aspect-ratio: 16 / 9;
}

/* Spacing */
.p-2 {
	padding: 0.5rem;
}

.p-4 {
	padding: 1rem;
}

.p-6 {
	padding: 1.5rem;
}

.px-2 {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.px-4 {
	padding-left: 1rem;
	padding-right: 1rem;
}

.px-8 {
	padding-left: 2rem;
	padding-right: 2rem;
}

.py-1 {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

.py-2 {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.py-4 {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.pt-20 {
	padding-top: 5rem;
}

.pt-24 {
	padding-top: 6rem;
}

.pb-12 {
	padding-bottom: 3rem;
}

.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-3 {
	margin-bottom: 0.75rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-6 {
	margin-bottom: 1.5rem;
}

.mb-8 {
	margin-bottom: 2rem;
}

.mt-6 {
	margin-top: 1.5rem;
}

.mt-8 {
	margin-top: 2rem;
}

.mt-12 {
	margin-top: 3rem;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.max-w-2xl {
	max-width: 42rem;
}

.max-w-5xl {
	max-width: 64rem;
}

/* Width & Height */
.w-full {
	width: 100%;
}

.w-3 {
	width: 0.75rem;
}

.w-4 {
	width: 1rem;
}

.w-5 {
	width: 1.25rem;
}

.w-6 {
	width: 1.5rem;
}

.w-8 {
	width: 2rem;
}

.h-full {
	height: 100%;
}

.h-3 {
	height: 0.75rem;
}

.h-4 {
	height: 1rem;
}

.h-5 {
	height: 1.25rem;
}

.h-6 {
	height: 1.5rem;
}

.h-8 {
	height: 2rem;
}

/* Object Fit */
.object-cover {
	object-fit: cover;
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: hsl(var(--background) / 0.8);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid hsl(var(--border));
	z-index: 50;
}

.navbar-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1rem;
}

.navbar-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

	.logo-group:hover .logo-icon {
		box-shadow: 0 0 40px hsl(var(--primary) / 0.3);
	}

.logo-icon {
	background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
	padding: 0.5rem;
	line-height: 0.5rem;
	border-radius: 0.5rem;
	transition: box-shadow 0.3s ease;
	color: hsl(var(--primary-foreground));
}

.logo-text {
	font-size: 1.25rem;
	font-weight: 700;
	background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav-link {
	color: hsl(var(--foreground) / 0.8);
	text-decoration: none;
	transition: color 0.2s ease;
}

	.nav-link:hover {
		color: hsl(var(--foreground));
	}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
	background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
	color: hsl(var(--primary-foreground));
}

	.btn-primary:hover {
		box-shadow: 0 0 40px hsl(var(--primary) / 0.3);
	}

.btn-outline {
	background: transparent;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	background-color: hsl(var(--background));
	border-color: hsl(var(--primary) / .5);
	border-width: 1px;
	border-radius: calc(var(--radius) - 2px);
}

	.btn-outline:hover {
		background-color: hsl(var(--primary) / 0.1);
		border-color: hsl(var(--primary) / 0.5);
	}

.btn-lg {
	padding: 10px 2rem;
	font-size: 1.125rem;
}

/* Cards */
.card {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
}

	.card:hover {
		border-color: hsl(var(--primary));
		box-shadow: 0 0 40px hsl(var(--primary) / 0.3);
	}

		.card:hover .card-image {
			transform: scale(1.1);
		}

		.card:hover .card-overlay {
			opacity: 1;
		}

		.card:hover .card-play {
			opacity: 1;
		}

.card-image-container {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, hsl(var(--background) / 0.9), hsl(var(--background) / 0.3), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card-play-icon {
	background-color: hsl(var(--primary) / 0.9);
	backdrop-filter: blur(4px);
	padding: 1rem;
	line-height: 1rem;
	border-radius: 9999px;
}

.card-duration {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	background-color: hsl(var(--background) / 0.9);
	backdrop-filter: blur(4px);
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.card-content {
	padding: 1rem;
}

.card-title {
	font-weight: 600;
	color: hsl(var(--card-foreground));
	margin-bottom: 0.5rem;
	transition: color 0.3s ease;
	line-height: 1.4;
}

.card:hover .card-title {
	color: hsl(var(--primary));
}

.card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Badges */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
}

.badge-primary {
	background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
	color: hsl(var(--primary-foreground));
}

/* Hero Section */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: 5rem;
}

.hero-background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, hsl(var(--background) / 0.9), hsl(var(--background) / 0.7), hsl(var(--background)));
}

.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 0 1rem;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: hsl(var(--primary) / 0.1);
	border: 1px solid hsl(var(--primary) / 0.2);
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	margin-bottom: 1.5rem;
	backdrop-filter: blur(4px);
}

.hero-title {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.25;
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 4.5rem;
	}
}

.hero-title-gradient {
	display: block;
	background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-description {
	font-size: 1.25rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 2rem;
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

/* Sections */
.section {
	padding: 5rem 0;
}

.section-title {
	font-size: 2.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-align: center;
}

.section-subtitle {
	color: hsl(var(--muted-foreground));
	font-size: 1.125rem;
	text-align: center;
	margin-bottom: 3rem;
}

/* Video Grid */
.video-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.5rem;
}
	.video-grid a {
		color: #fff;
		text-decoration: none;
	}
@media (min-width: 768px) {
	.video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.video-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Category Filter */
.category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.category-btn {
	padding: 0.5rem 1rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	background: transparent;
	color: hsl(var(--foreground));
	cursor: pointer;
	transition: all 0.3s ease;
}

	.category-btn:hover {
		background-color: hsl(var(--primary) / 0.1);
		border-color: hsl(var(--primary) / 0.5);
	}

	.category-btn.active {
		background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
		color: hsl(var(--primary-foreground));
		box-shadow: 0 0 40px hsl(var(--primary) / 0.3);
	}

/* Stats */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 2rem;
	text-align: center;
}

@media (min-width: 768px) {
	.stats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.stat-number {
	font-size: 3rem;
	font-weight: 700;
	color: hsl(var(--primary));
}

.stat-label {
	color: hsl(var(--muted-foreground));
	font-size: 1.125rem;
}

/* Video Player */
.video-player {
	max-width: 80rem;
	margin: 0 auto 2rem;
}

.video-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.video-info {
	max-width: 80rem;
	margin: 0 auto;
}

.video-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.video-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 2rem;
}

.video-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.video-description {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.nav-links {
		gap: 1rem;
	}

	.category-filter {
		justify-content: center;
	}

	.video-header {
		flex-direction: column;
	}
}

/* Utility Classes for JS */
.hidden {
	display: none;
}

.opacity-0 {
	opacity: 0;
}

.opacity-100 {
	opacity: 1;
}

.scale-110 {
	transform: scale(1.1);
}

/* Loading States */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
	background: hsl(var(--primary));
	border-radius: 4px;
}

	::-webkit-scrollbar-thumb:hover {
		background: hsl(var(--primary) / 0.8);
	}



.loadMoreBtn {
	display: flex;
	padding: 5px 10px;
	background-color: #207daf;
	color: #fff;
	border: 1px solid #207daf;
	border-radius: 2px;
	width: 80%;
	margin: auto;
	justify-content: center;
	margin: 15px auto 0px auto;
}
