/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px 0;
}

/* Showcase Header */
.showcase-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn:focus {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-2px);
    outline: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    z-index: 1;
}
.search-box input {
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box input::placeholder {
    color: #94a3b8;
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.vehicle-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vehicle-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.vehicle-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card:hover .vehicle-overlay {
    opacity: 1;
}

.view-details-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: #1f2937;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.vehicle-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vehicle-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border: 1px solid #bae6fd;
}

.vehicle-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.vehicle-brief {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.vehicle-highlights {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.highlight-item i {
    color: #3b82f6;
    font-size: 12px;
}

.vehicle-actions {
    margin-top: 10px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn:hover,
.primary-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb, #1e40af);
    outline: none;
}

/* Vehicle Detail Page */
.vehicle-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.back-navigation {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #64748b;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.back-btn:hover,
.back-btn:focus {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateX(-4px);
    outline: none;
}

.vehicle-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.vehicle-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
}

.vehicle-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.vehicle-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vehicle-header {
    margin-bottom: 25px;
}

.vehicle-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.vehicle-category {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #bae6fd;
}

.vehicle-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 30px;
}

.key-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.feature-item i {
    color: #3b82f6;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

/* Specifications Section */
.specifications-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 30px;
    text-align: center;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.spec-category {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.spec-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.spec-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.spec-category h3 i {
    color: #3b82f6;
    font-size: 18px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #64748b;
    font-size: 14px;
}

.spec-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    text-align: right;
}

.spec-value.feature-yes {
    color: #059669;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* Statistics Section */
.stats-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    color: #ffffff;
    font-size: 24px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

/* No Vehicles State */
.no-vehicles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-vehicles-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-vehicles-content i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-vehicles-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.no-vehicles-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }
    .main-title {
        font-size: 2.5rem;
    }
    .vehicle-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    .vehicle-main-image {
        height: 300px;
    }
    .specifications-section {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    .main-subtitle {
        font-size: 1.1rem;
    }
    .filter-section {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 20px 10px;
    }
    .filter-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    .search-box input {
        width: 100%;
    }
    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vehicle-content {
        padding: 18px;
    }
    .vehicle-name {
        font-size: 1.1rem;
    }
    .vehicle-highlights {
        gap: 10px;
    }
    .highlight-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-item {
        padding: 20px 15px;
    }
    .spec-category {
        padding: 20px 15px;
    }
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .spec-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    .main-content {
        padding: 10px 0;
    }
    .main-title {
        font-size: 1.3rem;
    }
    .filter-controls {
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    .filter-btn span {
        display: none;
    }
    .vehicle-content {
        padding: 10px;
    }
    .vehicle-name {
        font-size: 1rem;
    }
    .vehicle-highlights {
        gap: 5px;
    }
    .highlight-item {
        padding: 4px 6px;
        font-size: 11px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item {
        padding: 12px 8px;
    }
    .spec-category {
        padding: 10px 8px;
    }
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    .spec-value {
        text-align: left;
    }
}

/* Print Styles */
@media print {
    .filter-section,
    .back-navigation,
    .vehicle-overlay,
    .vehicle-actions {
        display: none;
    }
    .main-content {
        background: #ffffff;
    }
    .vehicle-card,
    .specifications-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    .vehicle-grid {
        gap: 10px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .vehicle-card {
        border: 2px solid #000000;
    }
    .filter-btn {
        border: 2px solid #000000;
    }
    .primary-btn {
        background: #000000;
        border: 2px solid #000000;
    }
    .spec-category {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .vehicle-card:hover,
    .filter-btn:hover,
    .primary-btn:hover {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.filter-btn:focus,
.primary-btn:focus,
.back-btn:focus,
.view-details-btn:focus,
.search-box input:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none; }
.visible { display: block; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection Styles */
::selection {
    background: #3b82f6;
    color: #ffffff;
}
::-moz-selection {
    background: #3b82f6;
    color: #ffffff;
}