/*
 * De ce exista:
 * Acest fisier contine stilurile specifice ecranului Client Search Offers.
 *
 * Responsabilitate:
 * Stilizeaza sumarul de filtre, lista de rezultate si cardurile de oferta din
 * discovery-ul clientului.
 *
 * Ce NU face:
 * Nu stilizeaza CRUD-ul worker sau alte zone ale shell-ului.
 *
 * Depinde de:
 * tpl-screen-client-search-offers si componentele UI reutilizabile.
 */

.v2-screen--client-search-offers {
    display: grid;
    gap: 16px;
}

.v2-offers-hero {
    margin-bottom: 0;
}

.v2-offers-step-indicator {
    padding: 0;
}

.v2-offers-filter-head {
    display: grid;
    gap: 12px;
}

.v2-offers-filter-head-copy {
    display: grid;
    gap: 8px;
}

.v2-offers-filter-head-copy h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.15;
}

.v2-filter-card,
.v2-results-card {
    border-radius: var(--z-radius-lg);
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255, 255, 255, 0.98);
    padding: 16px;
    box-shadow: var(--z-shadow-soft);
}

.v2-offers-filter-card {
    display: grid;
    gap: 14px;
    padding: 18px 16px 16px;
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.72), transparent 34%),
        #ffffff;
}

.v2-filter-summary {
    display: grid;
    gap: 10px;
}

.v2-offers-filter-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-filter-item {
    display: grid;
    gap: 5px;
    padding: 12px 13px;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.96);
    background: rgba(249, 250, 251, 0.96);
}

.v2-offers-filter-item {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.v2-offers-filter-item:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.v2-offers-filter-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.v2-filter-item strong {
    font-size: 0.88rem;
    color: #111827;
}

.v2-filter-item span {
    color: #4b5563;
}

.v2-filter-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.v2-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.v2-filter-actions .v2-button {
    grid-column: 1 / -1;
}

.v2-results-grid {
    display: grid;
    gap: 12px;
}

.v2-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.v2-results-head-copy {
    display: grid;
    gap: 4px;
}

.v2-results-head-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.45;
}

.v2-results-head h3,
.v2-offer-card h3 {
    margin: 0;
}

.v2-offer-meta,
.v2-offer-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v2-offer-line {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

@media (max-width: 430px) {
    .v2-offers-filter-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 389px) {
    .v2-filter-actions {
        grid-template-columns: 1fr;
    }

    .v2-filter-actions .v2-button {
        grid-column: auto;
    }
}
