/* ===========================
   VEHICLE LISTING PAGE - SATILIK ARAÇLAR
   Uses variables from custom.css
   =========================== */

/* ===========================
   1. HERO SECTION
   =========================== */

.ct-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  background-image: url('../../../assets/img/bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 2rem 0;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.ct-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.7) 50%, rgba(26, 26, 26, 0.85) 100%);
  z-index: 1;
}

.ct-hero .container {
  position: relative;
  z-index: 2;
}

.ct-hero-content h1 {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ct-hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 56px;
  height: 3px;
  background-color: var(--brand-orange);
  border-radius: 2px;
}

.ct-hero-subtitle {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  color: #cccccc;
  margin: 20px 0 0 0;
  line-height: 1.6;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb Navigation */
.ct-breadcrumb {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}

.ct-breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 400;
}

.ct-breadcrumb-item {
  display: flex;
  align-items: center;
}

.ct-breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 0.75rem;
  color: #cccccc;
  font-size: 1rem;
  font-weight: 300;
}

.ct-breadcrumb-link {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ct-breadcrumb-link:hover {
  color: var(--brand-orange);
  text-decoration: none;
}

.ct-breadcrumb-link:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

.ct-breadcrumb-item--active .ct-breadcrumb-text {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===========================
   2. VEHICLE LISTING SECTION
   =========================== */

.vehicle-listing-section {
  padding: 3rem 0;
  background-color: var(--bg);
}

/* ===========================
   3. MOBILE FILTER TOGGLE
   =========================== */

.mobile-filter-toggle {
  margin-bottom: 1rem;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff7700 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.25);
}

.filter-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
}

.filter-toggle-btn i:first-child {
  font-size: 0.875rem;
}

.toggle-icon {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

/* ===========================
   4. FILTER SIDEBAR
   =========================== */

.vehicle-filter-sidebar {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  margin-bottom: 2rem;
}

.vehicle-filter-header h3 {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ct-orange);
}

/* Brand Categories Widget */
.product-widget {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-widget-title {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.widget.shop-categories {
  margin-bottom: 0;
}

.categories-li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-li li {
  margin-bottom: 0.25rem;
}

.categories-li li a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
}

.categories-li li a:hover,
.categories-li li.active a,
.categories-li li.active-menu a {
  background-color: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.25);
}

.categories-li li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background-color: var(--brand-orange);
  transition: height var(--transition-fast);
  border-radius: 0 2px 2px 0;
}

.categories-li li a:hover::before,
.categories-li li.active a::before,
.categories-li li.active-menu a::before {
  height: 50%;
}

/* Active Menu Specific Styles */
.categories-li li.active-menu a {
  font-weight: 600;
  position: relative;
}

.categories-li li.active-menu a::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.9;
}

.vehicle-filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vehicle-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.vehicle-filter-group h4 {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vehicle-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vehicle-filter-item {
  margin-bottom: 0.75rem;
}

.vehicle-filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  transition: color var(--transition-fast);
}

.vehicle-filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  accent-color: var(--ct-orange);
  cursor: pointer;
}

.vehicle-filter-checkbox:hover {
  color: var(--brand-orange);
}

/* ===========================
   4. VEHICLE LISTING CONTAINER
   =========================== */

.vehicle-listing-container {
  background-color: var(--bg);
}

.vehicle-listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vehicle-count {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0.875rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vehicle-count i {
  color: #718096;
  font-size: 0.875rem;
  width: 16px;
  text-align: center;
}

/* ===========================
   5. VEHICLE GRID
   =========================== */

.vehicle-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.vehicle-card {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-light);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.vehicle-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--brand-orange);
  transform: translateY(-1px);
}

.vehicle-image {
  position: relative;
  overflow: hidden;
  width: 160px;
  height: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.02);
}

.vehicle-info {
  padding: 1rem;
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: center;
  gap: 1.25rem;
}

/* Vehicle Content Areas */
.vehicle-main-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vehicle-title {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehicle-info a:hover .vehicle-title {
  color: var(--brand-orange);
}

.vehicle-price {
  font-family: var(--font-family);
  font-size: 1.125rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  letter-spacing: -0.01em;
}

.vehicle-specs {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

.vehicle-spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}

.vehicle-spec i {
  color: #718096;
  width: 12px;
  font-size: 0.6875rem;
}

/* Vehicle Action Area */
.vehicle-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.vehicle-price-area {
  text-align: right;
}

.vehicle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.vehicle-btn:hover {
  background-color: #edf2f7;
  border-color: #cbd5e0;
  color: #2d3748;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vehicle-btn i {
  font-size: 0.6875rem;
}

/* ===========================
   6. NO RESULTS & PAGINATION
   =========================== */

.vehicle-card.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background-color: var(--surface);
  border: 2px dashed var(--ct-border);
}

.vehicle-card.no-results i {
  font-size: 3rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.vehicle-card.no-results p {
  font-family: var(--font-family);
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

.vehicle-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.vehicle-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.vehicle-pagination li a,
.vehicle-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.vehicle-pagination li a:hover,
.vehicle-pagination li.active span {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

/* ===========================
   7. RESPONSIVE DESIGN
   =========================== */

/* Mobile adjustments */
@media (max-width: 991.98px) {

  

  .ct-breadcrumb {
    justify-content: flex-start;
    margin-top: 1rem;

  }
  
  .ct-hero-content h1 {
    font-size: 36px;
  }
  
  .vehicle-listing-section {
    padding: 2rem 0;
  }
  
  .vehicle-filter-sidebar {
    display: none;
    margin-bottom: 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .vehicle-filter-sidebar.show {
    display: block;
  }
  
  .col-lg-3 {
    position: relative;
  }
  
  .vehicle-grid {
    gap: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .ct-hero {
    padding: 1.5rem 0;
    min-height: 220px;
  }
  
  .ct-hero-content h1 {
    font-size: 36px;
  }
  
  .ct-hero-subtitle {
    font-size: 1rem;
  }
  
  .ct-breadcrumb-list {
    font-size: 0.875rem;

  }
  
  .ct-breadcrumb-item:not(:last-child)::after {
    margin: 0 0.5rem;
  }
  
  .vehicle-listing-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0.875rem 1rem;
  }
  
  .vehicle-count {
    justify-content: center;
  }
  
  .vehicle-specs {
    grid-template-columns: 1fr;
  }
  
  .vehicle-filter-sidebar {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .ct-hero {
    min-height: 200px;
  }
  
  .ct-hero-content h1 {
    font-size: 28px;
  }
  
  .ct-hero-content h1::after {
    width: 48px;
  }
  
  .vehicle-grid {
    gap: 0.75rem;
  }
  
  .vehicle-card {
    flex-direction: column;
  }
  
  .vehicle-image {
    width: 100%;
    height: 180px;
  }
  
  .vehicle-info {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
  }
  
  .vehicle-spec {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.6875rem;
    gap: 0.375rem;
  }
  
  .vehicle-action {
    align-items: stretch;
  }
  
  .vehicle-price-area {
    text-align: left;
  }
  
  .vehicle-btn {
    width: 100%;
    justify-content: center;
  }
  
  .vehicle-listing-header {
    padding: 0.75rem 1rem;
  }
}

/* ===========================
   8. ACCESSIBILITY & PERFORMANCE
   =========================== */

/* Focus states */
.vehicle-card:focus-within {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.vehicle-filter-checkbox:focus-within {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .vehicle-card:hover {
    transform: none !important;
  }
  
  .vehicle-image img {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .ct-hero-content h1::after {
    height: 4px;
  }
  
  .vehicle-card {
    border-width: 2px;
  }
  
  .vehicle-filter-checkbox input[type="checkbox"] {
    border: 2px solid var(--ct-text);
  }
}

/* Print styles */
@media print {
  .ct-hero {
    box-shadow: none;
    border-bottom: 2px solid #000;
  }
  
  .vehicle-card,
  .vehicle-filter-sidebar {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .ct-breadcrumb {
    display: none;
  }
  
  .vehicle-pagination {
    display: none;
  }
}
