/*
Theme Name: Jeffs Auto Theme
Description: Modern car dealership theme with vehicle management
Version: 1.0
Text Domain: jeffs-auto
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #1a1a1a;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b00;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #ff6b00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #ff6b00;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e55a00;
}

/* Vehicle Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.vehicle-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.1);
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b00;
    margin-bottom: 0.5rem;
}

.vehicle-meta {
    color: #666;
    margin-bottom: 1rem;
}

/* Filters */
.vehicle-filters {
    background: #f8f9fa;
    padding: 2rem 0;
    margin: 2rem 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Single Vehicle */
.single-vehicle {
    padding: 100px 0 50px;
}

.vehicle-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 3rem;
}

.vehicle-gallery-main {
    margin-bottom: 1rem;
}

.vehicle-gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.vehicle-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vehicle-gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.vehicle-gallery-thumbs img:hover {
    opacity: 0.7;
}

.vehicle-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
}

.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    top: 50%;
    left: 20px;
}

.lightbox-next {
    top: 50%;
    right: 20px;
}

/* Payment Calculator */
.payment-calculator {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.calc-group {
    margin-bottom: 1rem;
}

.calc-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.calc-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calc-result {
    background: #1a1a1a;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.monthly-payment {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b00;
}

/* Why Choose Us */
.why-choose-us {
    padding: 4rem 0;
    background: #1a1a1a;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature i {
    font-size: 3rem;
    color: #ff6b00;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .vehicle-layout {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}






/* ===== IMAGE PLACEHOLDER STYLES ===== */
.vehicle-image img[src*="placeholder.jpg"],
.vehicle-gallery-main img[src*="placeholder.jpg"] {
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
}

.vehicle-image img[src*="placeholder.jpg"]:after,
.vehicle-gallery-main img[src*="placeholder.jpg"]:after {
    content: "🚗 Image Coming Soon";
    display: block;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px dashed #dee2e6;
}

.vehicle-gallery-thumbs img[src*="placeholder.jpg"] {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vehicle-gallery-thumbs img[src*="placeholder.jpg"]:after {
    content: "📷";
    display: block;
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Ensure images maintain aspect ratio */
.vehicle-image img,
.vehicle-gallery-main img,
.vehicle-gallery-thumbs img {
    display: block;
    width: 100%;
    height: auto;
}

/* Fallback for broken images */
.vehicle-image img:not([src]),
.vehicle-gallery-main img:not([src]),
.vehicle-gallery-thumbs img:not([src]) {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image img:not([src]):before,
.vehicle-gallery-main img:not([src]):before,
.vehicle-gallery-thumbs img:not([src]):before {
    content: "⚠️ Image Not Found";
    color: #6c757d;
    text-align: center;
    display: block;
}