/* Cars Page Styling */

/* Hero Section */
.cars__hero {
	background: linear-gradient(135deg, #8b0000 0%, #8b0000 50%, #8b0000 100%);
	padding: 120px 0 80px;
	text-align: center;
	color: white;
	position: relative;
}

.cars__hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(26, 35, 126, 0.8);
	z-index: 1;
}

.cars__hero .section__container {
	position: relative;
	z-index: 2;
}

.cars__title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.cars__subtitle {
	font-size: 1.25rem;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
}

/* Filters Section */
.cars__filters {
	background: #f8fafc;
	padding: 2rem 0;
	border-bottom: 1px solid #e2e8f0;
}

.filters__container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.search__container {
	position: relative;
	max-width: 400px;
	width: 100%;
}

.search__container i {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	font-size: 1.2rem;
}

#searchInput {
	width: 100%;
	padding: 0.875rem 1rem 0.875rem 3rem;
	border: 2px solid #e2e8f0;
	border-radius: 0.75rem;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: white;
}

#searchInput:focus {
	outline: none;
	border-color: #8b0000;
	box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.filter__group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.filter__group select {
	padding: 0.875rem 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 0.75rem;
	font-size: 1rem;
	background: white;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 150px;
}

.filter__group select:focus {
	outline: none;
	border-color: #8b0000;
	box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.reset__btn {
	padding: 0.875rem 1.5rem;
	background: #64748b;
	color: white;
	border: none;
	border-radius: 0.75rem;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.reset__btn:hover {
	background: #475569;
	transform: translateY(-2px);
}

/* Cars Grid */
.cars__grid__section {
	padding: 3rem 0;
	background: #f1f5f9;
	min-height: 60vh;
}

.cars__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
	.car__card:hover {
		transform: none;
	}

	.view__details:hover,
	.btn:hover {
		transform: none;
	}

	.view__details:active,
	.btn:active {
		transform: scale(0.98);
		transition: transform 0.1s ease;
	}
}

.car__card {
	background: #8b0000;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(26, 35, 126, 0.3);
	transition: all 0.3s ease;
	color: white;
	position: relative;
}

.car__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(26, 35, 126, 0.4);
}

.car__image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.car__content {
	padding: 1.5rem;
}

.car__name {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: white;
}

.car__year {
	color: #8b0000;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.car__features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.feature__tag {
	background: #ffffff;
	color: rgb(0, 0, 0);
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.car__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
}

.car__price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #a5ffc6;
}

.view__details {
	background: #8b0000;
	color: white;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 0.75rem;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	border: 2px solid white;
}

.view__details:hover {
	background: #ffffff;
	transform: translateY(-2px);
	color: #8b0000;
}

/* No Results */
.no__results {
	text-align: center;
	padding: 4rem 2rem;
	color: #64748b;
}

.no__results i {
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.no__results h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: #1e293b;
}

.no__results p {
	font-size: 1rem;
	opacity: 0.8;
}

/* Navigation Active State */
.nav__links a.active {
	color: #8b0000;
	font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
	.cars__title {
		font-size: 2.5rem;
	}

	.cars__subtitle {
		font-size: 1rem;
	}

	.filters__container {
		align-items: stretch;
	}

	.search__container {
		max-width: 100%;
	}

	.filter__group {
		flex-direction: column;
		align-items: stretch;
	}

	.filter__group select {
		min-width: 100%;
	}

	.cars__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 0 1rem;
	}

	.car__card {
		margin: 0;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.cars__hero {
		padding: 100px 0 60px;
	}

	.cars__title {
		font-size: 2rem;
		line-height: 1.2;
	}

	.cars__subtitle {
		font-size: 1rem;
		padding: 0 1rem;
	}

	.cars__filters {
		padding: 1.5rem 0;
	}

	.filters__container {
		padding: 0 1rem;
	}

	.filter__group select,
	#searchInput,
	.reset__btn {
		padding: 1rem;
		font-size: 1rem;
		border-radius: 8px;
	}

	.cars__grid {
		margin-top: 1.5rem;
		padding: 0 1rem;
	}

	.car__card {
		margin: 0;
		border-radius: 12px;
	}

	.car__content {
		padding: 1rem;
	}

	.car__name {
		font-size: 1.25rem;
		line-height: 1.3;
	}

	.car__year {
		font-size: 0.9rem;
		margin-bottom: 0.75rem;
	}

	.car__features {
		margin-bottom: 1rem;
	}

	.feature__tag {
		font-size: 0.8rem;
		padding: 0.2rem 0.6rem;
	}

	.car__bottom {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.car__price {
		font-size: 1.25rem;
		text-align: center;
	}

	.view__details {
		text-align: center;
		width: 100%;
		padding: 0.875rem 1.5rem;
		font-size: 0.95rem;
	}

	.no__results {
		padding: 3rem 1rem;
	}

	.no__results i {
		font-size: 3rem;
	}

	.no__results h3 {
		font-size: 1.25rem;
	}
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.modal__content {
	position: relative;
	background-color: white;
	margin: 2% auto;
	padding: 0;
	border-radius: 16px;
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.close__btn {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	color: #666;
	cursor: pointer;
	z-index: 10001;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	transition: all 0.3s ease;
}

.close__btn:hover {
	color: #8b0000;
	background: rgba(255, 255, 255, 1);
	transform: scale(1.1);
}

.modal__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	padding: 2rem;
}

.modal__image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal__image img {
	width: 100%;
	max-width: 400px;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	object-fit: cover;
}

.modal__details h2 {
	color: #8b0000;
	font-size: 2rem;
	margin-bottom: 1.5rem;
	font-weight: 700;
}

.modal__info {
	display: grid;
	gap: 1rem;
	margin-bottom: 2rem;
}

.info__item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 4px solid #8b0000;
}

.info__label {
	font-weight: 600;
	color: #475569;
}

.info__item span:last-child {
	font-weight: 600;
	color: #1e293b;
}

.modal__description,
.modal__features {
	margin-bottom: 2rem;
}

.modal__description h3,
.modal__features h3 {
	color: #8b0000;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

.modal__description p {
	color: #475569;
	line-height: 1.6;
	font-size: 1rem;
}

.features__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.feature__badge {
	background: linear-gradient(135deg, #8b0000, #8b0000);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
}

.modal__actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.btn {
	padding: 1rem 2rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
	text-align: center;
	justify-content: center;
}

.btn__primary {
	background: linear-gradient(135deg, #8b0000, #8b0000);
	color: white;
	flex: 1;
}

.btn__primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
	color: white !important;
}

.btn__secondary {
	background: transparent;
	color: #8b0000;
	border: 2px solid #8b0000;
}

.btn__secondary:hover {
	background: #8b0000;
	color: white;
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
	.modal__content {
		width: 95%;
		margin: 5% auto;
		max-height: 85vh;
	}

	.modal__body {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.modal__details h2 {
		font-size: 1.5rem;
		text-align: center;
	}

	.modal__actions {
		flex-direction: column;
		gap: 0.75rem;
	}

	.btn {
		padding: 0.875rem 1.5rem;
		font-size: 0.95rem;
	}

	.close__btn {
		top: 10px;
		right: 15px;
		font-size: 24px;
		width: 35px;
		height: 35px;
	}
}

@media (max-width: 480px) {
	.modal__content {
		width: 100%;
		margin: 0;
		border-radius: 0;
		height: 100vh;
		max-height: none;
		position: fixed;
		top: 0;
		left: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.modal__body {
		padding: 1rem;
		gap: 1rem;
		min-height: calc(100vh - 2rem);
	}

	.modal__image {
		order: -1;
	}

	.modal__image img {
		max-width: 100%;
		height: 200px;
		object-fit: cover;
		border-radius: 8px;
	}

	.modal__details h2 {
		font-size: 1.25rem;
		margin-bottom: 1rem;
	}

	.modal__info {
		gap: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.info__item {
		flex-direction: column;
		gap: 0.25rem;
		padding: 0.625rem 0.875rem;
	}

	.info__label {
		font-size: 0.85rem;
		opacity: 0.8;
	}

	.info__item span:last-child {
		font-size: 0.95rem;
	}

	.modal__description,
	.modal__features {
		margin-bottom: 1.5rem;
	}

	.modal__description h3,
	.modal__features h3 {
		font-size: 1.1rem;
		margin-bottom: 0.75rem;
	}

	.modal__description p {
		font-size: 0.9rem;
		line-height: 1.5;
	}

	.feature__badge {
		font-size: 0.8rem;
		padding: 0.4rem 0.8rem;
	}

	.modal__actions {
		margin-top: 1.5rem;
		padding-top: 1rem;
		border-top: 1px solid #e2e8f0;
	}

	.btn {
		padding: 1rem;
		font-size: 0.9rem;
		border-radius: 6px;
	}

	.close__btn {
		top: 0.5rem;
		right: 0.5rem;
		background: rgba(0, 0, 0, 0.8);
		color: white;
		border: 2px solid rgba(255, 255, 255, 0.2);
	}

	.close__btn:hover {
		background: rgba(0, 0, 0, 0.9);
		transform: none;
	}
}

footer {
	background: black;
	color: var(--white);
	padding: 3rem 0 1rem;
	margin-top: 0rem;
}

.footer__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.footer__content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 3rem;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
	color: var(--white);
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.footer__logo img {
	background: var(--white);
	padding: 0.5rem;
	border-radius: 8px;
	object-fit: contain;
	width: auto;
}

.footer__logo h3 {
	font-family: var(--header-font);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--white);
}

.footer__description {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.footer__contact p {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
}

.footer__contact a {
	color: var(--white);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer__contact a:hover {
	color: var(--primary-color);
}

.footer__links-section {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.footer__links-group h4 {
	font-family: var(--header-font);
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--white);
	position: relative;
	padding-bottom: 0.5rem;
}

.footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer__links a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.9rem;
	padding: 0.3rem 0;
	transition: all 0.3s ease;
	border-radius: 4px;
}

.footer__links a:hover {
	color: var(--white);
	padding-left: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
}

.footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer__info {
	color: rgba(255, 255, 255, 0.7);
}

.footer__info p {
	margin: 0.2rem 0;
	font-size: 0.85rem;
}

.footer__social {
	display: flex;
	gap: 1rem;
}

.footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
	border-radius: 50%;
	text-decoration: none;
	font-size: 1.2rem;
	transition: all 0.3s ease;
}

.footer__social a:hover {
	background: var(--primary-color);
	transform: translateY(-2px);
}

/* Footer Mobile Responsive Styles */
@media (max-width: 768px) {
	.footer__content {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
	}

	.footer__brand {
		order: 1;
	}

	.footer__links-section {
		order: 2;
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
	}

	.footer__links-group h4 {
		text-align: center;
		margin-bottom: 1rem;
	}

	.footer__links {
		align-items: center;
		text-align: center;
	}

	.footer__bottom {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.footer__info {
		text-align: center;
	}

	.footer__social {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	footer {
		padding: 2rem 0 1rem;
		text-align: center;
	}

	.footer__content {
		gap: 1.5rem;
		text-align: center;
	}

	.footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.footer__logo {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		width: 100%;
		gap: 0.5rem;
	}

	.footer__logo img {
		display: flex;
		align-self: center;
	}

	.footer__description {
		text-align: center;
		font-size: 0.9rem;
	}

	.footer__contact {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.footer__contact p {
		display: flex;
		justify-content: center;
		align-items: center;
		text-align: center;
		gap: 0.5rem;
	}

	.footer__links-section {
		gap: 1.5rem;
		text-align: center;
	}

	.footer__links-group {
		text-align: center;
	}

	.footer__links-group h4 {
		font-size: 1rem;
		text-align: center;
	}

	.footer__links {
		text-align: center;
		align-items: center;
	}

	.footer__links a {
		font-size: 0.85rem;
		padding: 0.4rem 0;
		text-align: center;
	}

	.footer__bottom {
		text-align: center;
	}

	.footer__info {
		text-align: center;
	}

	.footer__info p {
		font-size: 0.8rem;
		text-align: center;
	}

	.footer__social a {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}
}
