/* _static/css/styles.css */

/* ─── КОСМИЧЕСКИЙ СТИЛЬ CARDIVERSE ─── */
:root {
	/* Сделали базовый фон чуть светлее и насыщеннее синим оттенком */
	--space-bg: #090c1f; 
	--nebula-purple: rgba(150, 50, 255, 0.35);
	--nebula-blue: rgba(0, 140, 255, 0.3);
	--accent-neon-cyan: #00f0ff;
	--accent-neon-pink: #ff007f;
	--btn-gradient: linear-gradient(-55deg, #44a1ff 30%, #7000ff 100%);
	--footer-bg: #040612;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Oswald', sans-serif;
	background-color: var(--space-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: #fff;
	overflow-x: hidden;
	position: relative;
}

/* Более яркие и объемные туманности */
body::before, body::after {
	content: "";
	position: fixed;
	width: 450px;
	height: 450px;
	border-radius: 50%;
	filter: blur(140px);
	z-index: 0;
	pointer-events: none;
}
body::before {
	top: 10%;
	left: -100px;
	background: var(--nebula-purple);
}
body::after {
	bottom: 15%;
	right: -100px;
	background: var(--nebula-blue);
}

/* Эффект мерцающих звезд на чистом CSS */
.space-stars {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background-image: 
		radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
		radial-gradient(2px 2px at 100px 150px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
		radial-gradient(1.5px 1.5px at 200px 80px, #fff, rgba(0,0,0,0)),
		radial-gradient(2.5px 2.5px at 300px 400px, rgba(0,240,255,0.7), rgba(0,0,0,0)),
		radial-gradient(2px 2px at 450px 250px, rgba(255,0,127,0.6), rgba(0,0,0,0));
	background-size: 550px 550px;
	z-index: 1;
	opacity: 0.8;
	animation: starsTwinkle 8s infinite linear;
}

@keyframes starsTwinkle {
	0% { opacity: 0.6; transform: scale(1); }
	50% { opacity: 1s; transform: scale(1.01); }
	100% { opacity: 0.6; transform: scale(1); }
}

/* Контейнер для падающих звезд */
.meteors-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

/* Класс для генерируемых комет */
.meteor {
	position: absolute;
	width: 2px;
	height: 2px;
	background: linear-gradient(90deg, #fff, rgba(0, 240, 255, 0));
	border-radius: 50%;
	opacity: 0;
	transform: rotate(-35deg); /* Угол падения */
	animation: meteorFall 3s linear forwards;
}

@keyframes meteorFall {
	0% {
		opacity: 0;
		transform: rotate(-35deg) translateX(0) scale(0.5);
		width: 2px;
	}
	10% {
		opacity: 1;
		width: 60px; /* Длина хвоста кометы */
	}
	80% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: rotate(-35deg) translateX(-400px) scale(1);
		width: 0px;
	}
}

html[lang="ar"] .rtl-text {
	direction: rtl;
	text-align: center;
}

/* Шапка страницы */
header {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	padding: 20px 20px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
}

/* Селектор языка */
.lang-custom-wrapper {
	position: relative;
	display: inline-block;
}

.lang-btn {
	background: rgba(10, 15, 35, 0.75);
	color: #fff;
	border: 1px solid rgba(0, 240, 255, 0.4);
	padding: 8px 18px;
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.25s ease;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
	box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.lang-btn:hover {
	background: rgba(15, 25, 55, 0.9);
	border-color: var(--accent-neon-cyan);
	box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.lang-btn .globe-icon {
	width: 15px;
	height: 15px;
	fill: var(--accent-neon-cyan);
}

.lang-btn .arrow-icon {
	font-size: 0.65rem;
	color: rgba(255,255,255,0.6);
	transition: transform 0.2s ease;
}

.lang-custom-wrapper.active .lang-btn .arrow-icon {
	transform: rotate(180deg);
}

.lang-dropdown-options {
	display: none;
	position: absolute;
	right: 0;
	top: 115%;
	background: rgba(7, 9, 22, 0.98);
	color: #fff;
	border: 1px solid rgba(112, 0, 255, 0.5);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(112, 0, 255, 0.2);
	min-width: 150px;
	overflow: hidden;
	z-index: 100;
	backdrop-filter: blur(12px);
}

.lang-dropdown-options div {
	padding: 11px 18px;
	cursor: pointer;
	font-size: 0.95rem;
	transition: all 0.2s;
	text-align: left;
	border-bottom: 1px solid rgba(255,255,255,0.03);
}

.lang-dropdown-options div:hover {
	background: rgba(112, 0, 255, 0.35);
	color: var(--accent-neon-cyan);
	padding-left: 22px;
}

.lang-custom-wrapper.active .lang-dropdown-options {
	display: block;
}

/* Главная структура */
main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 110px 20px 60px 20px;
	z-index: 2;
}

.contents {
	width: 100%;
	max-width: 460px;
	text-align: center;
}

/* Логотип */
.logo {
	display: inline-block;
	margin-bottom: 30px;
	animation: logoFloat 4s ease-in-out infinite;
}

.logo img {
	display: block;
	max-width: 240px;
	height: auto;
	filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.2));
}

@keyframes logoFloat {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
	100% { transform: translateY(0px); }
}

.invite_text {
	font-size: 1.5rem;
	font-weight: 500;
	margin: 0 0 28px 0;
	text-shadow: 0 0 15px rgba(0, 240, 255, 0.4), 0 2px 4px rgba(0,0,0,0.8);
	line-height: 1.35;
	letter-spacing: 0.5px;
}

/* Панель под QR */
.qr-panel {
	background: #ffffff;
	padding: 16px;
	border-radius: 24px;
	display: inline-block;
	margin-bottom: 30px;
	box-shadow: 0 0 35px rgba(0, 240, 255, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 1);
	position: relative;
}

#qrcode-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Космическая кнопка */
.button {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 0 auto 35px auto;
	background: var(--btn-gradient);
	color: #ffffff;
	text-decoration: none;
	font-size: 1.45rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 15px 20px;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.4);
	box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 8px 0 #143278;
	text-shadow: 0 2px 6px rgba(120, 0, 255, 0.6);
	transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
	cursor: pointer;
	letter-spacing: 1px;
}

.button:hover {
	transform: translateY(2px);
	box-shadow: 0 0 25px rgba(0, 240, 255, 0.7), 0 6px 0 #143278;
	border-color: rgba(255,255,255,0.8);
}

.button:active {
	transform: translateY(8px);
	box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}

/* Маркеты */
.download-links-wrapper {
	margin-top: 15px;
}

.download-links-heading {
	font-size: 1.05rem;
	text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 14px;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.download-links {
	display: flex;
	justify-content: center;
	gap: 14px;
}

.download-links a {
	transition: all 0.25s ease;
}

.download-links a:hover {
	transform: scale(1.05) translateY(-2px);
	filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}

.download-links img {
	display: block;
	width: 142px;
	height: auto;
}

		
/* Footer
====================*/
.footer {
	padding: 10px 10vw 40px;
	min-height: 200px;
	z-index: 1000;
	position: relative;
	line-height: 1;
	border-top: 3px solid #6432a0;
	background-color: #000;
}

/* Footer__menu
====================*/
.footer_menu {
	padding-block: 30px;
}

.footer_menuItems {
	margin: 0 10px;
	display: flex;
	gap: 30px;
}

.footer_menuItems a {
	color: inherit;
	text-decoration: none;
	font-size: 17px;
	font-weight: 400;
}

/* Footer__inner
====================*/
.footer_end {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	gap: 30px;	
	border-top: 1px solid #ffffff80;
}

@media (min-width: 768px) {
	.footer_end {
		flex-direction: row;
	}
	
	.footer_socialMediaLinks {
		gap: 10px;
	}
}

@media (max-width: 768px) {
	.footer_menuItems {
		flex-direction: column;
		gap: 25px;
		text-align: center;
	}
}

/* Social
====================*/
.footer_socialMediaLinks {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;    
	gap: 20px;
}

.social_item {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 35px;
	height: 35px;

	background-color: transparent;
	border: 1px solid #fff;

	transition: background .1s linear;
}

.social_item:last-child {
	margin-right: 0;
}

.social_item:hover {
	background-color: #fff;
}

.social_item svg {
	display: block;
	height: 25px;
	fill: rgb(255 255 255 / 80%);

	transition: fill .1s linear;
}

.social_item:hover svg {
	fill: #000;
}

.footer_logo {
	margin-top: -1px;
	height: 70px;
	background-color: #fff;
}
