/* Data-Auto: Supplementary Cards – Matches production MUI design */

:root {
    --da-blue: #1a73e8;
    --da-gray: #5f6368;
    --da-font: "Heebo", "Inter", sans-serif;
}

.da-injected-card {
    background-color: var(--c-surface, #ffffff);
    border-radius: 8px;
    border: 1px solid rgb(241, 243, 244);
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: none;
    /* Removed the heavy shadow to blend in */
    direction: rtl;
    font-family: var(--da-font);
    animation: daCardFade 0.5s ease both;
    will-change: transform, opacity;
}

@keyframes daCardFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mileage card */
.da-mileage-title {
    font-size: 0.9rem;
    color: var(--da-gray);
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.da-mileage-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.da-mileage-number {
    font-size: 3rem;
    font-weight: 900;
    color: #202124;
}

.da-mileage-unit {
    font-size: 1.1rem;
    color: var(--da-gray);
    font-weight: 700;
}

.da-mileage-avg {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: var(--da-blue);
    font-weight: 700;
    text-align: center;
}

/* History card */
.da-history-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #202124;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.da-history-title::before {
    content: "🚗";
    font-size: 1.2rem;
}

.da-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.da-history-table tr {
    background: #f8f9fa;
    border-radius: 12px;
}

.da-history-table td {
    padding: 14px 16px;
    font-family: var(--da-font);
    font-size: 0.95rem;
    color: #202124;
}

.da-history-table tr td:first-child {
    border-radius: 0 12px 12px 0;
}

.da-history-table tr td:last-child {
    border-radius: 12px 0 0 12px;
}

.da-badge {
    background: var(--da-blue);
    color: white;
    padding: 4px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
}

/* Fix 2: Disclaimer banner — calmer neutral style instead of alarming yellow */
[style*="background-color: #fff3cd"],
[style*="background: #fff3cd"],
[style*="background-color: rgb(255, 243, 205)"],
[style*="background-color: rgb(255,243,205)"] {
    background-color: #f1f3f4 !important;
    border-color: #dadce0 !important;
    border-bottom-color: #dadce0 !important;
    color: #5f6368 !important;
}

/* Fix 3: Mobile — prevent vehicle name truncation */
@media (max-width: 600px) {

    /* Let the vehicle title wrap instead of truncating */
    [class*="MuiTypography"][class*="h1"],
    [class*="MuiTypography"][class*="h2"],
    [class*="MuiTypography"][class*="h5"],
    [class*="MuiTypography"][class*="h6"],
    [class*="vehicle-name"],
    [class*="VehicleReport"] h1,
    [class*="VehicleReport"] h2 {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
}

/* ===== Israeli License Plate Styling ===== */
.css-8xsh5d,
span[class*="MuiBox-root"][style*="border"][style*="background"] {
    background-color: #FFD700 !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 6px !important;
    padding: 6px 14px 6px 36px !important;
    font-family: "Arial Black", "Heebo", sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.15rem !important;
    letter-spacing: 2px !important;
    color: #1a1a1a !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

/* Blue IL strip on the left side */
.css-8xsh5d::after,
span[class*="MuiBox-root"][style*="border"][style*="background"]::after {
    content: "🇮🇱\a IL";
    white-space: pre;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    background: #003DA5;
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    font-family: Arial, sans-serif;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    border-radius: 4px 0 0 4px;
    border-right: 1.5px solid #1a1a1a;
}

/* ========================================= */
/*      Article Mobile Optimization          */
/* ========================================= */
@media (max-width: 600px) {

    /* Container & Spacing */
    .article-container {
        padding: 24px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Typography */
    .article-title {
        font-size: 28px !important;
        /* Reduced from 48px */
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }

    .content-area {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }

    .content-area h2 {
        font-size: 22px !important;
        margin-top: 32px !important;
        margin-bottom: 16px !important;
    }

    /* Components */
    .learn-box {
        padding: 20px !important;
        border-right-width: 3px !important;
        margin-bottom: 32px !important;
    }

    .learn-box h3 {
        font-size: 18px !important;
    }

    .cta-box {
        padding: 24px 16px !important;
        margin-top: 40px !important;
    }

    .cta-btn {
        width: 100%;
        box-sizing: border-box;
        display: block;
        padding: 14px 20px !important;
    }

    /* Images */
    .hero-img {
        border-radius: 12px !important;
        margin-bottom: 32px !important;
    }

    /* Meta Info */
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px !important;
        font-size: 13px !important;
        margin-bottom: 24px !important;
    }
}