/*
 * De ce exista:
 * Acest fisier contine ajustarile vizuale pentru home-ul de client din V2.
 *
 * Responsabilitate:
 * Pastreaza un card principal dominant, sectiuni secundare compacte si o
 * ierarhie clara pentru urmatorul pas al clientului.
 *
 * Ce NU face:
 * Nu implementeaza fetch-uri si nu controleaza flow-urile de business.
 *
 * Depinde de:
 * tpl-screen-client-home si componentele shared ale shell-ului V2.
 */

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

.v2-home-priority-stage,
.v2-home-support-stage {
    display: grid;
    gap: 14px;
}

.v2-home-hero {
    margin-bottom: 0;
    padding: 16px 16px 14px;
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background:
        radial-gradient(circle at top right, rgba(240, 253, 244, 0.92), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 251, 0.98));
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.v2-home-hero .v2-copy {
    max-width: 37ch;
}

.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: 14px;
    padding: 18px 18px 16px;
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.88), transparent 40%),
        #ffffff;
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.08);
}

.v2-home-primary-card.is-contextual {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.94), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 253, 244, 0.96));
}

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

.v2-home-primary-copy {
    display: grid;
    gap: 7px;
}

.v2-home-primary-card p {
    max-width: 35ch;
    font-size: 0.93rem;
    line-height: 1.5;
}

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

.v2-home-primary-actions {
    gap: 8px;
}

.v2-home-primary-actions .v2-button {
    min-height: 50px;
    font-size: 0.98rem;
}

.v2-home-primary-secondary-actions {
    justify-content: flex-start;
}

.v2-home-primary-secondary-actions .v2-button-secondary,
.v2-home-primary-secondary-actions .v2-button-ghost {
    min-height: 36px;
}

.v2-home-compare-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(249, 250, 251, 0.96));
}

.v2-home-compare-card p {
    margin: 0;
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.55;
}

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

.v2-home-section-shell {
    padding: 16px 15px 15px;
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 251, 0.97));
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
}

.v2-home-section-body {
    display: grid;
    gap: 10px;
}

.v2-home-primary-meta,
.v2-home-focus-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.v2-home-inline-fact {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(240, 253, 244, 0.92);
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
}

.v2-home-focus-card,
.v2-home-empty-card {
    display: grid;
    gap: 10px;
}

.v2-home-empty-card.is-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(249, 250, 251, 0.96));
}

.v2-home-focus-top,
.v2-home-list-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.v2-home-focus-copy,
.v2-home-list-card-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.v2-home-focus-copy h3,
.v2-home-list-card-copy h3 {
    margin: 0;
}

.v2-home-focus-copy p,
.v2-home-list-card-copy p {
    margin: 0;
}

.v2-home-list-grid {
    display: grid;
    gap: 10px;
}

.v2-home-list-card {
    display: grid;
    gap: 10px;
    padding: 16px 15px 14px;
    border-radius: 20px;
}

.v2-home-list-card-summary {
    margin: 0;
    color: #374151;
    font-size: 0.93rem;
    line-height: 1.5;
}

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

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

.v2-screen--client-home .v2-category-card {
    min-height: 100px;
    align-content: start;
    gap: 7px;
    padding: 12px 11px;
}

.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.89rem;
    line-height: 1.2;
}

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

.v2-home-secondary-card {
    display: grid;
    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;
    min-width: 0;
}

.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 {
    width: 100%;
    margin-top: 0;
}

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

.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-focus-top,
    .v2-home-list-card-top {
        display: grid;
    }

    .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: 110px;
    }
}

@media (min-width: 760px) {
    .v2-home-priority-stage {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
        align-items: stretch;
    }

    .v2-home-hero,
    .v2-home-primary-card {
        height: 100%;
    }

    .v2-home-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-home-secondary-card {
        grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.85fr);
        align-items: center;
    }
}
