/* NE Design System — modules/cars.css (#71) */
/* Car archive and single page styles — mirrors tracks.css */

/* === Filter bar === */
.ne-car-filters {
	display: flex;
	flex-direction: column;
	gap: var(--ne-space-3);
	margin-bottom: var(--ne-space-6);
	padding: var(--ne-space-4);
	background: var(--ne-surface);
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius-lg);
}

.ne-car-filters__search {
	width: 100%;
}

.ne-car-filters__search .ne-input {
	width: 100%;
	background: var(--ne-elevated);
	color: var(--ne-text);
}

.ne-car-filters__search .ne-input::placeholder {
	color: var(--ne-text-subtle);
}

.ne-car-filters__selects {
	display: flex;
	gap: var(--ne-space-3);
}

.ne-car-filters__selects .ne-select {
	flex: 1;
	background: var(--ne-elevated);
	color: var(--ne-text-subtle);
}

.ne-car-filters__selects .ne-select:not([value=""]) {
	color: var(--ne-text);
}

/* === Hero variant for cars === */
.ne-hero--cars {
	min-height: 340px;
	background:
		linear-gradient(180deg, rgba(11, 13, 26, 0.4) 0%, rgba(11, 13, 26, 0.85) 70%, var(--ne-bg) 100%),
		var(--ne-surface);
}

.ne-hero--cars .ne-hero__title {
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* === Car card (archive) === */
.ne-car-card {
	display: block;
	text-decoration: none;
	background: var(--ne-surface);
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius-lg);
	overflow: hidden;
	transition: transform var(--ne-duration) var(--ne-ease),
	            border-color var(--ne-duration) var(--ne-ease),
	            box-shadow var(--ne-duration) var(--ne-ease);
}

.ne-car-card:hover {
	transform: translateY(-1px);
	border-color: var(--ne-border-s);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* === Car card image === */
.ne-car-card__image {
	position: relative;
	height: 160px;
	overflow: hidden;
}

.ne-car-card__image > img:first-child {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--ne-duration) var(--ne-ease);
}

.ne-car-card:hover .ne-car-card__image > img:first-child {
	transform: scale(1.03);
}

.ne-car-card__brand {
	position: absolute;
	bottom: 8px;
	right: 8px;
	width: 40px;
	opacity: 0.6;
}

/* === Car card body === */
.ne-car-card__body {
	padding: var(--ne-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--ne-space-1);
}

.ne-car-card__name {
	font-family: var(--ne-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ne-text);
	margin: 0;
}

.ne-car-card__specs {
	font-family: var(--ne-font-mono);
	font-size: 0.688rem;
	color: var(--ne-text-muted);
}

/* ============================================
   Single Car Page
   ============================================ */

/* Hero variant for single car */
.ne-hero--car-single {
	min-height: 320px;
	background-size: cover;
	background-position: center;
}

.ne-hero--car-single::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 13, 26, 0.3) 0%, rgba(11, 13, 26, 0.85) 70%, var(--ne-bg) 100%);
	z-index: 0;
}

body:not(.dark-theme) .ne-hero--car-single::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 70%, var(--ne-bg) 100%);
}

.ne-hero--car-single__logo {
	max-width: 280px;
	max-height: 120px;
	filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
}

/* Layout — sidebar left (340px), content right (1fr) */
.ne-car-single {
	grid-template-columns: 340px 1fr;
	align-items: start;
}

/* Brand logo card */
.ne-car-single__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--ne-space-6);
}

.ne-car-single__brand img {
	max-width: 240px;
	height: auto;
	opacity: 0.8;
}

/* Metadata table */
.ne-car-single .ne-table--flush td {
	font-size: 0.8rem;
}

.ne-car-single__label {
	font-family: var(--ne-font-mono);
	font-size: 0.6rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--ne-text-muted);
	white-space: nowrap;
}

/* Modder card */
.ne-car-single__modder {
	display: flex;
	align-items: center;
	gap: var(--ne-space-3);
	margin-bottom: var(--ne-space-4);
}

.ne-car-single__modder-logo {
	width: 40px;
	height: 40px;
	border-radius: var(--ne-radius-md);
	object-fit: cover;
}

.ne-car-single__modder-name {
	font-family: var(--ne-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ne-text);
	text-decoration: none;
}

.ne-car-single__modder-name:hover {
	color: var(--ne-accent);
}

/* Car photo */
.ne-car-single__photo {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--ne-radius-lg);
}

/* Content area */
.ne-car-single__content {
	font-family: var(--ne-font-body);
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--ne-text-subtle);
}

.ne-car-single__content p {
	margin: 0 0 var(--ne-space-4);
}

.ne-car-single__content p:last-child {
	margin-bottom: 0;
}

/* === Responsive === */
@media only screen and (max-width: 750px) {
	.ne-car-filters__selects {
		flex-direction: column;
	}

	.ne-car-single.ne-grid--sidebar {
		grid-template-columns: 1fr;
	}
}
