/**
 * Styles for the free LUTs page
 *
 * @copyright   2026, ON1
 */

/* !- Page navigation */
#page-navigation {
	background: var(--bg-800);
}

#page-navigation .nav-item {
	margin: 0 0.75rem 0 0;
}

#page-navigation .nav-item:last-child {
	margin-right: 0;
}

#page-navigation .nav-link {
	border-bottom: 3px solid transparent;
	color: var(--text-300);
	font-size: var(--text-xs);
	font-weight: 500;
	padding: 1rem 0.75rem;
}

#page-navigation .nav-link.active,
#page-navigation .nav-link:hover {
	border-color: var(--blue-500);
	color: var(--text-100);
}

/* !- Hero */
#hero {
	align-items: center;
	background: url(https://ononesoft.cachefly.net/images/free/v3/luts/hero-bg@2x.jpg) center center no-repeat;
	background-size: cover;
	color: var(--text-200);
	display: flex;
	min-height: 420px;
	padding: 4rem 0;
	position: relative;
}

#hero::before {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.56) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

#hero .container {
	position: relative;
	width: 100%;
	z-index: 2;
}

#hero .breadcrumb {
	color: var(--text-200);
	font-size: var(--text-mini);
}

#hero .breadcrumb .separator {
	margin: 0 0.25rem;
}

#hero .breadcrumb a {
	color: var(--text-200);
	text-decoration: none;
}

#hero .breadcrumb a:hover {
	color: var(--text-50);
	text-decoration: underline;
}

#hero .breadcrumb .here {
	color: var(--text-50);
}

#hero .list-inline,
#hero .list-inline-item {
	margin-bottom: 0;
}

#hero .works-with {
	margin-bottom: 2rem;
}

#hero .works-with .rounded-pill {
	background: var(--bg-800);
	border: 1px solid var(--bg-700);
	color: var(--text-200);
	font-size: var(--text-micro);
	font-weight: 500;
	padding: 0.375rem 0.75rem;
}

#hero .btn {
	padding: 0.9375rem 1.875rem;
}

#hero .hero-note {
	color: var(--text-200);
	font-size: var(--text-mini);
	margin-left: 0.75rem;
}

@media (min-width: 992px) {
	/* Hold the photo's proportion only where the copy is comfortably shorter than the image is tall */
	#hero {
		aspect-ratio: 2880 / 1067;
		min-height: 480px;
		padding: 5rem 0;
	}

	/* Copy is left-aligned on wide screens, so weight the scrim left and let the photo breathe on the right */
	#hero::before {
		background: linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.3) 68%, rgba(0, 0, 0, 0.08) 88%, rgba(0, 0, 0, 0) 100%);
	}
}

/* !- Comparison table */
#comparison .section-intro {
	margin-bottom: 1.75rem;
}

#comparison .compare {
	border: 1px solid var(--bg-700);
	border-collapse: separate;
	border-radius: var(--border-radius);
	border-spacing: 0;
	margin: 0 0 1.75rem 0;
	width: 100%;
}

#comparison .compare th,
#comparison .compare td {
	border-bottom: 1px solid var(--bg-700);
	padding: 0.875rem 1rem;
	text-align: center;
	vertical-align: middle;
}

#comparison .compare thead th {
	background: var(--bg-800);
	color: var(--text-100);
	font-size: var(--text-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 1rem;
	text-transform: uppercase;
}

#comparison .compare tbody th {
	color: var(--text-50);
	font-size: var(--text-xs);
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
}

#comparison .compare tbody td {
	color: var(--text-300);
	font-size: var(--text-mini);
	font-weight: 500;
}

#comparison .compare .highlight {
	background: color-mix(in srgb, var(--blue-500) 8%, transparent);
	color: var(--blue-300);
	font-weight: 600;
}

#comparison .compare tbody tr:last-child th,
#comparison .compare tbody tr:last-child td {
	border-bottom: 0;
}

#comparison .compare thead th:first-child {
	border-top-left-radius: var(--border-radius);
}

#comparison .compare thead th:last-child {
	border-top-right-radius: var(--border-radius);
}

#comparison .compare tbody tr:last-child th:first-child {
	border-bottom-left-radius: var(--border-radius);
}

#comparison .compare tbody tr:last-child td:last-child {
	border-bottom-right-radius: var(--border-radius);
}

#comparison .comparison-trial .btn {
	padding: 0.9375rem 1.875rem;
}

/* !- LUTs */
#luts .filter-pills {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

#luts .filter-pill {
	background: var(--bg-800);
	border: none;
	border-radius: 50rem;
	color: var(--text-300);
	cursor: pointer;
	font-size: var(--text-mini);
	font-weight: 500;
	padding: 0.375rem 0.9375rem;
}

#luts .filter-pill.active {
	background: var(--blue-500);
	color: var(--white);
	font-weight: 600;
}

#luts .filter-pill:hover {
	color: var(--text-100);
}

#luts .filter-pill.active:hover {
	color: var(--white);
}

#luts #lutGrid>.col {
	display: flex;
}

#luts .lut-card {
	background: var(--bg-800);
	border-radius: var(--border-radius);
	display: flex;
	flex: 1;
	flex-direction: column;
}

#luts .lut-card image-compare img {
	border-top-left-radius: var(--border-radius);
	border-top-right-radius: var(--border-radius);
}

#luts .lut-wrap {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
}

#luts .lut-name {
	color: var(--text-100);
	font-size: var(--text-lg);
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 0;
}

#luts .lut-source {
	align-items: center;
	color: var(--gold-500);
	display: flex;
	font-size: var(--text-mini);
	font-weight: 600;
	gap: 0.25rem;
	margin-bottom: 0;
}

#luts .lut-source i {
	margin-top: -0.075rem;
}

#luts .lut-desc {
	color: var(--text-500);
	flex: 1;
	font-size: var(--text-xs);
	line-height: 1.5;
	margin-bottom: 0.75rem;
}

#luts .lut-actions {
	display: flex;
	gap: 0.75rem;
}

#luts .lut-actions .btn {
	flex: 1;
	font-size: var(--text-xs);
	font-weight: 600;
	padding: 0.75rem;
}

/* !- What are LUTs? */
#what-are-luts .num-list {
	counter-reset: num;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

#what-are-luts .num-item {
	align-items: center;
	background: var(--bg-800);
	border-radius: 0.5rem;
	counter-increment: num;
	display: flex;
	font-size: var(--text-sm);
	line-height: 1.5;
	margin-bottom: 0;
	padding: 1rem 1.5rem;
}

#what-are-luts .num-item::before {
	align-items: center;
	background: var(--blue-500);
	border-radius: 50%;
	color: var(--white);
	content: counter(num);
	display: flex;
	flex-shrink: 0;
	font-size: var(--text-sm);
	font-weight: 700;
	height: 2rem;
	justify-content: center;
	margin-right: 0.75rem;
	width: 2rem;
}

/* Color grade photos */
#color-grade-photos-banner {
	background: var(--bg-700);
}

#color-grade-photos-banner .btn {
	padding: 0.9375rem 1.875rem;
}

/* !- Tips and tricks */
#tips {
	background: var(--bg-800);
}

#tips .section-intro {
	margin-bottom: 1.75rem;
}

#tips.faqs .faq-item {
	background: var(--bg-900);
	border-radius: var(--border-radius);
	margin-bottom: 1rem;
	padding: 1.5rem;
}

#tips.faqs .faq-item:first-of-type {
	border: none;
}

#tips.faqs .faq-item:last-child {
	margin-bottom: 0;
}

#tips.faqs .faq-q {
	font-size: var(--text-base);
}

#tips.faqs .faq-a {
	font-size: var(--text-sm);
}
