/* 
 * NextGen Motors - Premium EV Design System
 * Theme: Gray and Blue
 */

:root {
    --primary-color: #2563eb; /* Premium Azure Blue (Darker for light theme) */
    --secondary-color: #f1f5f9; /* Slate 100 - Light Gray Blue */
    --accent-color: #3b82f6; /* Blue 500 Accent */
    --text-color: #1e293b; /* Slate 800 - Deep Gray Text */
    --muted-text: #64748b; /* Slate 500 */
    --card-bg: #ffffff; /* Pure White */
    --border-color: #e2e8f0; /* Slate 200 */
    --glass-bg: rgba(255, 255, 255, 0.7); /* Light Glass */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent any overflowing element from expanding the viewport width.
   Without this on html, position:fixed elements can shift off-screen
   on mobile when any child overflows horizontally. */
html {
    overflow-x: hidden;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.neon-text {
    color: var(--primary-color);
    /* Removed heavy neon shadow for cleaner look */
}

.glass-morphism {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Category Sidebar */
.category-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.category-sidebar h3 {
    padding: 0 20px 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-color);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin: 0;
}

.category-list button {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--muted-text);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.category-list button.active {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Compact Vehicle Card */
.compact-card {
    border-radius: 8px;
}

.compact-card .vehicle-img {
    height: 160px;
}

.compact-card .vehicle-info {
    padding: 15px;
}

.compact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.compact-card .specs-preview {
    font-size: 0.8rem;
    gap: 10px;
    margin-bottom: 15px;
}

.compact-card .price-box {
    margin-bottom: 15px;
}

.compact-card .offer-price {
    font-size: 1.1rem;
}

.compact-card .btn {
    padding: 8px 15px;
    font-size: 0.8rem;
    border-width: 1px;
}
