/* Main Styles for AutoDealer PHP Site */


:root {

    --primary-color: #f97316;

    --secondary-color: #1f2937;

    --accent-color: #f59e0b;

    --text-dark: #111827;

    --text-light: #6b7280;

    --border-color: #e5e7eb;

    --bg-light: #f9fafb;

    --success: #10b981;

    --danger: #ef4444;

    --warning: #f59e0b;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    color: var(--text-dark);

    line-height: 1.6;

}



.container {

    max-width: 1280px;

    margin: 0 auto;

    padding: 0 20px;

}



/* Navigation */

.navbar {

    background: white;

    box-shadow: 0 1px 3px rgba(0,0,0,0.1);

    position: sticky;

    top: 0;

    z-index: 1000;

}



.nav-wrapper {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 0;

}



.logo img {

    height: 50px;

}



.nav-menu {

    display: flex;

    list-style: none;

    gap: 2rem;

    margin: 0;

    padding: 0;

}



.nav-menu a {

    color: var(--text-dark);

    text-decoration: none;

    font-weight: 500;

    transition: color 0.3s;

}



.nav-menu a:hover {

    color: var(--primary-color);

}



.nav-buttons {

    display: flex;

    gap: 1rem;

    align-items: center;

}



.btn-login {

    color: var(--text-dark);

    text-decoration: none;

    padding: 0.5rem 1rem;

}



.btn-primary {

    background: var(--primary-color);

    color: white;

    padding: 0.75rem 1.5rem;

    border-radius: 0.5rem;

    text-decoration: none;

    display: inline-block;

    font-weight: 500;

    transition: all 0.3s;

    border: none;

    cursor: pointer;

}



.btn-primary:hover {

    background: #ea580c;

    transform: translateY(-2px);

}



.mobile-toggle {

    display: none;

    font-size: 1.5rem;

    cursor: pointer;

}



/* Hero Section */

.hero {

    position: relative;

    height: 600px;

    overflow: hidden;

}



.hero-carousel {

    position: absolute;

    width: 100%;

    height: 100%;

}



.carousel-slide {

    position: absolute;

    width: 100%;

    height: 100%;

    opacity: 0;

    transition: opacity 1s;

}



.carousel-slide.active {

    opacity: 1;

}



.carousel-slide img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.hero-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(249, 115, 22, 0.8));

    display: flex;

    align-items: center;

    color: white;

}



.hero-title {

    font-size: 3.5rem;

    font-weight: 700;

    margin-bottom: 1rem;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);

}



.hero-subtitle {

    font-size: 1.25rem;

    margin-bottom: 2rem;

    opacity: 0.95;

}



/* Search Bar */

.search-container {

    background: white;

    padding: 1.5rem;

    border-radius: 1rem;

    box-shadow: 0 10px 40px rgba(0,0,0,0.2);

    margin: 2rem 0;

}



.search-form {

    display: grid;

    grid-template-columns: 1fr 200px 150px;

    gap: 1rem;

}



.search-input {

    padding: 0.75rem;

    border: 1px solid var(--border-color);

    border-radius: 0.5rem;

    font-size: 1rem;

}



.search-select {

    padding: 0.75rem;

    border: 1px solid var(--border-color);

    border-radius: 0.5rem;

    background: white;

}



.search-btn {

    background: var(--primary-color);

    color: white;

    border: none;

    border-radius: 0.5rem;

    padding: 0.75rem;

    font-size: 1rem;

    cursor: pointer;

    transition: background 0.3s;

}



.search-btn:hover {

    background: #ea580c;

}



/* Stats */

.hero-stats {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 2rem;

    margin-top: 3rem;

}



.stat-item {

    text-align: center;

    background: rgba(255,255,255,0.1);

    padding: 1rem;

    border-radius: 0.5rem;

    backdrop-filter: blur(10px);

}



.stat-value {

    font-size: 2rem;

    font-weight: 700;

}



.stat-label {

    font-size: 0.875rem;

    opacity: 0.9;

}



/* Featured Offers Section */

.featured-offers {

    padding: 4rem 0;

    background: var(--bg-light);

}



.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 3rem;

}



.section-header h2 {

    font-size: 2rem;

    color: var(--text-dark);

}



.view-all {

    color: var(--primary-color);

    text-decoration: none;

    font-weight: 500;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.vehicles-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 2rem;

}



/* Vehicle Card */

.vehicle-card {

    background: white;

    border-radius: 1rem;

    overflow: hidden;

    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

    transition: all 0.3s;

    position: relative;

}



.vehicle-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 20px rgba(0,0,0,0.15);

}



.discount-badge {

    position: absolute;

    top: 1rem;

    right: 1rem;

    background: var(--danger);

    color: white;

    padding: 0.25rem 0.75rem;

    border-radius: 0.25rem;

    font-weight: 600;

    z-index: 10;

}



.vehicle-image {

    height: 200px;

    overflow: hidden;

    background: #f3f4f6;

}



.vehicle-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.vehicle-content {

    padding: 1.5rem;

}



.vehicle-title {

    font-size: 1.125rem;

    font-weight: 600;

    margin-bottom: 0.75rem;

    color: var(--text-dark);

}



.vehicle-price {

    display: flex;

    align-items: baseline;

    gap: 0.75rem;

    margin-bottom: 1rem;

}



.price-current {

    font-size: 1.5rem;

    font-weight: 700;

    color: var(--text-dark);

}



.price-original {

    font-size: 1rem;

    color: var(--text-light);

    text-decoration: line-through;

}



.vehicle-specs {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 0.5rem;

    margin-bottom: 1rem;

}



.spec {

    text-align: center;

    padding: 0.5rem;

    background: var(--bg-light);

    border-radius: 0.25rem;

}



.spec-value {

    font-weight: 600;

    color: var(--text-dark);

}



.spec-label {

    font-size: 0.75rem;

    color: var(--text-light);

}



.btn-vehicle {

    width: 100%;

    background: var(--primary-color);

    color: white;

    padding: 0.75rem;

    border: none;

    border-radius: 0.5rem;

    font-weight: 500;

    cursor: pointer;

    transition: background 0.3s;

    text-align: center;

    text-decoration: none;

    display: block;

}



.btn-vehicle:hover {

    background: #ea580c;

}



/* Categories Section */

.categories {

    padding: 4rem 0;

}



.section-title {

    font-size: 2rem;

    text-align: center;

    margin-bottom: 3rem;

    color: var(--text-dark);

}



.categories-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}



.category-card {

    background: white;

    border: 2px solid var(--border-color);

    border-radius: 1rem;

    padding: 2rem;

    text-align: center;

    text-decoration: none;

    color: var(--text-dark);

    transition: all 0.3s;

}



.category-card:hover {

    border-color: var(--primary-color);

    transform: translateY(-5px);

    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.1);

}



.category-icon {

    font-size: 3rem;

    margin-bottom: 1rem;

}



.category-card h3 {

    font-size: 1.25rem;

    margin-bottom: 0.5rem;

}



.category-card p {

    color: var(--text-light);

}



/* How It Works Preview */

.how-it-works-preview {

    padding: 4rem 0;

    background: var(--bg-light);

}



.steps-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 2rem;

    margin-bottom: 2rem;

}



.step {

    text-align: center;

}



.step-number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 60px;

    height: 60px;

    background: var(--primary-color);

    color: white;

    border-radius: 50%;

    font-size: 1.5rem;

    font-weight: 700;

    margin-bottom: 1rem;

}



.step h3 {

    font-size: 1.25rem;

    margin-bottom: 0.5rem;

}



.step p {

    color: var(--text-light);

}



/* Footer */

footer {

    background: var(--secondary-color);

    color: white;

    padding: 3rem 0 1rem;

}



.footer-content {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

    margin-bottom: 2rem;

}



.footer-section h3 {

    margin-bottom: 1rem;

}



.footer-section ul {

    list-style: none;

}



.footer-section ul li {

    margin-bottom: 0.5rem;

}



.footer-section a {

    color: #9ca3af;

    text-decoration: none;

    transition: color 0.3s;

}



.footer-section a:hover {

    color: white;

}



.footer-bottom {

    text-align: center;

    padding-top: 2rem;

    border-top: 1px solid #374151;

    color: #9ca3af;

}



/* Utilities */

.text-center {

    text-align: center;

}



.mt-4 {

    margin-top: 2rem;

}



.hidden {

    display: none;

}



/* Responsive */

@media (max-width: 768px) {

    .nav-menu {

        display: none;

    }

    

    .mobile-toggle {

        display: block;

    }

    

    .hero-title {

        font-size: 2rem;

    }

    

    .search-form {

        grid-template-columns: 1fr;

    }

    

    .hero-stats {

        grid-template-columns: repeat(2, 1fr);

    }

    

    .vehicles-grid {

        grid-template-columns: 1fr;

    }

}



/* Vehicle Status Stickers */

.vehicle-status-sticker {

    position: absolute;

    top: 10px;

    left: 10px;

    padding: 5px 12px;

    font-size: 12px;

    font-weight: bold;

    text-transform: uppercase;

    border-radius: 4px;

    z-index: 10;

    letter-spacing: 0.5px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.2);

}



.vehicle-status-sticker.reserved {

    background-color: #fbbf24;

    color: #78350f;

}



.vehicle-status-sticker.sold {

    background-color: #10b981;

    color: white;

}



.vehicle-image-wrapper {

    position: relative;

    display: inline-block;

}



/* For category/listing pages */

.vehicle-card {

    position: relative;

}



.vehicle-card .vehicle-status-sticker {

    font-size: 11px;

    padding: 4px 10px;

}