/* ==========================================================================
   PRIME-3ONA — модуль ACTIVITY REWARDS
   Полная замена:
   modules_extra/activity_rewards/templates/prime_site/css/style.css

   Все исходные селекторы модуля сохранены.
   ========================================================================== */

.activity-rewards-banner,
.activity-rewards-banner *,
.reward,
.reward * {
	box-sizing: border-box;
}

/* Баннер модуля */
.activity-rewards-banner {
	position: relative;
	width: 100%;
	margin-bottom: 18px;
	overflow: hidden;
	border: 1px solid rgba(255, 152, 0, .16);
	border-radius: 14px;
	background:
		radial-gradient(
			circle at 50% 10%,
			rgba(255, 152, 0, .12),
			transparent 38%
		),
		radial-gradient(
			circle at 8% 0,
			rgba(255, 59, 59, .09),
			transparent 30%
		),
		linear-gradient(
			145deg,
			rgba(255, 59, 59, .055),
			rgba(255, 152, 0, .025)
		),
		#171a20;
	box-shadow:
		0 16px 36px rgba(0, 0, 0, .31),
		inset 0 1px 0 rgba(255, 255, 255, .03);
}

.activity-rewards-banner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #ff3b3b, #ff9800);
}

.activity-rewards-banner::after {
	content: "";
	position: absolute;
	top: -85px;
	left: 50%;
	width: 280px;
	height: 170px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: rgba(255, 135, 25, .08);
	filter: blur(38px);
	pointer-events: none;
}

.activity-rewards-banner a {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	padding: 27px 24px 24px;
	display: block;
	color: inherit !important;
	white-space: normal;
	text-decoration: none !important;
}

.activity-rewards-banner h3 {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 14px;
	color: #f3f4f6;
	font-size: 20px;
	font-weight: 950;
	line-height: 1.35;
	letter-spacing: .4px;
	text-align: center;
	text-shadow: 0 3px 14px rgba(0, 0, 0, .42);
}

.activity-rewards-banner h3::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100px;
	height: 2px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		transparent,
		#ff3b3b,
		#ff9800,
		transparent
	);
}

.activity-rewards-banner p {
	margin: 0;
	color: #c8cdd4;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.65;
	text-align: center;
	text-shadow: none;
}

.activity-rewards-banner img {
	width: 100%;
	max-width: 245px;
	max-height: 180px;
	margin: 0 auto 17px;
	display: block;
	object-fit: contain;
	filter:
		drop-shadow(0 16px 18px rgba(0, 0, 0, .40))
		drop-shadow(0 0 12px rgba(255, 132, 24, .08));
	transition:
		transform .24s ease,
		filter .24s ease;
}

.activity-rewards-banner:hover img {
	transform: translateY(-3px) scale(1.02);
	filter:
		drop-shadow(0 19px 21px rgba(0, 0, 0, .45))
		drop-shadow(0 0 14px rgba(255, 132, 24, .13));
}

/* Счётчик серии дней */
.day-in-a-row {
	position: relative;
	display: inline-block;
	padding: 0 2px 3px;
	border-bottom: 2px solid #ff8e22;
	background: linear-gradient(90deg, #ff4a3d, #ff9800);
	-webkit-background-clip: text;
	background-clip: text;
	color: #ff9b2f !important;
	-webkit-text-fill-color: transparent;
	font-weight: 950 !important;
	text-shadow: none;
}

/* Карточка награды */
.reward {
	position: relative;
	min-height: 102px;
	margin-bottom: 10px;
	padding: 11px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .075);
	border-radius: 11px;
	background:
		linear-gradient(
			145deg,
			rgba(255, 59, 59, .038),
			rgba(255, 152, 0, .018)
		),
		#171a20;
	color: #c9cdd4;
	box-shadow:
		0 10px 24px rgba(0, 0, 0, .24),
		inset 0 1px 0 rgba(255, 255, 255, .025);
	transition:
		transform .22s ease,
		border-color .22s ease,
		background .22s ease,
		box-shadow .22s ease;
}

.reward::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, #ff3b3b, #ff9800);
	opacity: .78;
}

.reward:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 152, 0, .22);
	background:
		linear-gradient(
			145deg,
			rgba(255, 59, 59, .065),
			rgba(255, 152, 0, .03)
		),
		#1a1d23;
	box-shadow:
		0 15px 30px rgba(0, 0, 0, .30),
		0 0 20px rgba(255, 126, 25, .06);
}

.reward:last-child {
	margin-bottom: 0;
}

/* Метка дня */
.reward .reward-day {
	position: relative;
	width: 80px;
	height: 80px;
	flex: 0 0 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid rgba(255, 211, 130, .30);
	border-radius: 10px;
	background:
		radial-gradient(
			circle at 50% 22%,
			rgba(255, 255, 255, .14),
			transparent 42%
		),
		linear-gradient(145deg, #ff3f3f, #ff9800);
	box-shadow:
		0 9px 22px rgba(255, 77, 35, .18),
		inset 0 1px 0 rgba(255, 255, 255, .20);
}

.reward .reward-day::after {
	content: "";
	position: absolute;
	right: -21px;
	bottom: -25px;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 50%;
}

.reward .reward-day span {
	position: relative;
	z-index: 2;
	margin: 0;
	color: #fff;
	font-size: 34px;
	font-weight: 950;
	line-height: 1;
	text-align: center;
	text-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}

.reward .reward-day i {
	position: relative;
	z-index: 2;
	margin-top: 6px;
	color: rgba(255, 255, 255, .88);
	font-size: 9px;
	font-style: normal;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: .45px;
	text-transform: uppercase;
}

/* Содержание награды */
.reward .reward-content {
	min-width: 0;
	padding-left: 15px;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-self: center;
}

.reward .reward-content span:nth-child(1) {
	overflow: hidden;
	color: #f0f2f4;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.reward .reward-content span:nth-child(2) {
	margin-top: 5px;
	color: #9299a3;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.55;
}

/* Полученная награда */
.reward .received {
	display: none;
}

.reward.active {
	border-color: rgba(255, 152, 0, .18);
}

.reward.active .received {
	position: absolute;
	inset: 0;
	z-index: 10;
	width: auto;
	height: auto;
	margin: 0;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: inherit;
	background:
		radial-gradient(
			circle at 50% 50%,
			rgba(255, 152, 0, .14),
			transparent 46%
		),
		rgba(11, 14, 18, .86);
	color: #fff;
	font-size: 18px;
	font-weight: 950;
	line-height: 1.3;
	letter-spacing: .55px;
	text-align: center;
	text-transform: uppercase;
	text-shadow:
		0 3px 12px rgba(0, 0, 0, .55),
		0 0 16px rgba(255, 133, 25, .16);
	backdrop-filter: blur(3px);
}

.reward.active .received::before {
	content: "\2713";
	width: 34px;
	height: 34px;
	margin-right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 214, 137, .35);
	border-radius: 50%;
	background: linear-gradient(135deg, #ff3b3b, #ff9800);
	color: #fff;
	font-size: 17px;
	line-height: 1;
	box-shadow: 0 8px 18px rgba(255, 76, 35, .22);
}

/* Дополнительные состояния */
.reward:not(.active):hover .reward-day {
	filter: brightness(1.05);
}

.reward.active .reward-day,
.reward.active .reward-content {
	filter: saturate(.65) brightness(.72);
}

/* Адаптивность */
@media (max-width: 560px) {
	.activity-rewards-banner {
		border-radius: 12px;
	}

	.activity-rewards-banner a {
		padding: 22px 15px 19px;
	}

	.activity-rewards-banner h3 {
		font-size: 17px;
	}

	.activity-rewards-banner p {
		font-size: 11px;
	}

	.activity-rewards-banner img {
		max-width: 210px;
	}

	.reward {
		min-height: 88px;
		padding: 9px;
	}

	.reward .reward-day {
		width: 68px;
		height: 68px;
		flex-basis: 68px;
	}

	.reward .reward-day span {
		font-size: 29px;
	}

	.reward .reward-day i {
		font-size: 8px;
	}

	.reward .reward-content {
		padding-left: 11px;
	}

	.reward .reward-content span:nth-child(1) {
		font-size: 13px;
		white-space: normal;
	}

	.reward .reward-content span:nth-child(2) {
		font-size: 9px;
	}

	.reward.active .received {
		font-size: 15px;
	}

	.reward.active .received::before {
		width: 30px;
		height: 30px;
		margin-right: 8px;
		font-size: 15px;
	}
}

@media (max-width: 380px) {
	.reward {
		align-items: center;
	}

	.reward .reward-day {
		width: 60px;
		height: 60px;
		flex-basis: 60px;
	}

	.reward .reward-day span {
		font-size: 25px;
	}

	.reward.active .received {
		flex-direction: column;
		gap: 7px;
	}

	.reward.active .received::before {
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.activity-rewards-banner *,
	.reward * {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
