/* car-brands.css - Styles for Car Brands Listing Page */

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 0;
    font-size: 12px;
}

.breadcrumbs .product_container {
    padding: 0 12px;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 6px;
    color: #9ca3af;
}

.breadcrumbs span:last-child {
    color: #6b7280;
}

/* Hero Section */
.car-brands-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 40px 0 50px;
    margin-bottom: 24px;
    overflow: hidden;
}

.car-brands-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.car-brands-hero .product_container {
    position: relative;
    z-index: 1;
    padding: 0 12px;
}

.car-brands-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.car-brands-hero p {
    font-size: 15px;
    opacity: 0.95;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Main Container */
.product_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.section-header-with-sub h2 {
    margin-bottom: 3px;
}

.section-header-with-sub p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Section Header with Lines (Centered with 2 lines on each side) */
.section-header-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
}

.header-lines-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    width: 100%;
}

.header-line {
    height: 2px;
    background: #e5e7eb;
    width: 100%;
}

.section-header-with-lines h2,
.section-header-with-lines .section_title {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    background: transparent;
    text-align: center;
    border-radius: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .section-header-with-lines h2,
    .section-header-with-lines .section_title {
        font-size: 0.9rem;
        white-space: normal;
    }
}

.section-header-with-lines h3 {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    background: transparent;
    text-align: center;
    border-radius: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .section-header-with-lines h3 {
        font-size: 0.9rem;
        white-space: normal;
    }
}

.brand-count-badge {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 10px;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.brand-card {
    display: block;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.brand-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.15);
    transform: translateY(-1px);
}

.brand-card img {
    width: 100%;
    max-width: 90px;
    height: auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.brand-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.brand-card p {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Price Range Section */
.price-range-section {
    margin-bottom: 32px;
}

.price-range-block {
    margin-bottom: 20px;
}

.price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 4px;
}

.price-range-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.price-range-header a {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.price-range-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.price-car-item {
    flex: 0 0 140px;
    display: block;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.price-car-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

.price-car-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 50%;
    background: #f3f4f6;
    overflow: hidden;
}

.price-car-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-car-content {
    padding: 10px;
}

.price-car-brand {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.price-car-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-car-price {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
}

.price-range-empty {
    padding: 20px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
}

.price-range-empty p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* Popular Cars Section */
.popular-cars-section {
    margin-bottom: 32px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.car-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.car-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

.car-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.car-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56%;
    background: #f3f4f6;
    overflow: hidden;
}

.car-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card-upcoming-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f59e0b;
    color: white;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-card-content {
    padding: 12px;
}

.car-card-brand {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-card-fuel {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.car-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
    margin-top: 4px;
}

/* Articles Section */
.articles-section {
    margin-bottom: 32px;
}

.articles-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.article-card-scroll {
    flex: 0 0 280px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card-scroll:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

.article-card-scroll a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 50%;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-description {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: auto;
}

/* Fuel Type Section */
.fuel-type-section {
    margin-bottom: 24px;
}

.fuel-type-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.fuel-type-group {
    margin-bottom: 20px;
}

.fuel-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fuel-type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fuel-type-badge-petrol {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.fuel-type-badge-diesel {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.fuel-type-badge-electric {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.fuel-type-badge-hybrid {
    background: #e9d5ff;
    color: #6b21a8;
    border: 1px solid #c084fc;
}

.fuel-type-badge-cng {
    background: #fce7f3;
    color: #9f1239;
    border: 1px solid #f9a8d4;
}

.fuel-type-count {
    background: currentColor;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 4px;
}

.fuel-type-cars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fuel-type-car-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

.fuel-type-car-link:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.fuel-type-car-name {
    white-space: nowrap;
}

.fuel-type-car-price {
    color: #3b82f6;
    font-weight: 700;
    white-space: nowrap;
}

/* Info Section */
.info-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.info-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.info-section-content {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}

.info-section-content p {
    margin-bottom: 10px;
}

.info-section-content p:last-child {
    margin-bottom: 0;
}

/* Scrollbar Styles */
.price-range-scroll::-webkit-scrollbar,
.articles-scroll::-webkit-scrollbar {
    height: 6px;
}

.price-range-scroll::-webkit-scrollbar-track,
.articles-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.price-range-scroll::-webkit-scrollbar-thumb,
.articles-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.price-range-scroll::-webkit-scrollbar-thumb:hover,
.articles-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .price-range-scroll,
    .articles-scroll {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .price-car-item,
    .article-card-scroll {
        flex: 1 !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product_container {
        padding: 0 8px !important;
    }
    
    .car-brands-hero {
        padding: 30px 0 40px !important;
        margin-bottom: 20px !important;
    }
    
    .car-brands-hero h1 {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }
    
    .car-brands-hero p {
        font-size: 13px !important;
    }
    
    .breadcrumbs {
        padding: 8px 0 !important;
    }
    
    .brands-section,
    .price-range-section,
    .popular-cars-section,
    .articles-section,
    .info-section {
        margin-bottom: 24px !important;
    }
    
    .section-header h2,
    .section-header-with-sub h2 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 8px !important;
    }
    
    .brand-card {
        padding: 10px !important;
    }
    
    .brand-card img {
        max-width: 60px !important;
        margin-bottom: 6px !important;
    }
    
    .brand-card h3 {
        font-size: 12px !important;
    }
    
    .price-range-block {
        margin-bottom: 16px !important;
    }
    
    .price-range-header h3 {
        font-size: 14px !important;
    }
    
    .price-range-scroll {
        gap: 10px !important;
        padding: 4px 4px 10px 4px !important;
    }
    
    .price-car-item {
        flex: 0 0 130px !important;
    }
    
    .cars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .car-card {
        min-width: 0;
    }
    
    .car-card-image-wrapper {
        padding-top: 50% !important;
    }
    
    .car-card-content {
        padding: 10px !important;
    }
    
    .car-card-name {
        font-size: 13px !important;
    }
    
    .car-card-brand {
        font-size: 10px !important;
    }
    
    .car-card-price {
        font-size: 13px !important;
    }
    
    .articles-scroll {
        gap: 10px !important;
        padding: 4px 4px 10px 4px !important;
    }
    
    .article-card-scroll {
        flex: 0 0 260px !important;
    }
    
    .article-card-image-wrapper {
        padding-top: 45% !important;
    }
    
    .article-card-content {
        padding: 10px !important;
    }
    
    .info-section {
        padding: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .info-section h2 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .info-section-content {
        font-size: 12px !important;
    }
    
    .info-section-content p {
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .product_container {
        padding: 0 6px !important;
    }
    
    .car-brands-hero {
        padding: 24px 0 32px !important;
    }
    
    .car-brands-hero h1 {
        font-size: 20px !important;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .brand-card {
        padding: 8px !important;
    }
    
    .brand-card img {
        max-width: 50px !important;
    }
    
    .brand-card h3 {
        font-size: 11px !important;
    }
    
    .price-car-item {
        flex: 0 0 120px !important;
    }
    
    .cars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .car-card-content {
        padding: 8px !important;
    }
    
    .car-card-name {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .car-card-brand {
        font-size: 9px !important;
        margin-bottom: 2px !important;
    }
    
    .car-card-price {
        font-size: 12px !important;
    }
    
    .article-card-scroll {
        flex: 0 0 240px !important;
    }
}
