/* Elite Auto Gallery - Main Styles */

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --emerald-500: #10b981;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo img {
  height: 4rem;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-500);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--slate-900);
}

.nav-cta {
  display: none;
}

.btn {
  background-color: var(--slate-900);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background-color: var(--slate-800);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background-color: var(--slate-50);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--slate-600);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background-color: var(--slate-100);
}

.mobile-menu-btn svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.mobile-menu {
  display: none;
  background-color: var(--white);
  border-top: 1px solid var(--slate-100);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--slate-500);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.mobile-menu a:hover {
  color: var(--slate-900);
}

/* Main Content */
main {
  padding-top: 4rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-700) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--slate-400);
}

/* Gallery */
.page-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-100);
  padding: 3rem 0;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}

.page-header p {
  color: var(--slate-600);
  max-width: 42rem;
}

/* Filters */
.filters {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-100);
  padding: 1rem 0;
  position: sticky;
  top: 4rem;
  z-index: 100;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--slate-400);
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 0.875rem;
  background-color: var(--white);
  cursor: pointer;
}

/* Car Grid */
.car-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}

.results-count {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

/* Car Card */
.car-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--slate-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.car-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.car-image {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--emerald-500);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.featured {
  left: auto;
  right: 1rem;
  background-color: var(--slate-900);
}

.car-content {
  padding: 1.25rem;
}

.car-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.car-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
}

.car-body-type {
  color: var(--slate-500);
  font-size: 0.875rem;
}

.car-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.car-specs {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.875rem;
  color: var(--slate-500);
}

.car-spec {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.view-details {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.car-card:hover .view-details {
  color: var(--slate-900);
}

/* Car Details Page */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  margin: 2rem 0 1.5rem;
}

.back-button:hover {
  color: var(--slate-900);
}

.car-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

.car-detail-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.car-detail-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.info-box {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-100);
  margin-bottom: 1.5rem;
}

.info-box h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-box .price {
  font-size: 2.25rem;
  font-weight: 700;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.spec-list {
  list-style: none;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-50);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-600);
  font-weight: 500;
}

.spec-value {
  color: var(--slate-900);
  font-weight: 600;
}

.description-box h2,
.features-box h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.description-box p {
  color: var(--slate-600);
  line-height: 1.75;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background-color: var(--slate-100);
  color: var(--slate-700);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.contact-cta {
  background-color: var(--slate-900);
  color: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
}

.contact-cta h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-cta p {
  color: var(--slate-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-buttons .btn {
  background-color: var(--white);
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-buttons .btn:hover {
  background-color: var(--slate-100);
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-container {
    flex-direction: row;
  }

  .car-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .car-detail-image img {
    height: 500px;
  }

  .contact-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .car-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  color: var(--slate-500);
}

.skeleton {
  background: linear-gradient(90deg, var(--slate-200) 25%, var(--slate-100) 50%, var(--slate-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

/* Animations - Smooth Framer Motion Style Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out forwards;
  opacity: 0;
}

.animate-scale {
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 0;
}

/* Stagger Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Smooth Transitions on Hover */
.smooth-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Effects */
.car-card {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.car-card:nth-child(1) { animation-delay: 0.1s; }
.car-card:nth-child(2) { animation-delay: 0.2s; }
.car-card:nth-child(3) { animation-delay: 0.3s; }
.car-card:nth-child(4) { animation-delay: 0.4s; }
.car-card:nth-child(5) { animation-delay: 0.5s; }
.car-card:nth-child(6) { animation-delay: 0.6s; }

/* Page Load Animation */
main {
  animation: fadeIn 0.4s ease-out;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* MOBILE MENU FIX - Add this to css/styles.css */

/* Mobile Menu Styles */
.mobile-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: 80px; /* Below the nav bar */
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 999;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu.active {
    display: flex; /* Show when active class is added */
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: #f3f4f6;
}

/* Show hamburger button on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-cta {
        display: none !important;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}
/* COMING SOON CARD STYLES */
/* Add this to css/styles.css */

.coming-soon-card {
    opacity: 0.8;
    border: 2px dashed #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.coming-soon-image {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.coming-soon-content {
    text-align: center;
    padding: 2rem;
}
/* ========================================
   STATUS BADGE STYLES - ADD TO styles.css
   ======================================== */

.car-image-wrapper {
    position: relative;
    overflow: hidden;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.badge-available {
    background: #4CAF50;
    color: white;
}

.badge-reserved {
    background: #FF9800;
    color: white;
}

.badge-sold {
    background: #f44336;
    color: white;
}

.badge-featured {
    background: #FFD700;
    color: #1a1a1a;
}

/* Filter Section Styling */
.filter-section {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #333;
    background: #f8f9fa;
}

.filter-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.results-count {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Loading, Error, and No Results States */
.loading-state,
.error-state,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state i,
.error-state i,
.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #999;
}

.loading-state i {
    color: #4CAF50;
}

.error-state i {
    color: #f44336;
}

.loading-state p,
.error-state p,
.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Car Card Styling */
.car-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.car-info {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.car-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.spec-item i {
    color: #4CAF50;
    width: 20px;
}

.car-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.car-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    background: #555;
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .car-specs {
        grid-template-columns: 1fr;
    }
    
    .car-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
.coming-soon-card:hover {
    transform: none;
    cursor: default;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
