/* Styles for brand pages (extracted from views/cars/brand.php). Loaded via header. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main > .container {
    /* padding: 0px 20px 20px; */
    max-width: none;
}

/* .search-form-section, .search-section, .search-form and .form-group
   are defined in the shared /css/search-form.css */

.form-group:has(#generation) {
    flex: 1;
    min-width: auto;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 6px 40px 8px 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 15px;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #fa742d;
}

input#make {
    border-radius: 10px 0 0 10px;
}

input#generation {
    border-radius: 0 10px 10px 0;
}

.dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.form-group:has(.dropdown-list.active) .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

.form-label {
    position: absolute;
    left: 16px;
    top: 15px;
    color: rgba(12, 19, 29, 0.5);
    font-size: 15px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    border-radius: 4px;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -8px;
    font-size: 12px;
    color: #999999;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.dropdown-list.active {
    display: block;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.search-button {
    padding: 0px 32px;
    background: #fa742d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    height: 56px;
    margin-left: 10px;
}

.search-button:hover {
    background: #e86624;
    transform: translateY(-2px);
}

.search-button:active {
    transform: translateY(0);
}

/* Minimalist Brand Header */
.brand-header-content-wrapper {
    /* background: #fff; */
    /* border-bottom: 1px solid #eee; */
    /* padding: 24px 0; */
}

.brand-header-stats-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 20px;
}

.brand-header-stats-wrapper .sidebar-card {
    flex: 1;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fafafa;
}

.brand-header-stats-wrapper .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-header-stats-wrapper .card-title i {
    font-size: 16px;
    color: #28a745;
}

.brand-container {
    /* max-width: 1180px; */
    /* margin: 0 auto; */
    /* padding: 0 16px; */
}

.brand-breadcrumb {
    margin-bottom: 18px;
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #777;
}

.breadcrumb-item {
    font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 4px;
    color: #777;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #111;
}

.breadcrumb-item.active {
    color: #111;
}

.brand-info-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-header-logo {
    /* width: 72px; */
    /* height: 72px; */
    /* border: 1px solid #eee; */
    /* border-radius: 18px; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #fafafa; */
    flex-shrink: 0;
}

.brand-header-logo img {
    max-width: 48px;
    max-height: 48px;
}

.brand-text-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-title {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    color: #111;
}

.brand-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-stat-item {
    padding: 8px 12px;
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-stat-label {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 0;
}

.brand-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.btn-back-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.btn-back-brand:hover {
    color: #000;
}

@media (max-width: 640px) {
    .brand-info-wrapper {
        align-items: flex-start;
    }

    .brand-header-logo {
        /* width: 56px; */
        /* height: 56px; */
        /* border-radius: 14px; */
    }

    .brand-header-logo img {
        max-width: 36px;
        max-height: 36px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-stats {
        gap: 8px;
    }

    .brand-stat-item {
        padding: 7px 10px;
    }
}

.brand-description {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
}

.brand-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.table-header-info {
    margin-bottom: 24px;
    margin-top: 24px;
}

.table-header-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.table-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Brand Content with Sidebar Layout */
/* Column layout (.page-layout / .page-sidebar-left / .page-main /
   .page-sidebar-right) is defined in the shared /css/page-layout.css */

.page-sidebar-left::-webkit-scrollbar {
    width: 4px;
}

.page-sidebar-left::-webkit-scrollbar-track {
    background: transparent;
}

.page-sidebar-left::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.page-sidebar-left:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

.page-sidebar-left::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.25);
}

.page-main {
    /* min-width: 0; */
    /* background: #fff; */
    /* padding: 30px; */
    /* border-radius: 12px; */
    /* margin-bottom: 20px; */
}

/* .page-sidebar-right column styles are defined in /css/page-layout.css */

.page-sidebar-right::-webkit-scrollbar {
    width: 4px;
}

.page-sidebar-right::-webkit-scrollbar-track {
    background: transparent;
}

.page-sidebar-right::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.page-sidebar-right:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

.page-sidebar-right::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.25);
}

/* Sidebar Card */
.sidebar-card {
    background: transparent;
    /* padding: 16px; */
    /* border-radius: 12px; */
    margin-bottom: 0px;
    border: none;
    box-shadow: none;
    padding: 0px 0;
    padding-right: 5px;
}

.sidebar-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 0px;
}

.card-title-with-link .card-title {
    margin: 0;
}

.sidebar-view-all-inline {
    font-size: 13px;
    color: #0c73fe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-view-all-inline:hover {
    color: #0a5acc;
}

.sidebar-card .card-title i {
    color: #0c73fe;
    font-size: 18px;
}

.popular-articles-card .card-title i {
    color: #ff6b35;
}

.engines-card .card-title i {
    color: #0c73fe;
}

/* Sidebar Engines */
.sidebar-engines-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-engine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.sidebar-engine-item:hover {
    background: #e9ecef;
}

.sidebar-engine-code {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.sidebar-engine-specs {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.sidebar-engine-specs span {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.sidebar-view-all {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    color: #0c73fe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-view-all:hover {
    color: #0a5acc;
}

/* Popular Articles */
.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-article-item {
    display: block;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.related-article-item:hover {
    background: #e9ecef;
}

.related-article-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #666;
}

.related-subreddit {
    font-weight: 600;
    color: #0c73fe;
}

.related-time {
    color: #999;
}

.related-article-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.related-article-item:hover .related-article-title {
    color: #0c73fe;
}

.related-article-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #666;
}

.related-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-stat i {
    font-size: 12px;
}

@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .page-sidebar-left,
    .page-sidebar-right {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        max-height: none;
        overflow-y: visible;
    }
    
    .page-sidebar-left {
        order: -1;
    }
}

@media (max-width: 640px) {
    .page-sidebar-left,
    .page-sidebar-right {
        grid-template-columns: 1fr;
    }
    
    .series-models-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .grid-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 12px;
        background: white;
    }
    
    .grid-cell {
        border: none;
        padding: 0;
    }
    
    .grid-cell::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        color: #666;
        display: block;
        margin-bottom: 4px;
    }
    
    .image-col::before {
        display: none;
    }
    
    .image-col {
        justify-content: center;
    }
}

/* Left Sidebar Styles */
.nav-card .card-title i {
    color: #0c73fe;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    /* background: #f8f9fa; */
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
    font-size: 13px;
}

.sidebar-nav-item:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.sidebar-nav-item.active {
    background: #0c73fe;
    color: white;
}

.sidebar-nav-item i {
    font-size: 16px;
}

/* Sidebar Stats */
.stats-card .card-title i {
    color: #28a745;
}

.sidebar-stats-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 42px;
    justify-content: space-between;
}

.sidebar-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 8px 0; */
    /* border-bottom: 1px solid #eee; */
    flex-direction: row;
    gap: 10px;
}

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

.sidebar-stat-item .stat-label {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 0;
}

.sidebar-stat-item .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

/* Brand stats bar — mobile: wrap into compact cards instead of one overflowing row */
@media (max-width: 640px) {
    .brand-header-stats-wrapper {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .brand-header-stats-wrapper .sidebar-card {
        padding: 4px;
        background: transparent;
    }

    .sidebar-stats-list {
        gap: 8px;
        justify-content: flex-start;
    }

    .sidebar-stat-item {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
        padding: 8px 10px;
        background: #fafafa;
        border-radius: 10px;
    }

    .sidebar-stat-item .stat-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .sidebar-stat-item .stat-value {
        font-size: 16px;
    }
}

/* Popular Brands */
.brands-card .card-title i {
    color: #f59e0b;
}

.brand-group-section {
    margin-bottom: 16px;
}

.brand-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 14px;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 13px;
    margin-bottom: 2px;
}

.brand-link:hover {
    background: #f8f9fa;
    color: #0c73fe;
}

.brand-link.active {
    background: #0c73fe;
    color: white;
}

.brand-link.active .brand-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.brand-count {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
}



/* Series-based layout for BMW */
.series-section {
    margin-bottom: 10px;
}

.series-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    /* margin-bottom: 16px; */
    /* padding-bottom: 12px; */
    /* border-bottom: 3px solid #0c73fe; */
    display: inline-block;
}

.series-table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.series-models-grid {
    display: grid;
    grid-template-columns: 140px minmax(200px, 1fr) 100px 130px;
    width: 100%;
    gap: 0;
}

.grid-body {
    display: contents;
}

.grid-row {
    display: contents;
}

.grid-row:hover .grid-cell {
    background: #f8f9fa;
}

.grid-cell {
    padding: 12px 16px;
    display: flex;
    transition: background 0.2s ease;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.model-name-col {
    flex-direction: column;
    align-items: flex-start;
}

.generations-col {
    justify-content: center;
}

.image-col {
    width: 140px;
    padding: 12px !important;
}

.series-model-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.series-model-image img {
    width: 100%;
    /* height: 100%; */
    /* object-fit: cover; */
    transition: transform 0.3s ease;
}

.grid-row:hover .series-model-image img {
    transform: scale(1.05);
}

.series-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2f4f5 0%, #f2f4f5 100%);
    color: #8b8c8c;
    font-size: 24px;
}

/* Table column widths for simple table layout */
.series-models-table .col-photo {
    width: 140px;
    padding: 12px 20px !important;
}

.series-models-table .col-model {
    min-width: 250px;
}

.series-models-table .col-years {
    width: 180px;
}

.series-models-table .col-generations {
    width: 120px;
    text-align: center;
}

.series-models-table .col-class {
    width: 150px;
}

.series-models-table .col-action {
    width: 80px;
    text-align: center;
}

/* Model photo styles */
.model-photo {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-row:hover .model-photo img {
    transform: scale(1.05);
}

.model-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
}

/* Model name cell */
.model-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-name-cell strong {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.model-subtitle {
    font-size: 13px;
    color: #999;
}

/* View button */
.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view:hover {
    background: #667eea;
    color: white;
    transform: translateX(4px);
}

.btn-view i {
    font-size: 18px;
}

.model-name-col {
    min-width: 250px;
}

.model-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.model-name-wrapper:hover {
    color: #0c73fe;
}

.model-name-wrapper:hover strong {
    color: #0c73fe;
}

.model-name-wrapper strong {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.electric-icon {
    width: 16px;
    height: 16px;
    color: #0c73fe;
    vertical-align: middle;
    flex-shrink: 0;
}

.model-name-wrapper .years-text {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.years-text {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.generations-col {
    width: 100px;
    text-align: center;
}

.generations-badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.class-col {
    width: 180px;
}

.class-badge-small {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f7ff;
    color: #0c73fe;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .series-models-table {
        font-size: 14px;
    }
    
    .image-col {
        width: 100px;
    }
    
    .series-model-image {
        width: 90px;
        height: 60px;
    }
    
    .model-name-col {
        min-width: 180px;
    }
    
    .class-col {
        width: auto;
    }
    
    .grid-cell {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .series-title {
        font-size: 16px;
    }
    
    .series-models-grid {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .grid-body,
    .grid-row,
    .grid-cell {
        display: block;
    }
    
    .grid-row {
        margin-bottom: 16px;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .grid-cell {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        padding-left: 45%;
    }
    
    .grid-cell:last-child {
        border-bottom: none;
    }
    
    .grid-cell:before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        color: #666;
    }
    
    .image-col {
        width: 100%;
        padding: 0 !important;
        margin-bottom: 12px;
    }
    
    .image-col:before {
        display: none;
    }
    
    .series-model-image,
    .model-photo {
        width: 100%;
        height: 160px;
        border-radius: 8px 8px 0 0;
    }
    
    .col-photo {
        width: 100%;
        padding: 0 !important;
        margin-bottom: 12px;
    }
    
    .col-photo:before {
        display: none;
    }
    
    .model-name-col,
    .col-model {
        padding-left: 16px !important;
        min-width: auto;
    }
    
    .model-name-col:before,
    .col-model:before {
        display: none;
    }
    
    .col-action {
        text-align: left;
    }
    
    .btn-view {
        width: 32px;
        height: 32px;
    }
}


.models-table {
    width: 100%;
    border-collapse: collapse;
}

.models-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e8e8e8;
}

.models-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.models-table th.col-image {
    width: 180px;
}

.models-table th.col-name {
    min-width: 200px;
}

.models-table th.col-class {
    width: 140px;
}

.models-table th.col-years {
    width: 180px;
}

.models-table th.col-generations {
    width: 120px;
    text-align: center;
}

.models-table th.col-action {
    width: 70px;
    text-align: center;
}

.models-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.models-table tbody tr:hover {
    background: #f8f9fa;
}

.models-table tbody tr:last-child {
    border-bottom: none;
}

.models-table td {
    padding: 16px;
    vertical-align: middle;
}

.table-model-image {
    width: 160px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 32px;
}

.model-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-name-cell strong {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.model-cyrillic-name {
    font-size: 13px;
    color: #666;
}

.class-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f0f7ff;
    color: #0c73fe;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.generations-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.generations-badge i {
    font-size: 14px;
}

.models-table td.col-generations {
    text-align: center;
}

.years-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.years-cell i {
    font-size: 16px;
    color: #999;
}

.btn-table-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0c73fe;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-table-details:hover {
    background: #0960d9;
    transform: translateX(4px);
}

.text-muted {
    color: #999;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.no-results p {
    color: #666;
}

@media (max-width: 768px) {
    .search-form {
        width: 100%;
        display: grid;
        grid-template-columns: 30% 30% 27% 10%;
        gap: 1%;
        justify-content: space-between;
    }
    
    .form-group {
        min-width: 0;
    }
    
    .search-button {
        margin-left: 0;
    }

    .form-label {
        top: 7px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .table-header-info h2 {
        font-size: 22px;
    }

    .table-subtitle {
        font-size: 14px;
    }

    .brand-container {
        padding: 0 20px;
    }
}

/* Engines Section */
.engines-section {
    margin-top: 40px;
}

.engines-section .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.engines-section .section-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.engines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.engine-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engine-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0c73fe;
    transform: translateY(-2px);
}

.engine-card-code {
    font-size: 18px;
    font-weight: 700;
    color: #0c73fe;
}

.engine-card-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.engine-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.engine-spec {
    font-size: 12px;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    color: #374151;
}
.engine-spec.engine-type {
    background: #dbeafe;
    color: #1e40af;
}

.btn-view-all-engines {
    display: inline-block;
    padding: 12px 24px;
    background: #0c73fe;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-view-all-engines:hover {
    background: #0a5cd6;
    color: white;
}

@media (max-width: 768px) {
    .engines-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .engine-card {
        padding: 12px;
    }
    
    .engine-card-code {
        font-size: 16px;
    }
    
    .engines-section .section-title {
        font-size: 22px;
    }
}
