/*
 * De ce exista:
 * Acest fisier contine ajustari pentru home-ul de client din Lot 1.
 *
 * Responsabilitate:
 * Pastreaza ritmul placeholder-elor si al indicatorilor shell-ului client.
 *
 * Ce NU face:
 * Nu implementeaza discovery sau cereri reale.
 *
 * Depinde de:
 * tpl-screen-client-home si partial-ul empty-state.
 */

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

.v2-home-hero {
    margin-bottom: 0;
    padding-bottom: 0;
}

.v2-home-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.v2-home-notification-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, 0.16);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.98));
    color: #111827;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.v2-home-notification-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.v2-home-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--z-green);
}

.v2-home-notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.74rem;
    font-weight: 800;
}

.v2-home-primary-card {
    gap: 12px;
    padding: 20px 18px 18px;
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.88), transparent 40%),
        #ffffff;
}

.v2-home-primary-stack {
    display: grid;
    gap: 12px;
}

.v2-home-primary-card p {
    max-width: 30ch;
}

.v2-home-primary-card h3 {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.1;
}

.v2-home-primary-card .v2-button {
    min-height: 52px;
    font-size: 1rem;
}

.v2-home-category-section {
    gap: 12px;
}

.v2-screen--client-home .v2-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.v2-screen--client-home .v2-category-card {
    min-height: 112px;
    align-content: start;
    gap: 8px;
    padding: 13px 12px;
}

.v2-screen--client-home .v2-category-card .v2-service-icon {
    width: 38px;
    height: 38px;
}

.v2-screen--client-home .v2-category-card strong {
    font-size: 0.93rem;
    line-height: 1.2;
}

.v2-screen--client-home .v2-category-card p {
    font-size: 0.79rem;
}

.v2-home-secondary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px 15px;
}

.v2-home-secondary-card.is-search {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.96));
}

.v2-home-secondary-copy,
.v2-home-secondary-text {
    display: grid;
    gap: 8px;
}

.v2-home-secondary-card h3,
.v2-home-utility-head h2 {
    margin: 0;
}

.v2-home-secondary-card p {
    margin: 0;
    max-width: 32ch;
}

.v2-home-secondary-card .v2-button-row {
    margin-top: 0;
    flex-shrink: 0;
}

.v2-home-secondary-card .v2-button-secondary {
    min-width: 148px;
}

.v2-home-utility-section {
    display: grid;
    gap: 12px;
}

.v2-home-utility-head {
    display: grid;
    gap: 8px;
}

.v2-home-utility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.v2-home-quick-card {
    gap: 10px;
    padding: 16px 15px 15px;
}

.v2-home-quick-card h3 {
    font-size: 1rem;
}

.v2-home-quick-card p {
    font-size: 0.9rem;
    line-height: 1.48;
}

.v2-screen--client-home .v2-action-card .v2-button-row:not(.is-compact) {
    grid-template-columns: 1fr;
}

@media (max-width: 389px) {
    .v2-home-hero-top {
        flex-wrap: wrap;
    }

    .v2-home-notification-button {
        width: fit-content;
    }

    .v2-home-secondary-card {
        display: grid;
        justify-content: stretch;
    }

    .v2-home-secondary-card .v2-button-secondary {
        min-width: 0;
        width: 100%;
    }

    .v2-home-utility-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 420px) {
    .v2-screen--client-home .v2-category-card {
        min-height: 124px;
    }
}
