/* ======================================================
   FPlayT Tools
   Vehicle cards + garage view
====================================================== */

/* ======================================================
   Garage header
====================================================== */

.garage-view {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.garage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 20px 22px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(24, 34, 44, 0.95),
            rgba(18, 26, 34, 0.97)
        );

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.16);
}

.garage-header-copy {
    min-width: 0;
}

.garage-header-copy span {
    display: block;

    margin-bottom: 6px;

    color: var(--green);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.garage-header-copy h3 {
    overflow: hidden;

    font-size: clamp(22px, 3vw, 31px);
    font-weight: 950;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.garage-header-copy p {
    margin-top: 7px;

    color: var(--text2);

    font-size: 12px;
    line-height: 1.6;
}

.garage-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;

    justify-content: flex-end;
}

.garage-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);
    color: #aab6c3;

    font-size: 10px;
    font-weight: 800;
}

.garage-meta-pill strong {
    color: var(--text);
}

/* ======================================================
   Vehicle grid
====================================================== */

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(280px, 1fr)
    );
    gap: 18px;
}

.vehicle-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(26, 37, 48, 0.97),
            rgba(18, 27, 35, 0.98)
        );

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.16);

    overflow: hidden;

    position: relative;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);

    border-color: rgba(var(--accent-rgb), 0.22);

    box-shadow:
        0 21px 48px rgba(0, 0, 0, 0.24);
}

.vehicle-card.dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.vehicle-card.drag-over {
    border-color: var(--green);

    box-shadow:
        0 0 0 3px rgba(var(--accent-rgb), 0.12),
        0 20px 46px rgba(0, 0, 0, 0.22);
}

.vehicle-card-favorite {
    border-color: rgba(255, 193, 7, 0.22);
}

.vehicle-card-pinned::before {
    content: "";

    position: absolute;
    inset: 0 auto 0 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            var(--green),
            var(--blue)
        );

    z-index: 3;
}

/* ======================================================
   Vehicle image
====================================================== */

.vehicle-image-wrapper {
    height: 155px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(var(--accent-rgb), 0.09),
            transparent 60%
        ),
        #111820;
}

.vehicle-image {
    width: 100%;
    height: 100%;

    display: block;

    padding: 10px;

    object-fit: contain;
    object-position: center;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.025);
    filter: saturate(1.08);
}

.vehicle-image-placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, 0.18);

    font-size: 50px;
    font-weight: 900;
}

.vehicle-image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.5)
        );

    pointer-events: none;
}

.vehicle-class-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    z-index: 2;

    padding: 6px 9px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;

    background: rgba(10, 15, 20, 0.78);
    color: var(--green);

    backdrop-filter: blur(8px);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.vehicle-card-actions {
    position: absolute;
    top: 11px;
    right: 11px;

    z-index: 2;

    display: flex;
    gap: 7px;
}

.vehicle-action-button {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;

    background: rgba(9, 14, 19, 0.76);
    color: #d7e0e9;

    backdrop-filter: blur(9px);

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.vehicle-action-button:hover {
    background: rgba(255, 255, 255, 0.11);
    color: var(--text);

    border-color: rgba(255, 255, 255, 0.16);

    transform: translateY(-1px);
}

.vehicle-action-button.favorite-active {
    background: rgba(255, 193, 7, 0.14);
    color: #ffd54f;

    border-color: rgba(255, 193, 7, 0.24);
}

.vehicle-action-button.pin-active {
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--green);

    border-color: rgba(var(--accent-rgb), 0.25);
}

.vehicle-action-button.delete:hover {
    background: rgba(244, 67, 54, 0.15);
    color: #ff6b61;

    border-color: rgba(244, 67, 54, 0.25);
}

/* ======================================================
   Vehicle body
====================================================== */

.vehicle-card-body {
    min-width: 0;

    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 17px;
}

.vehicle-brand {
    overflow: hidden;

    margin-bottom: 4px;

    color: #7f8fa1;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.2px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.vehicle-name {
    overflow: hidden;

    color: var(--text);

    font-size: 20px;
    font-weight: 950;

    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-info-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;

    margin-top: 15px;
}

.vehicle-info-box {
    min-width: 0;

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);
}

.vehicle-info-box span {
    display: block;

    margin-bottom: 5px;

    color: #718094;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.vehicle-info-box strong {
    display: block;

    overflow: hidden;

    color: #dfe6ed;

    font-size: 12px;
    font-weight: 900;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-content {
    margin-top: 14px;
    padding: 11px;

    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.13);

    color: #98a7b6;

    font-size: 11px;
    line-height: 1.65;

    white-space: pre-wrap;
    word-break: break-word;
}

.vehicle-content-empty {
    color: #637284;
    font-style: italic;
}

.vehicle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 13px;
}

.vehicle-tag {
    max-width: 100%;

    overflow: hidden;

    padding: 5px 8px;

    border: 1px solid rgba(33, 150, 243, 0.16);
    border-radius: 999px;

    background: rgba(33, 150, 243, 0.08);
    color: #76c2fb;

    font-size: 9px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ======================================================
   Card footer
====================================================== */

.vehicle-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: auto;
    padding-top: 16px;
}

.vehicle-date {
    color: #687789;

    font-size: 9px;
    line-height: 1.5;
}

.vehicle-edit-button {
    padding: 8px 11px;

    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 9px;

    background: rgba(var(--accent-rgb), 0.08);
    color: var(--green);

    font-size: 10px;
    font-weight: 900;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.vehicle-edit-button:hover {
    background: rgba(var(--accent-rgb), 0.15);

    border-color: rgba(var(--accent-rgb), 0.32);

    transform: translateY(-1px);
}

/* ======================================================
   Search highlight
====================================================== */

.search-highlight {
    padding: 0 2px;

    border-radius: 3px;

    background: rgba(255, 193, 7, 0.22);
    color: #ffe082;
}

/* ======================================================
   Garage summary
====================================================== */

.garage-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.garage-summary-card {
    padding: 14px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);
}

.garage-summary-card span {
    display: block;

    margin-bottom: 6px;

    color: #718094;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.garage-summary-card strong {
    font-size: 19px;
    font-weight: 950;
}

/* ======================================================
   Responsive
====================================================== */

@media (max-width: 1100px) {
    .vehicle-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(260px, 1fr)
        );
    }
}

@media (max-width: 760px) {
    .garage-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .garage-header-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .garage-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-image-wrapper {
        height: 180px;
    }
}

/* Extensii FPlayT Tools: status, tabel și mod compact. */
.status-badge { position:absolute; left:12px; bottom:11px; z-index:2; padding:5px 8px; border:1px solid rgba(255,255,255,.1); border-radius:999px; background:rgba(8,13,18,.82); color:#b8c5d2; font-size:8px; font-weight:900; text-transform:uppercase; backdrop-filter:blur(8px); }
.status-for-sale { color:#ffd166; }.status-sold { color:#9ba8b7; }.status-loaned { color:#63b3ff; }.status-confiscated,.status-missing { color:#ff746b; }.status-active { color:var(--green); }
.table-shell { overflow:auto; border:1px solid rgba(255,255,255,.06); border-radius:15px; background:#151f29; }
.garage-table { width:100%; border-collapse:collapse; min-width:820px; }
.garage-table th,.garage-table td { padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.055); color:#aebbc8; font-size:11px; text-align:left; }
.garage-table th { position:sticky; top:0; z-index:1; background:#19242f; color:#718196; font-size:9px; letter-spacing:1px; text-transform:uppercase; }
.garage-table tbody tr { cursor:pointer; transition:.18s ease; }.garage-table tbody tr:hover { background:rgba(var(--accent-rgb),.05); }.garage-table td:first-child strong { color:var(--text); }
.garage-table .status-badge { position:static; display:inline-block; }
.density-compact .vehicle-grid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:11px; }.density-compact .vehicle-image-wrapper { height:125px; }.density-compact .vehicle-card-body { padding:13px; }.density-compact .vehicle-content { display:none; }
.vehicle-performance{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.vehicle-performance span,.vehicle-tunings b{padding:5px 8px;border:1px solid #2b3945;border-radius:20px;background:#0e171f;color:#9db0c1;font-size:10px;font-weight:800}.vehicle-performance .armored{border-color:#8bc63f;color:#a9df65;background:#8bc63f12}.vehicle-tunings{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px}.vehicle-tunings b{color:#dce8f1}
