/* ============================================
   VEHICLES V7 - SIFIRDAN YENİ TASARIM
   Modern Filter & Grid Layout
   ============================================ */

.vehicles-v7 {
    padding: var(--space-3xl) 0;
    background: var(--color-gray-50);
    min-height: calc(100vh - 90px);
    margin-top: 90px;
}

/* Page Banner */
.vehicles-v7__banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.vehicles-v7__banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.vehicles-v7__banner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.vehicles-v7__banner-content {
    text-align: center;
    color: var(--color-white);
}

.vehicles-v7__banner-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
}

.vehicles-v7__banner-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    margin: 0 0 var(--space-md) 0;
    line-height: 1.1;
}

.vehicles-v7__banner-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Container */
.vehicles-v7__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.vehicles-v7__content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* Filter Toggle Button (Mobile) */
.vehicles-v7__filter-toggle {
    display: none;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: var(--space-lg);
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.vehicles-v7__filter-toggle:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vehicles-v7__filter-toggle i {
    font-size: var(--font-size-lg);
}

/* Sidebar Overlay */
.vehicles-v7__sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vehicles-v7__sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar - Filters */
.vehicles-v7__sidebar {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: calc(90px + var(--space-lg));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.vehicles-v7__sidebar-close {
    display: none;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--color-gray-100);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.vehicles-v7__sidebar-close:hover {
    background: var(--color-gray-200);
}

.vehicles-v7__sidebar-close i {
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
}

.vehicles-v7__sidebar-title {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    color: var(--color-gray-900);
    margin: 0 0 var(--space-xl) 0;
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-gray-200);
}

/* Filter Group */
.vehicles-v7__filter-group {
    margin-bottom: var(--space-xl);
}

.vehicles-v7__filter-group-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 var(--space-md) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vehicles-v7__filter-group-title i {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

.vehicles-v7__filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.vehicles-v7__filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.vehicles-v7__filter-checkbox:hover {
    background: var(--color-gray-50);
}

.vehicles-v7__filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.vehicles-v7__filter-checkbox span {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    flex: 1;
}

.vehicles-v7__filter-checkbox input[type="checkbox"]:checked + span {
    color: var(--color-primary);
    font-weight: 700;
}

/* Range Filter */
.vehicles-v7__filter-range {
    padding: var(--space-md) 0;
}

.vehicles-v7__filter-range input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.vehicles-v7__filter-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.vehicles-v7__filter-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.vehicles-v7__filter-range input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.vehicles-v7__filter-range input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.vehicles-v7__filter-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-600);
}

.vehicles-v7__filter-range-labels #priceValue {
    color: var(--color-primary);
    font-weight: 700;
}

/* Reset Button */
.vehicles-v7__filter-reset {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--space-lg);
}

.vehicles-v7__filter-reset:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-900);
}

/* Vehicles List */
.vehicles-v7__list {
    flex: 1;
}

.vehicles-v7__list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.vehicles-v7__list-count {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-gray-900);
}

.vehicles-v7__list-count span {
    color: var(--color-primary);
}

.vehicles-v7__list-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vehicles-v7__list-sort label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
}

.vehicles-v7__sort-select {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-900);
    background: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vehicles-v7__sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Vehicles Grid */
.vehicles-v7__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

/* Vehicle Card */
.vehicles-v7__card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.vehicles-v7__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.vehicles-v7__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.vehicles-v7__card:hover::before {
    transform: scaleX(1);
}

.vehicles-v7__card-label {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: linear-gradient(135deg, var(--color-danger) 0%, #dc2626 100%);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.vehicles-v7__card-image {
    width: 100%;
    height: 240px;
    background: var(--color-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.vehicles-v7__card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicles-v7__card:hover .vehicles-v7__card-image::after {
    opacity: 1;
}

.vehicles-v7__card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.vehicles-v7__card:hover .vehicles-v7__card-image img {
    transform: scale(1.05);
}

.vehicles-v7__card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.vehicles-v7__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.vehicles-v7__card-title {
    font-size: var(--font-size-xl);
    font-weight: 900;
    color: var(--color-gray-900);
    margin: 0;
    line-height: 1.2;
    flex: 1;
    font-family: var(--font-family);
}

.vehicles-v7__card-title h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.vehicles-v7__card-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 700;
    white-space: nowrap;
}

.vehicles-v7__card-specs {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-gray-200);
}

.vehicles-v7__card-spec {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.vehicles-v7__card-spec i {
    color: var(--color-primary);
    font-size: var(--font-size-base);
}

.vehicles-v7__card-price {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.vehicles-v7__card-price-main {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.vehicles-v7__card-price-value {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.vehicles-v7__card-price-currency {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.vehicles-v7__card-price-period {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-500);
}

.vehicles-v7__card-price-old {
    font-size: var(--font-size-sm);
    color: var(--color-gray-400);
    text-decoration: line-through;
}

.vehicles-v7__card-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
}

.vehicles-v7__card-button {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.vehicles-v7__card-button--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.vehicles-v7__card-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vehicles-v7__card-button--secondary {
    background: var(--color-gray-50);
    color: var(--color-gray-700);
    border-color: var(--color-gray-200);
}

.vehicles-v7__card-button--secondary:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
}

.vehicles-v7__card-button--whatsapp {
    background: #25D366;
    color: var(--color-white);
}

.vehicles-v7__card-button--whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

.vehicles-v7__card-button i {
    font-size: var(--font-size-lg);
}

/* Empty State */
.vehicles-v7__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--color-gray-500);
}

.vehicles-v7__empty i {
    font-size: 64px;
    color: var(--color-gray-300);
    margin-bottom: var(--space-lg);
}

.vehicles-v7__empty p {
    font-size: var(--font-size-lg);
    margin: 0;
}

/* Pagination */
.vehicles-v7__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.vehicles-v7__pagination-button {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-white);
    color: var(--color-gray-700);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vehicles-v7__pagination-button:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.vehicles-v7__pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vehicles-v7__pagination-numbers {
    display: flex;
    gap: var(--space-xs);
}

.vehicles-v7__pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    color: var(--color-gray-700);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vehicles-v7__pagination-number:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.vehicles-v7__pagination-number.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .vehicles-v7__content {
        grid-template-columns: 280px 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 992px) {
    .vehicles-v7__content {
        grid-template-columns: 1fr;
    }
    
    .vehicles-v7__filter-toggle {
        display: flex;
    }
    
    .vehicles-v7__sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        z-index: 999;
        border-radius: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .vehicles-v7__sidebar.active {
        right: 0;
    }
    
    .vehicles-v7__sidebar-close {
        display: flex;
    }
    
    .vehicles-v7__sidebar-overlay {
        display: block;
    }
    
    .vehicles-v7__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .vehicles-v7 {
        margin-top: 70px;
        padding: var(--space-xl) 0;
    }
    
    .vehicles-v7__banner {
        padding: var(--space-xl) 0;
        margin-bottom: var(--space-xl);
    }
    
    .vehicles-v7__banner-title {
        font-size: clamp(28px, 8vw, 48px);
    }
    
    .vehicles-v7__banner-subtitle {
        font-size: var(--font-size-base);
    }
    
    .vehicles-v7__container {
        padding: 0 var(--space-md);
    }
    
    .vehicles-v7__list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vehicles-v7__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .vehicles-v7__card-image {
        height: 200px;
    }
}
