/* ──────────────────────────────────────────────────────────
   Usage Scenarios — carduri scenarii de utilizare
   Design: Figma node 5170-4140
────────────────────────────────────────────────────────── */

.usage-scenarios-section {
    margin-bottom: 24px;
}

/* ── Grid ───────────────────────────────────────────────── */
.usage-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.usage-scenarios-grid::-webkit-scrollbar {
    display: none;
}

/* ── Card ───────────────────────────────────────────────── */
.usage-scenario-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 245px;
    border-radius: 16px;
    border: 1px solid #ccc;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.usage-scenario-card:hover {
    border-color: #fff;
    box-shadow: 0px 0px 24px 0px rgba(0, 229, 185, 0.5);
    text-decoration: none;
}

/* ── Secțiunea de imagine (top, 140px) ──────────────────── */
.usc-bg {
    position: relative;
    height: 140px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

/* Gradient: alb jos (face tranziție) + violet tint sus (brand) */
.usc-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0) 45%, rgb(255, 255, 255) 100%),
        linear-gradient(180.664deg, rgba(59, 0, 221, 0.2) 0.99%, rgba(59, 0, 221, 0) 32.81%);
    pointer-events: none;
    bottom: -1px;
}

/* ── Mașina PNG — suprapune granița dintre sus și jos ────── */
.usc-car {
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    height: 114px;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

/* ── Conținut (bottom, alb) ─────────────────────────────── */
.usc-content {
    position: relative;
    padding: 60px 20px 20px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Titlu ───────────────────────────────────────────────── */
.usc-title {
    font-family: Jost, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: normal;
}

/* ── Tags ────────────────────────────────────────────────── */
.usc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.usc-tag {
    font-family: Jost, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    background: #f3f3f3;
    padding: 6px;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .usage-scenarios-grid {
        gap: 12px;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .usage-scenarios-grid {
        gap: 12px;
        grid-template-columns: repeat(2, 1fr);
    }

    .usage-scenario-card {
        flex: 0 0 200px;
    }
    .usc-car { 
        top: 70px;
        height: 80px;
    }
    .usc-content {
        padding: 12px;
        gap: 8px;
    }
    .usc-tag {
        font-size: 10px;
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .usage-scenario-card {
        flex: 0 0 170px;
    }

    .usc-title {
        font-size: 14px;
        line-height: 120%;
    }

    .usc-tags {
        gap: 4px;
    }
}
