/* Motors365 Premium Automotive Styling */
:root {
    --carbon-black: #1A1A1A;
    --racing-red: #C41E3A;
    --championship-gold: #FFD700;
    --platinum-white: #FAFAFA;
    --charcoal-text: #333333;
    --performance-blue: #0066CC;
    --silver-accent: #E5E5E5;
    --dark-grey: #2C2C2C;
}

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

body {
    font-family: 'Montserrat', 'Open Sans', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--charcoal-text);
    background-color: var(--platinum-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--carbon-black);
    letter-spacing: -0.02em;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--carbon-black) 0%, var(--dark-grey) 100%);
    padding: 0.875rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--championship-gold) !important;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--platinum-white) !important;
    font-weight: 400;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover {
    color: var(--championship-gold) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--racing-red);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)),
                url('https://pixabay.com/get/g91eaa75b88eff68a25e84358b27ff2cac3c40cacbd2fa7e5a9a3c26d4458f46359eca954afa0b6e0356122e61594b84d61669cbba893087a66d9f88c9c3451c0_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--platinum-white);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--platinum-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--racing-red) 0%, #A01729 100%);
    border: none;
    padding: 0.625rem 1.75rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
    background: linear-gradient(135deg, #A01729 0%, var(--racing-red) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--performance-blue) 0%, #0052A3 100%);
    border: none;
    padding: 0.625rem 1.75rem;
    font-weight: 500;
    border-radius: 6px;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-outline {
    border: 1px solid var(--championship-gold);
    color: var(--championship-gold);
    background: transparent;
    padding: 0.625rem 1.75rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--championship-gold);
    color: var(--carbon-black);
    transform: translateY(-1px);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--carbon-black);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--charcoal-text);
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Vehicle Cards */
.vehicle-card {
    position: relative;
    overflow: hidden;
}

.vehicle-card .price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--racing-red);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 5px;
    font-weight: 500;
    z-index: 2;
    font-size: 0.9rem;
}

.vehicle-card .featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--championship-gold);
    color: var(--carbon-black);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--charcoal-text);
}

.spec-item i {
    color: var(--performance-blue);
    width: 16px;
}

/* Search Form */
.search-form {
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: -5rem auto 2rem;
    position: relative;
    z-index: 100;
}

.search-form .form-control {
    border: 1px solid var(--silver-accent);
    border-radius: 5px;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-form .form-control:focus {
    border-color: var(--performance-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.search-form .form-select {
    border: 1px solid var(--silver-accent);
    border-radius: 5px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--carbon-black) 0%, var(--dark-grey) 100%);
    color: var(--platinum-white);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--championship-gold);
    display: block;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--platinum-white);
    margin-top: 0.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Spacing */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--racing-red);
    border-radius: 1px;
}

/* Forum Styles */
.forum-category {
    background: white;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 3px solid var(--performance-blue);
}

.forum-category:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.forum-post {
    background: white;
    border-radius: 5px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.forum-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.825rem;
    color: #666;
    margin-top: 0.5rem;
}

.post-meta i {
    color: var(--performance-blue);
}

/* News Article Styles */
.news-card {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.news-card .card-img-top {
    height: 200px;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.825rem;
    color: #666;
    margin-bottom: 1rem;
}

.article-meta i {
    color: var(--performance-blue);
}

/* Profile Styles */
.profile-header {
    background: linear-gradient(135deg, var(--carbon-black) 0%, var(--dark-grey) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--championship-gold);
    object-fit: cover;
    margin-bottom: 1rem;
}

.badge-custom {
    background: var(--racing-red);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 0 0.25rem;
    font-weight: 500;
}

/* Filters and Pagination */
.filters {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.pagination {
    justify-content: center;
}

.page-link {
    color: var(--performance-blue);
    border: 1px solid var(--silver-accent);
    padding: 0.5rem 0.875rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.page-link:hover {
    background: var(--performance-blue);
    color: white;
    border-color: var(--performance-blue);
}

.page-item.active .page-link {
    background: var(--racing-red);
    border-color: var(--racing-red);
}

/* Footer */
.footer {
    background: var(--carbon-black);
    color: var(--platinum-white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h5 {
    color: var(--championship-gold);
    margin-bottom: 1rem;
}

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

.footer a:hover {
    color: var(--championship-gold);
}

.footer-bottom {
    border-top: 1px solid var(--dark-grey);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.875rem;
    }
    
    .search-form {
        margin: -3rem auto 2rem;
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .vehicle-specs {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Custom Form Styles */
.form-control, .form-select {
    border: 1px solid var(--silver-accent);
    border-radius: 5px;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--performance-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--carbon-black);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 5px;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
    color: #004085;
}

/* Loading Animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--silver-accent);
    border-radius: 50%;
    border-top-color: var(--racing-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--silver-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--performance-blue);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--racing-red);
}
