/* Clean stylesheet */
:root {
	--gold: #d4a853;
	--gold-light: #f0d890;
	--gold-dark: #b8860b;
	--text: #f5f3ef;
	--muted: rgba(245, 243, 239, 0.6);
	--dark: #1a1a1a;
	--gray: #2d2d2d;
	--shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════
   WELCOME OVERLAY - شاشة الترحيب
   ═══════════════════════════════════════════ */

.welcome-overlay {
	position: fixed;
	inset: 0;
	background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse at top left, rgba(212, 168, 83, 0.2) 0%, transparent 50%),
		radial-gradient(ellipse at bottom right, rgba(212, 168, 83, 0.15) 0%, transparent 50%);
	pointer-events: none;
}

.welcome-overlay.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.welcome-content {
	text-align: center;
	position: relative;
	z-index: 1;
}

.welcome-text {
	color: var(--gold);
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(1.2rem, 3vw, 1.8rem);
	font-weight: 700;
	margin: 0;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	animation: welcomeFade 1.5s ease-in-out infinite alternate;
	text-shadow: 
		0 0 15px rgba(212, 168, 83, 0.8),
		0 0 30px rgba(212, 168, 83, 0.5),
		0 0 45px rgba(212, 168, 83, 0.3);
}

.welcome-pulse {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 200px;
	border: 2px solid rgba(212, 168, 83, 0.3);
	border-radius: 50%;
	animation: welcomePulse 2s ease-out infinite;
	pointer-events: none;
}

@keyframes welcomeFade {
	0% { opacity: 0.6; }
	100% { opacity: 1; }
}

@keyframes welcomePulse {
	0% {
		width: 100px;
		height: 100px;
		opacity: 1;
	}
	100% {
		width: 300px;
		height: 300px;
		opacity: 0;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	overflow: hidden;
}

body {
	margin: 0;
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--text);
	background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: 
		radial-gradient(ellipse at top left, rgba(212, 168, 83, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse at bottom right, rgba(212, 168, 83, 0.1) 0%, transparent 50%);
	pointer-events: none;
	z-index: -1;
}

.bg-video {
	position: fixed;
	inset: 0;
	z-index: -5;
	overflow: hidden;
}

.bg-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.7) brightness(0.6) contrast(1.1);
}

.bg-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.4);
	z-index: -4;
}

.bg-animated {
	position: fixed;
	inset: 0;
	background: linear-gradient(125deg, rgba(212, 168, 83, 0.12), transparent 40%, rgba(184, 134, 11, 0.08));
	background-size: 200% 200%;
	animation: gradientShift 12s ease infinite;
	z-index: -3;
}

.bg-noise {
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
	opacity: 0.5;
	z-index: -2;
}

.page {
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 1.5rem;
	overflow: hidden;
}

.tilt-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	transform-style: preserve-3d;
	perspective: 1000px;
	transition: transform 0.1s ease-out;
}

.profile {
	width: min(96vw, 700px);
}

.glass-card {
	position: relative;
	background: linear-gradient(145deg, rgba(45, 45, 45, 0.3), rgba(30, 30, 30, 0.25));
	border: 3px solid rgba(212, 168, 83, 0.4);
	border-radius: 24px;
	padding: 3.5rem 2rem;
	text-align: center;
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow);
}

.glass-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), transparent 50%, rgba(184, 134, 11, 0.05));
	pointer-events: none;
}

.profile-image {
	width: 110px;
	height: 110px;
	margin: 0 auto 1.2rem;
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
	box-shadow: 0 0 30px rgba(212, 168, 83, 0.3);
}

.profile-image img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--dark);
}

.profile-name {
	margin: 0.5rem 0 0.5rem;
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	text-shadow: 
		0 0 10px rgba(212, 168, 83, 0.8),
		0 0 20px rgba(212, 168, 83, 0.6),
		0 0 40px rgba(212, 168, 83, 0.4),
		0 0 60px rgba(212, 168, 83, 0.3);
	animation: nameGlow 3s ease-in-out infinite alternate;
}

@keyframes nameGlow {
	0% {
		text-shadow: 
			0 0 10px rgba(212, 168, 83, 0.8),
			0 0 20px rgba(212, 168, 83, 0.6),
			0 0 40px rgba(212, 168, 83, 0.4),
			0 0 60px rgba(212, 168, 83, 0.3);
	}
	100% {
		text-shadow: 
			0 0 15px rgba(240, 216, 144, 0.9),
			0 0 30px rgba(212, 168, 83, 0.7),
			0 0 50px rgba(212, 168, 83, 0.5),
			0 0 80px rgba(212, 168, 83, 0.4);
	}
}

.profile-tagline {
	margin: 0 0 1.5rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.discord-profile-card {
	margin-bottom: 1.5rem;
}

.discord-profile-card a {
	display: block;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.discord-profile-card a:hover {
	transform: scale(1.02);
	filter: brightness(1.1);
}

.discord-profile-card img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.socials {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
}

.icon-btn {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: transparent;
	border: none;
	transition: all 0.3s ease;
}

.icon-btn svg {
	width: 30px;
	height: 30px;
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 10px currentColor);
}

.icon-btn:hover {
	transform: translateY(-3px) scale(1.15);
}

.icon-btn:hover svg {
	filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor) drop-shadow(0 0 35px currentColor) drop-shadow(0 0 50px currentColor);
}

/* Instagram - Pink Neon */
.icon-instagram {
	color: #E4405F;
}
.icon-instagram svg {
	filter: drop-shadow(0 0 6px #E4405F) drop-shadow(0 0 12px rgba(228, 64, 95, 0.8));
}
.icon-instagram:hover svg {
	filter: drop-shadow(0 0 12px #E4405F) drop-shadow(0 0 25px #E4405F) drop-shadow(0 0 45px #E4405F) drop-shadow(0 0 70px #E4405F);
}

/* Twitter/X - White Neon */
.icon-twitter {
	color: #fff;
}
.icon-twitter svg {
	filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
}
.icon-twitter:hover svg {
	filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 25px #fff) drop-shadow(0 0 45px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 70px #fff);
}

/* GitHub - Purple Neon */
.icon-github {
	color: #a855f7;
}
.icon-github svg {
	filter: drop-shadow(0 0 6px #a855f7) drop-shadow(0 0 12px rgba(168, 85, 247, 0.8));
}
.icon-github:hover svg {
	filter: drop-shadow(0 0 12px #a855f7) drop-shadow(0 0 25px #a855f7) drop-shadow(0 0 45px #a855f7) drop-shadow(0 0 70px #a855f7);
}

/* Discord - Indigo Neon */
.icon-discord {
	color: #5865F2;
}
.icon-discord svg {
	filter: drop-shadow(0 0 6px #5865F2) drop-shadow(0 0 12px rgba(88, 101, 242, 0.8));
}
.icon-discord:hover svg {
	filter: drop-shadow(0 0 12px #5865F2) drop-shadow(0 0 25px #5865F2) drop-shadow(0 0 45px #5865F2) drop-shadow(0 0 70px #5865F2);
}

/* TikTok - Cyan Neon */
.icon-tiktok {
	color: #00f2ea;
}
.icon-tiktok svg {
	filter: drop-shadow(0 0 6px #00f2ea) drop-shadow(0 0 12px rgba(0, 242, 234, 0.8));
}
.icon-tiktok:hover svg {
	filter: drop-shadow(0 0 12px #00f2ea) drop-shadow(0 0 25px #ff0050) drop-shadow(0 0 45px #00f2ea) drop-shadow(0 0 70px #00f2ea);
}

.icon {
	font-size: 0.8rem;
	font-weight: 600;
}

.fade-in {
	animation: fadeIn 1s ease both;
}

/* ═══════════════════════════════════════════
   FLOATING CARD PLAYER - مشغل بطاقة عائمة
   ═══════════════════════════════════════════ */

.player {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 0 1rem;
}

.player-bar {
	width: min(96vw, 700px);
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: 1fr;
	grid-template-areas: "icon progress controls";
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.4rem;
	background: linear-gradient(145deg, rgba(45, 45, 45, 0.3), rgba(30, 30, 30, 0.25));
	border: 3px solid rgba(212, 168, 83, 0.35);
	border-radius: 20px;
	backdrop-filter: blur(12px);
	box-shadow: 
		0 20px 50px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(212, 168, 83, 0.05) inset;
}

/* صورة الألبوم */
.player-icon {
	grid-area: icon;
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	border: 3px solid rgba(212, 168, 83, 0.3);
}

.player-icon img {
	width: 100%;
	height: 100%;
	border-radius: 14px;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s;
}

.player-icon img.is-loaded {
	opacity: 1;
}

.icon-fallback {
	position: absolute;
	font-size: 1.8rem;
	color: #52525b;
}

.player-icon img.is-loaded + .icon-fallback {
	display: none;
}

/* شريط التقدم والوقت */
.progress {
	grid-area: progress;
	width: 100%;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.time {
	font-size: 0.72rem;
	color: #71717a;
	font-variant-numeric: tabular-nums;
	min-width: 32px;
}

.progress-track {
	flex: 1;
	height: 4px;
	background: #3a3a3a;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--gold-dark), var(--gold));
	border-radius: 4px;
	box-shadow: 0 0 10px rgba(212, 168, 83, 0.4);
}

/* أزرار التحكم */
.player-controls {
	grid-area: controls;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
}

.control-btn {
	width: 32px;
	height: 36px;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: #9a9a9a;
	font-size: 1.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	margin: 0 -2px;
}

.control-btn:hover {
	color: #fff;
}

#playPause {
	width: 38px;
	height: 38px;
	color: #bbb;
	font-size: 1.25rem;
	position: relative;
	top: 1px;
}

#playPause:hover {
	color: #fff;
}

.yt-player {
	position: absolute;
	left: -9999px;
	width: 0;
	height: 0;
	overflow: hidden;
}

.footer {
	color: var(--muted);
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════
   VOLUME CONTROL - زر التحكم بالصوت
   ═══════════════════════════════════════════ */

.volume-control {
	position: fixed;
	top: 20px;
	left: 20px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	z-index: 100;
}

.volume-btn {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	border: 2px solid rgba(212, 168, 83, 0.3);
	background: rgba(30, 30, 30, 0.9);
	color: var(--gold);
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(10px);
	transition: all 0.2s ease;
}

.volume-btn .vol-icon {
	width: 32px;
	height: 32px;
}

.volume-btn:hover {
	border-color: var(--gold);
	background: rgba(212, 168, 83, 0.15);
}

.volume-slider {
	width: 0;
	opacity: 0;
	transition: all 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	background: #3a3a3a;
	border-radius: 3px;
	cursor: pointer;
}

.volume-control:hover .volume-slider {
	width: 80px;
	opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gold);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gold);
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
	.page {
		padding: 3rem 1.2rem 2.5rem;
		gap: 1.5rem;
	}

	.glass-card {
		padding: 2rem 1.5rem;
	}

	.player-bar {
		gap: 0.6rem;
		padding: 0.5rem 0.7rem;
	}

	.player-icon {
		width: 38px;
		height: 38px;
		min-width: 38px;
	}

	.time {
		font-size: 0.75rem;
		min-width: 30px;
	}
}

@media (max-width: 380px) {
	.player-bar {
		gap: 0.5rem;
	}

	.player-icon {
		width: 34px;
		height: 34px;
		min-width: 34px;
	}

	.control-btn {
		width: 24px;
		height: 24px;
	}
}
