/*
Theme Name: Ani-DL Encodes v2
Theme URI: https://anidlencodes.xyz
Version: 2.0.0
Author: Samanw
Author URI: mailto:sam.aldaghi@gmail.com
Description: A modern WordPress theme for anime download and subtitle website. Dark theme with glass effects and Tailwind CSS.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anidl-v2
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ==========================================================================
Base Styles - Minimal (Tailwind handles most)
========================================================================== */

/* LTR Support - English as primary language */
html {
	direction: ltr;
}

body {
	font-family: 'Inter', system-ui, sans-serif;
}

/* Line Clamp Utility */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* WordPress Specific */
.alignleft {
	float: left;
	margin-right: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text {
	font-size: 0.875em;
	color: #9ca3af;
}

/* ==========================================================================
Theme Color Variables (CSS Custom Properties)
========================================================================== */

:root {
	--color-primary: #dd7c51;
	--color-secondary: #b85c3a;
	--color-primary-rgb: 221, 124, 81;
	--color-secondary-rgb: 184, 92, 58;
}

/* Theme Presets */
[data-theme="orange"] {
	--color-primary: #dd7c51;
	--color-secondary: #b85c3a;
	--color-primary-rgb: 221, 124, 81;
	--color-secondary-rgb: 184, 92, 58;
}

[data-theme="pink"] {
	--color-primary: #ff6b9d;
	--color-secondary: #e84a7f;
	--color-primary-rgb: 255, 107, 157;
	--color-secondary-rgb: 232, 74, 127;
}

[data-theme="purple"] {
	--color-primary: #a855f7;
	--color-secondary: #7c3aed;
	--color-primary-rgb: 168, 85, 247;
	--color-secondary-rgb: 124, 58, 237;
}

[data-theme="blue"] {
	--color-primary: #3b82f6;
	--color-secondary: #2563eb;
	--color-primary-rgb: 59, 130, 246;
	--color-secondary-rgb: 37, 99, 235;
}

[data-theme="cyan"] {
	--color-primary: #06b6d4;
	--color-secondary: #0891b2;
	--color-primary-rgb: 6, 182, 212;
	--color-secondary-rgb: 8, 145, 178;
}

[data-theme="green"] {
	--color-primary: #22c55e;
	--color-secondary: #16a34a;
	--color-primary-rgb: 34, 197, 94;
	--color-secondary-rgb: 22, 163, 74;
}

[data-theme="red"] {
	--color-primary: #ef4444;
	--color-secondary: #dc2626;
	--color-primary-rgb: 239, 68, 68;
	--color-secondary-rgb: 220, 38, 38;
}

[data-theme="yellow"] {
	--color-primary: #eab308;
	--color-secondary: #ca8a04;
	--color-primary-rgb: 234, 179, 8;
	--color-secondary-rgb: 202, 138, 4;
}

/* ==========================================================================
Custom Scrollbar
========================================================================== */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(20, 20, 40, 0.5);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
	filter: brightness(1.2);
}

/* ==========================================================================
Animations
========================================================================== */

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
	0%, 100% { box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.3); }
	50% { box-shadow: 0 0 40px rgba(var(--color-primary-rgb), 0.6); }
}

@keyframes slide-up {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate-slow {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.6s ease-out forwards; }
.animate-rotate-slow { animation: rotate-slow 20s linear infinite; }
.animate-shimmer {
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
	background-size: 200% 100%;
	animation: shimmer 2s infinite;
}

/* ==========================================================================
Glass Effects
========================================================================== */

.glass {
	background: rgba(20, 20, 40, 0.6);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.glass-card {
	background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-secondary-rgb), 0.1));
	backdrop-filter: blur(10px);
	border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

/* ==========================================================================
Gradient Text
========================================================================== */

.gradient-text {
	background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), #61afef);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==========================================================================
Anime Card Hover Effects
========================================================================== */

.anime-card {
	transition: all 0.3s ease;
}

.anime-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.2);
}

/* ==========================================================================
Button Styles
========================================================================== */

.btn-anime {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.btn-anime::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.btn-anime:hover::before {
	left: 100%;
}

/* ==========================================================================
Section Divider
========================================================================== */

.section-divider {
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), #61afef, transparent);
}

/* ==========================================================================
Bento Grid Cards
========================================================================== */

.bento-card {
	transition: all 0.3s ease;
}

.bento-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.15);
}

/* ==========================================================================
Theme Switcher
========================================================================== */

.theme-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.theme-btn:hover {
	transform: scale(1.2);
}

.theme-btn.active {
	border-color: white;
	box-shadow: 0 0 10px currentColor;
}

/* ==========================================================================
Dynamic Color Classes
========================================================================== */

.bg-theme { background-color: var(--color-primary); }
.bg-theme-secondary { background-color: var(--color-secondary); }
.text-theme { color: var(--color-primary); }
.border-theme { border-color: var(--color-primary); }
.from-theme { --tw-gradient-from: var(--color-primary); }
.to-theme-secondary { --tw-gradient-to: var(--color-secondary); }
.bg-theme\/10 { background-color: rgba(var(--color-primary-rgb), 0.1); }
.bg-theme\/20 { background-color: rgba(var(--color-primary-rgb), 0.2); }
.bg-theme\/90 { background-color: rgba(var(--color-primary-rgb), 0.9); }
.text-theme\/70 { color: rgba(var(--color-primary-rgb), 0.7); }
.shadow-theme\/25 { --tw-shadow-color: rgba(var(--color-primary-rgb), 0.25); }
.hover\:bg-theme\/10:hover { background-color: rgba(var(--color-primary-rgb), 0.1); }
.hover\:bg-theme\/20:hover { background-color: rgba(var(--color-primary-rgb), 0.2); }
.hover\:text-theme:hover { color: var(--color-primary); }
.hover\:from-theme\/20:hover { --tw-gradient-from: rgba(var(--color-primary-rgb), 0.2); }
.hover\:to-theme-secondary\/20:hover { --tw-gradient-to: rgba(var(--color-secondary-rgb), 0.2); }
.hover\:shadow-theme\/25:hover { --tw-shadow-color: rgba(var(--color-primary-rgb), 0.25); }

/* ==========================================================================
Smooth Scroll
========================================================================== */

html {
	scroll-behavior: smooth;
}

/* ==========================================================================
Horizontal Scroll Container
========================================================================== */

.scroll-container {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
	display: none;
}

/* ==========================================================================
Bento Image Masks
========================================================================== */

.bento-img {
	object-fit: cover;
	pointer-events: none;
	-webkit-mask: radial-gradient(100% 100% at 100% 0, #fff, #0000);
	mask: radial-gradient(100% 100% at 100% 0, #fff, #0000);
	position: absolute;
	right: 0;
	top: -60px;
	opacity: 0.6;
	bottom: 0;
	height: 500px;
	max-width: none;
	width: auto;
}

.bento-img-left {
	object-fit: cover;
	pointer-events: none;
	-webkit-mask: radial-gradient(100% 100% at 0% 0, #fff, #0000);
	mask: radial-gradient(100% 100% at 0% 0, #fff, #0000);
	position: absolute;
	left: 0;
	right: auto;
	top: -60px;
	opacity: 0.5;
	bottom: 0;
	height: 500px;
	max-width: none;
	width: auto;
}

.bento-img-bottom {
	object-fit: cover;
	pointer-events: none;
	-webkit-mask: linear-gradient(to top, #fff 0%, transparent 60%);
	mask: linear-gradient(to top, #fff 0%, transparent 60%);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: auto;
	opacity: 0.4;
	height: 70%;
	width: 100%;
}

/* ==========================================================================
WordPress Admin Bar Adjustment
========================================================================== */

.admin-bar .fixed {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .fixed {
		top: 46px;
	}
}

/* ==========================================================================
Screen Reader Only
========================================================================== */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
