/* Vehicle Brand Cards Styles (for vehicles.php) */

/* Main section spacing for vehicles page */
.vehicles-page main {
    margin-bottom: 80px;
}

.vehicles-page .container {
    margin-bottom: 40px;
}

/* Vehicle Brands Grid Layout */
.vehicles-page .brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
    margin-bottom: 80px;
    padding: 20px 0;
}

/* Vehicle Brand Cards */
.vehicles-page .brand-card {
    background: transparent;
    border-radius: 0;
    padding: 35px 25px;
    text-align: center;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 250px;
}

.vehicles-page .brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff6b7a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.vehicles-page .brand-card:hover::before {
    transform: scaleX(1);
}

.vehicles-page .brand-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

.vehicles-page .brand-card a {
    text-decoration: none;
    color: inherit;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    outline: none;
}

.vehicles-page .brand-card a:focus,
.vehicles-page .brand-card a:active {
    outline: none;
    color: inherit;
}

.vehicles-page .brand-card:active {
    transform: translateY(-6px);
    box-shadow: none;
}

/* Vehicle Brand Logo Container */
.vehicles-page .brand-logo-container {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.vehicles-page .brand-logo-container:hover {
    transform: translateY(-2px);
}

.vehicles-page .brand-logo-container .brand-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 8px;
    border: none;
    box-shadow: none;
    background: transparent !important;
    transition: opacity 0.3s ease;
}

/* Vehicle Brand Placeholder */
.vehicles-page .brand-placeholder {
    width: 140px;
    height: 90px;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2em;
    font-weight: 700;
    color: #FF0000;
    box-shadow: none;
    transition: all 0.3s ease;
}

.vehicles-page .brand-card:hover .brand-placeholder {
    transform: translateY(-2px);
}

/* Vehicle Brand Text Content */
.vehicles-page .brand-card h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.vehicles-page .brand-card p {
    color: #333333;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Loading States for Vehicle Brands */
.vehicles-page .brand-logo-container.loading {
    background: transparent;
    background-size: 200% 100%;
    animation: none;
}

.vehicles-page .brand-logo-container .brand-logo.loaded {
    opacity: 1;
}

.vehicles-page .brand-logo-container .brand-logo:not(.loaded) {
    opacity: 0;
}

.vehicles-page .brand-logo-container.error {
    background: transparent;
    border: none;
}

.vehicles-page .brand-logo-container.error::after {
    content: '🚗';
    position: absolute;
    font-size: 2em;
    color: #dc3545;
}

@keyframes vehicle-brand-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design for Vehicle Brands */
@media (max-width: 768px) {
    .vehicles-page .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        margin-top: 30px;
        margin-bottom: 60px;
    }
    
    .vehicles-page .brand-card {
        padding: 25px 20px;
        min-height: 220px;
    }
    
    .vehicles-page .brand-logo-container {
        width: 120px;
        height: 75px;
        margin-bottom: 20px;
    }
    
    .vehicles-page .brand-placeholder {
        width: 120px;
        height: 75px;
        font-size: 1.8em;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .vehicles-page .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
        margin-bottom: 50px;
    }
    
    .vehicles-page .brand-card {
        padding: 20px 15px;
        margin: 0 10px;
        min-height: 200px;
    }
    
    .vehicles-page .brand-logo-container {
        width: 100px;
        height: 65px;
        margin-bottom: 15px;
    }
    
    .vehicles-page .brand-placeholder {
        width: 100px;
        height: 65px;
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .vehicles-page .brand-card h3 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    .vehicles-page .brand-card p {
        font-size: 0.9em;
    }
}

/* Print Styles for Vehicle Brands */
@media print {
    .vehicles-page .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .vehicles-page .brand-card {
        border: none;
        box-shadow: none;
        padding: 20px;
        min-height: auto;
    }
    
    .vehicles-page .brand-logo-container {
        border: none;
        box-shadow: none;
        background: transparent;
    }
}