:root {
        --accent-red: #dc2626;
        --accent-orange: #ea580c;
        --bg-primary: #112827;
        --bg-secondary: #1f2937;
        --bg-tertiary: #374151;
        --bg-spec: #4b5563;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-tertiary: #9ca3af;
        --border-color: #374151;
        --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        --bg-accent: linear-gradient(30deg, var(--accent-red), var(--accent-orange))
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-accent);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.header-logo-img {
    width: 100%;
}

.header-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Category Navigation */
.nav-menu {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.nav-categories {
    display: flex;
    gap: 0.25rem;
    padding: 1rem 0;
    flex-wrap: nowrap;
    min-width: max-content;
}

.nav-categories li {
    list-style: none;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: var(--bg-spec);
}

.category-btn.active {
    background: var(--bg-accent);
    color: white;
    box-shadow: var(--shadow-medium);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.cars-grid .car-card {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.cars-grid .car-card:hover {
    transform: scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.cars-grid .car-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.cars-grid .car-content {
    padding: 1.5rem;
}

.cars-grid .car-header {
    display: flex;
    justify-content: space-between;
    align-items-start;
    margin-bottom: 1rem;
}

.cars-grid .car-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f87171;
}

.cars-grid .car-category {
    background: var(--bg-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-transform: capitalize;
    height: 2.10rem;
    margin-left: 0.25rem;
}

.cars-grid .car-description {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cars-grid .specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.cars-grid .spec-item span {
    color: #9ca3af;
    font-size: 0.75rem;
}

.cars-grid .spec-item p {
    color: white;
    font-weight: 500;
}

.cars-grid .car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.cars-grid .car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #34d399;
}

.cars-grid .details-btn {
    background: var(--bg-accent);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cars-grid .details-btn:hover {
    background: linear-gradient(to right, #b91c1c, #c2410c);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination .pages-list {
    display: flex;
    gap: 1rem;
}

.pagination li {
    list-style: none;
}

.pagination .page-btn {
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    background-color: #374151;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination .page-btn.active {
    background: var(--bg-accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pagination .page-btn:hover:not(:disabled):not(.active) {
    background-color: var(--bg-spec);
}

.pagination .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Car List */
.content-grid .car-list {
    max-height: 384px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.content-grid .car-item {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.content-grid .car-item:hover {
    background-color: #374151;
}

.content-grid .car-item.active {
    background: var(--bg-accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.content-grid .car-item.active .car-name,
.content-grid .car-item.active .car-category {
    color: white;
}

.content-grid .car-name {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.content-grid .car-category {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Car Detail */
.content-grid .car-detail {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-heavy);
}

.content-grid .car-image-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.content-grid .car-image {
    width: 100%;
    height: 384px;
    object-fit: cover;
    display: block;
}

.content-grid .image-indicators {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.content-grid .image-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: var(--bg-spec);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.content-grid .image-indicator.active {
    background-color: var(--accent-red);
}

.content-grid .car-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.content-grid .car-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.content-grid .specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .content-grid .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-grid .specs-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.content-grid .specs-list {
    border-bottom: 1px solid var(--border-color);
}

.content-grid .specs-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.content-grid .specs-key {
    color: var(--text-tertiary);
    text-transform: capitalize;
}

.content-grid .specs-value {
    color: white;
    font-weight: 500;
}

.content-grid .info-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.content-grid .info-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.content-grid .info-item {
    margin-bottom: 1.5rem;
}

.content-grid .info-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.content-grid .info-category {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-transform: capitalize;
}

.content-grid .info-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #34d399;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content h3:first-child {
    margin-top: 0rem;
}
.article-content p {
    margin-bottom: 0.5rem;
}

.tags-list {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.article-grid .tags-list {
    padding: 1rem 0;
}

.tags-list li {
    list-style: none;
    margin: 0.25rem 0;
}

.tags-section {
    padding: 1.5rem 0;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    max-height: 300px;
    opacity: 1;
}

.tags-section.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    color: var(--accent-orange);
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.tags-container.expanded {
    max-height: 300px;
    opacity: 1;
}

:is(.tags-list, .tags-container) .tag {
    padding: 0.25rem 1rem;
    border-radius: 5px;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

:is(.tags-list, .tags-container) .tag:hover {
    background-color: var(--bg-spec);
}

:is(.tags-list, .tags-container) .tag.active {
    background: var(--bg-accent);
    color: white;
    box-shadow: var(--shadow-medium);
    transform: scale(1.05);
}

.search-section {
    background-color: #1e293b;
    border-bottom: 0px solid #334155;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 300px;
    opacity: 1;
}

.search-section.collapsed {
    max-height: 0;
    opacity: 0;
}

.search-container {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid #475569;
    background-color: #0f172a;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.search-input::placeholder {
    color: #94a3b8;
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--bg-accent);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.footer-logo-img {
    width: 100%;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-links,
.footer-nav {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

a,
.nav-links :is(a, button),
.footer-nav a {
    color: var(--text-tertiary);
    background-color: transparent;
    border: 0;
    font-size: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a,
.nav-links  :is(a, button):hover,
.footer-nav a:hover {
    color: white;
}

.nav-links li {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 2rem;
}

.user-content {
    margin: auto;
    width: fit-content;
    max-width: 40rem;
}

.form-label {
    display: inline-block;
    width: 10rem;
    vertical-align: middle;
    line-height: 1.25rem;
}

.form-input, .login-form :is(input, textarea) {
    width: 20rem;
    padding: 0.5rem 0.5rem;
    border-radius: 5px;
    margin-top: 0.75rem;
}

.form-input:disabled {
    color: var(--text-primary);
}

.form-btn.active {
    background: var(--bg-accent);
    color: white;
    box-shadow: var(--shadow-medium);
    transform: scale(1.05);
}
.form-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-top: 1.25rem
}

.sep {
    margin: 1.25rem 0;
}

.errorlist {
    color: var(--accent-orange);
    padding: 1rem 0;
}

.errorlist * {
    line-height: 1.25rem;
    padding: 0.35rem 0;
}

.captcha {
    position: relative;
    top: 1.7rem;
    border-radius: 5px;
}

.field-container {
    display: flex;
    align-items: baseline;
}

.field-container:has(.captcha) {
    margin: -0.6rem 0 1.6rem;
}

.field-container>input[name=captcha_1] {
    width: 5rem;
}


@media (min-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}