/* Styles for the filter pickers on the learn page (#ageModal etc.) */
@keyframes rioFilterCardIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

.rio-filter-modal .modal-content {
	border: none;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 24px 80px -12px rgba(15, 40, 90, 0.35);
	background:
		radial-gradient(900px 260px at 50% -60px, rgba(0, 140, 255, 0.10) 0%, rgba(0, 140, 255, 0) 70%),
		linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.rio-filter-modal .modal-header {
	border-bottom: none;
	align-items: flex-start;
	padding: 28px 32px 6px;
}
.rio-filter-modal .modal-title {
	font-weight: 800;
	font-size: 1.9rem;
	letter-spacing: -.5px;
	background: linear-gradient(135deg, #00a2ff 0%, #0056d6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: .25rem;
}
.rio-filter-modal .rio-filter-sub {
	color: #6b7280;
	font-size: .95rem;
	line-height: 1.5;
	margin: 0;
}
.rio-filter-modal .btn-close {
	opacity: .55;
	padding: 10px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.04);
	transition: opacity .18s ease, background-color .18s ease, transform .18s ease;
}
.rio-filter-modal .btn-close:hover {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.08);
	transform: rotate(90deg);
}
.rio-filter-modal .modal-body {
	padding: 18px 32px 30px;
}

.rio-filter-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.rio-filter-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	border: 1px solid #e9eef5;
	border-radius: 20px;
	background: #fff;
	padding: 14px 20px;
	text-decoration: none;
	overflow: hidden;
	box-shadow: 0 8px 24px -16px rgba(20, 50, 100, 0.22);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	animation: rioFilterCardIn .4s ease both;
}
/* First child is the hidden clone template, so visible cards start at 2 */
.rio-filter-card:nth-child(2) { animation-delay: .03s; }
.rio-filter-card:nth-child(3) { animation-delay: .08s; }
.rio-filter-card:nth-child(4) { animation-delay: .13s; }
.rio-filter-card:nth-child(5) { animation-delay: .18s; }
.rio-filter-card:nth-child(6) { animation-delay: .23s; }
/* Accent bar that slides in from the left on hover */
.rio-filter-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: linear-gradient(180deg, #00a2ff 0%, #0056d6 100%);
	transform: translateX(-4px);
	transition: transform .2s ease;
}
.rio-filter-card:hover {
	transform: translateY(-2px);
	border-color: #b7dcff;
	box-shadow: 0 16px 36px -16px rgba(0, 110, 220, 0.35);
}
.rio-filter-card:hover::before {
	transform: translateX(0);
}
.rio-filter-icon {
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	background: linear-gradient(145deg, #eaf5ff 0%, #f4faff 100%);
	transition: transform .2s ease;
}
.rio-filter-icon img {
	max-width: 48px;
	max-height: 48px;
}
.rio-filter-card:hover .rio-filter-icon {
	transform: scale(1.08) rotate(-3deg);
}
.rio-filter-text {
	flex: 1 1 auto;
	min-width: 0;
}
.rio-filter-text h5 {
	color: #17284c;
	font-weight: 700;
	font-size: 1.08rem;
	margin: 0 0 3px;
}
.rio-filter-text p {
	color: #6b7280;
	font-size: .92rem;
	line-height: 1.45;
	margin: 0;
}
.rio-filter-chevron {
	flex: 0 0 auto;
	color: #c3cfde;
	font-size: .95rem;
	transition: transform .2s ease, color .2s ease;
}
.rio-filter-card:hover .rio-filter-chevron {
	color: #008cff;
	transform: translateX(4px);
}

@media (max-width: 576px) {
	.rio-filter-modal .modal-header {
		padding: 22px 22px 4px;
	}
	.rio-filter-modal .modal-body {
		padding: 14px 18px 22px;
	}
	.rio-filter-modal .modal-title {
		font-size: 1.5rem;
	}
	.rio-filter-card {
		gap: 14px;
		padding: 12px 16px;
	}
	.rio-filter-icon {
		width: 56px;
		height: 56px;
		border-radius: 14px;
	}
	.rio-filter-icon img {
		max-width: 40px;
		max-height: 40px;
	}
}

/* ============ Dark theme ============ */
/* theme.css stamps html[data-theme="dark"] and supplies the --tt-* scale.
   The accent bar gradient keeps its bright blue; the title gradient gets
   brighter stops so it doesn't sink into the dark sheet. */

html[data-theme="dark"] .rio-filter-modal .modal-content {
	box-shadow: 0 24px 80px -12px rgba(0, 0, 0, 0.65);
	background:
		radial-gradient(900px 260px at 50% -60px, rgba(0, 140, 255, 0.12) 0%, rgba(0, 140, 255, 0) 70%),
		linear-gradient(180deg, var(--tt-surface, #111a2e) 0%, #0e1628 100%);
}
html[data-theme="dark"] .rio-filter-modal .modal-title {
	background: linear-gradient(135deg, #38b6ff 0%, #7cc4ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
}
html[data-theme="dark"] .rio-filter-modal .rio-filter-sub {
	color: var(--tt-muted, #94a3b8);
}
html[data-theme="dark"] .rio-filter-modal .btn-close {
	background-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .rio-filter-modal .btn-close:hover {
	background-color: rgba(255, 255, 255, 0.16);
}

/* Filter cards */
html[data-theme="dark"] .rio-filter-card {
	border-color: var(--tt-line, #263450);
	background: var(--tt-surface-2, #17233b);
	box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .rio-filter-card:hover {
	border-color: rgba(0, 140, 255, 0.45);
	box-shadow: 0 16px 36px -16px rgba(0, 110, 220, 0.35);
}
html[data-theme="dark"] .rio-filter-icon {
	background: linear-gradient(145deg, rgba(0, 140, 255, 0.16) 0%, rgba(0, 140, 255, 0.07) 100%);
}
html[data-theme="dark"] .rio-filter-text h5 {
	color: var(--tt-ink, #e6ebf5);
}
html[data-theme="dark"] .rio-filter-text p {
	color: var(--tt-muted, #94a3b8);
}
html[data-theme="dark"] .rio-filter-chevron {
	color: var(--tt-line-strong, #33436a);
}
html[data-theme="dark"] .rio-filter-card:hover .rio-filter-chevron {
	color: #38b6ff;
}
