/* Cars Page - Desktop Styling */

/* Hero Section con Effetto Showcase */
.cars-hero {
    position: relative;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(225, 6, 0, 0.2);
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cars-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/img/auto_dispo.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.3);
    transform: scale(1.1);
    z-index: 0;
}

.cars-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(13, 13, 19, 0.8) 100%);
    z-index: 1;
}

.cars-hero > * {
    position: relative;
    z-index: 2;
}

.cars-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(225, 6, 0, 0.5);
}

.cars-hero .subtitle {
    color: #e0e0e0;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a24 0%, #0d0d13 100%);
    border: 1px solid #2a2a35;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow: 0 8px 20px rgba(225, 6, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Section Divider */
.section-divider {
    margin: 3rem 0 1.5rem 0;
}

.section-divider h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-divider h2 i {
    color: #e10600;
}

.section-divider p {
    color: #a0a0a0;
    font-size: 0.95rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 26, 36, 0.5);
    border-radius: 16px;
    border: 1px solid #2a2a35;
}

.filter-btn {
    background: linear-gradient(135deg, #1a1a24 0%, #0d0d13 100%);
    color: #fff;
    border: 1px solid #2a2a35;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #e10600 0%, #b00500 100%);
    border-color: #e10600;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(225, 6, 0, 0.4);
}

/* Car Category Section */
.car-category-section {
    margin-bottom: 3rem;
}

.car-category-section.hidden {
    display: none;
}

.category-header {
    background: linear-gradient(135deg, #1a1a24 0%, #0d0d13 100%);
    border: 1px solid rgba(225, 6, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.category-header h3 i {
    color: #e10600;
}

.car-count {
    font-size: 0.9rem;
    color: #a0a0a0;
    font-weight: 500;
    background: rgba(26, 26, 36, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #2a2a35;
    margin-left: 0.5rem;
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Car Card Link */
.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Car Card */
.car-card {
    background: linear-gradient(135deg, #1a1a24 0%, #0d0d13 100%);
    border: 1px solid #2a2a35;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e10600, #ff1e00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-card-link:hover .car-card {
    transform: translateY(-5px);
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow: 0 12px 30px rgba(225, 6, 0, 0.3);
}

.car-card-link:hover .car-card::before {
    opacity: 1;
}

/* Car Header */
.car-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.car-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.category-logo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.car-title-area {
    flex: 1;
}

.car-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.car-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(225, 6, 0, 0.2);
    color: #e10600;
    border: 1px solid rgba(225, 6, 0, 0.3);
}

/* Car Image */
.car-image-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d13 0%, #1a1a24 100%);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a35;
}

.car-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.car-image-placeholder {
    font-size: 4rem;
    color: #2a2a35;
}

/* Car Specs */
.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.spec-item {
    background: rgba(26, 26, 36, 0.5);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #2a2a35;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: rgba(225, 6, 0, 0.3);
    background: rgba(26, 26, 36, 0.8);
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: #a0a0a0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.spec-value {
    display: block;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.spec-value i {
    color: #e10600;
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-card {
    animation: fadeInUp 0.5s ease-out;
}
