/* =========================
   INVENTORY PAGE STYLES
========================= */

/* Hero Section */
.inventory-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a0a 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.inventory-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 15px 0;
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inventory-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
}

/* Main Section */
.inventory-section {
  background: #000;
  padding: 60px 0 100px;
}

.inventory-section .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  background: #111;
  border-radius: 16px;
  padding: 25px;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(255,255,255,0.05);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.filters-header h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: #fff;
  margin: 0;
}

.clear-filters {
  background: none;
  border: none;
  color: #c8d300;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.clear-filters:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #c8d300;
  background: rgba(200, 211, 0, 0.05);
}

.filter-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c8d300'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.filter-group select option {
  background: #111;
  color: #fff;
}

/* Inventory Content */
.inventory-content {
  min-height: 500px;
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.results-count {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.results-count span {
  color: #c8d300;
  font-weight: 600;
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(200, 211, 0, 0.1);
  border: 1px solid rgba(200, 211, 0, 0.3);
  border-radius: 8px;
  color: #c8d300;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-toggle svg {
  width: 18px;
  height: 18px;
}

/* Cars Grid */
.inventory-content .cars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results svg {
  width: 60px;
  height: 60px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 20px;
}

.no-results h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.no-results p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 25px;
}

.no-results button {
  padding: 12px 30px;
  background: #c8d300;
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.no-results button:hover {
  background: #dae630;
}

/* CTA Section */
.inventory-cta {
  background: #0a0a0a;
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(200, 211, 0, 0.1) 0%, rgba(200, 211, 0, 0.02) 100%);
  border: 1px solid rgba(200, 211, 0, 0.2);
  border-radius: 20px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-box h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  color: #fff;
  margin: 0 0 10px;
}

.cta-box p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin: 0;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.inventory-cta .cta-btn {
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.inventory-cta .cta-btn.primary {
  background: #c8d300;
  color: #000;
}

.inventory-cta .cta-btn.primary:hover {
  background: #dae630;
  transform: translateY(-2px);
}

.inventory-cta .cta-btn.secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
}

.inventory-cta .cta-btn.secondary:hover {
  background: #fff;
  color: #000;
}

/* Filter Buttons */
.filter-buttons {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.apply-filters-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #c8d300;
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-filters-btn:hover {
  background: #dae630;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(200, 211, 0, 0.3);
}

.apply-filters-btn svg {
  width: 18px;
  height: 18px;
}

/* Desktop: Hide apply button (filters work instantly) */
@media (min-width: 993px) {
  .filter-buttons {
    display: none;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .inventory-content .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .inventory-section .container {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    z-index: 2000;
    border-radius: 0;
    overflow-y: auto;
    transition: left 0.4s ease;
  }
  
  .filters-sidebar.open {
    left: 0;
  }
  
  .filter-toggle {
    display: flex;
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .inventory-cta .cta-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .inventory-hero {
    padding: 120px 0 40px;
  }
  
  .inventory-hero h1 {
    font-size: 36px;
  }
  
  .inventory-hero p {
    font-size: 15px;
  }
  
  .inventory-section {
    padding: 40px 0 60px;
  }
  
  .inventory-content .cars-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 30px 20px;
  }
  
  .cta-box h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .inventory-hero h1 {
    font-size: 28px;
  }
  
  .filters-sidebar {
    width: 100%;
  }
}