/* ============================================================
   ZA Vivid Data - Home dashboard
   Scoped to .za-home so it never leaks into the rest of the app.
   ============================================================ */

.za-home {
    --za-blue: #0b6fd8;
    --za-blue-dark: #0a4f9c;
    --za-ink: #1b2231;
    --za-muted: #5f6b7c;
    --za-line: #e3e9f1;
    --za-card: #ffffff;
    --za-panel: #f4f8fc;
    --za-radius: 14px;
    --za-shadow: 0 10px 28px rgba(15, 40, 80, 0.10), 0 1px 0 rgba(15, 40, 80, 0.04);

    position: relative;
    color: var(--za-ink);
    font-family: var(--rz-text-font-family);
}

.za-home *,
.za-home *::before,
.za-home *::after {
    box-sizing: border-box;
}

.za-home .rzi {
    line-height: 1;
}

/* ------------------------------------------------------------
   Hero banner
   ------------------------------------------------------------ */

.za-home__hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
    min-height: 190px;
    margin: -0.5rem -0.5rem 0 -0.5rem;
    padding: 1.5rem 2rem 4.5rem 2rem;
    border-radius: var(--za-radius) var(--za-radius) 0 0;
    background:
        linear-gradient(90deg, rgba(244, 248, 252, 0.92) 0%, rgba(244, 248, 252, 0.55) 45%, rgba(244, 248, 252, 0.05) 100%),
        url('../images/vividhomepage.jpg') center / cover no-repeat;
}

.za-home__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #7a8698;
    margin-bottom: 0.4rem;
}

.za-home__greeting {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--za-ink);
}

.za-home__greeting-sep {
    color: var(--za-ink);
}

.za-home__name {
    color: var(--za-blue);
    margin-left: 0.35rem;
}

.za-home__sub {
    margin: 0.4rem 0 0 0;
    font-size: 1rem;
    color: var(--za-muted);
}

.za-home__hero-tag {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.7;
    color: #6b7a8f;
    white-space: nowrap;
}

.za-home__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.za-home__site {
    position: relative;
    width: 270px;
}

.za-home__site-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 1.25rem;
    color: var(--za-blue);
    pointer-events: none;
}

.za-home__site .rz-dropdown {
    width: 100%;
    height: 3rem;
    border-radius: 10px;
    border: 1px solid #d4dce6;
    background: var(--za-card);
    box-shadow: 0 4px 14px rgba(15, 40, 80, 0.08);
}

.za-home__site .rz-dropdown .rz-inputtext,
.za-home__site .rz-dropdown .rz-dropdown-label {
    padding-left: 2.6rem;
    line-height: 3rem;
    font-size: 1rem;
    color: var(--za-ink);
}

.za-home .za-home__refresh.rz-button.rz-variant-outlined {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    border: 1px solid #d4dce6;
    background: var(--za-card);
    color: var(--za-blue);
    box-shadow: 0 4px 14px rgba(15, 40, 80, 0.08);
}

.za-home .za-home__refresh.rz-button.rz-variant-outlined:hover {
    background: #eef5fd;
}

.za-home__refresh .rzi {
    font-size: 1.4rem;
}

/* ------------------------------------------------------------
   Grid of cards
   ------------------------------------------------------------ */

.za-home__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 0.6fr);
    gap: 1.25rem;
    margin-top: -3.25rem;
    padding: 0 0.5rem 0.5rem 0.5rem;
}

.za-home__col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Image cards */

.za-home-card {
    position: relative;
    flex: 1 1 0;
    min-height: 150px;
    border-radius: var(--za-radius);
    overflow: hidden;
    background: var(--za-card);
    box-shadow: var(--za-shadow);
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.za-home-card:hover,
.za-home-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 40, 80, 0.16);
    outline: none;
}

.za-home-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    z-index: -2;
}

.za-home-card__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 38%, rgba(255, 255, 255, 0.35) 62%, rgba(255, 255, 255, 0) 100%);
}

.za-home-card__body {
    position: relative;
    padding: 1.1rem 5rem 1.1rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.za-home-card__icon {
    font-size: 2rem;
    color: var(--za-blue);
    margin-bottom: 0.35rem;
    font-variation-settings: 'FILL' 1;
}

.za-home-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--za-ink);
    margin-bottom: 0.25rem;
}

.za-home-card__text {
    font-size: 0.85rem;
    line-height: 1.35;
    color: #3d4756;
    max-width: 15rem;
}

.za-home-card__go {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--za-blue);
    color: #fff;
    box-shadow: 0 6px 14px rgba(11, 111, 216, 0.35);
}

.za-home-card__go .rzi {
    font-size: 1.3rem;
}

/* ------------------------------------------------------------
   Asset status card
   ------------------------------------------------------------ */

.za-home__status {
    display: flex;
    flex-direction: column;
    background: var(--za-card);
    border-radius: var(--za-radius);
    box-shadow: var(--za-shadow);
    padding: 1.25rem 1.5rem 1.25rem 1.5rem;
}

.za-home__status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.za-home__status-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.za-home__status-icon {
    font-size: 2.6rem;
    color: var(--za-blue);
    font-variation-settings: 'FILL' 1;
}

.za-home__status-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--za-ink);
}

.za-home__status-title p {
    margin: 0.15rem 0 0 0;
    font-size: 0.9rem;
    color: var(--za-muted);
}

.za-home__date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.za-home__date-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.za-home__date-text span {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7a8698;
}

.za-home__date-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--za-ink);
}

.za-home__date-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    border: 1px solid var(--za-line);
    display: grid;
    place-items: center;
    color: var(--za-blue);
}

.za-home__date-icon .rzi {
    font-size: 1.3rem;
}

.za-home__status-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: center;
    flex: 1 1 auto;
}

/* Status rows */

.za-home__rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.za-home__row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0.75rem 0.55rem 0.9rem;
    border: 1px solid var(--za-line);
    border-radius: 10px;
    background: #fbfcfe;
}

.za-home__row-icon .rzi {
    font-size: 1.35rem;
    font-variation-settings: 'FILL' 1;
}

.za-home__row-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f3947;
}

.za-home__row-count {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 2.2rem;
    text-align: right;
    color: var(--za-ink);
}

.za-home__row-chevron {
    color: #8b97a8;
}

.za-home__row-chevron .rzi {
    font-size: 1.3rem;
}

/* Donut */

.za-home__donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.za-home__donut {
    position: relative;
    width: min(100%, 250px);
    aspect-ratio: 1;
}

.za-home__donut svg {
    width: 100%;
    height: 100%;
    display: block;
}

.za-home__donut-label {
    font-size: 11px;
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.za-home__donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.za-home__donut-center strong {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--za-ink);
}

.za-home__donut-center span {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--za-muted);
}

.za-home__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-self: flex-start;
    margin-left: 1rem;
    font-size: 0.85rem;
    color: #2f3947;
}

.za-home__legend i {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    margin-right: 0.55rem;
    vertical-align: -1px;
}

/* Footer strip */

.za-home__status-foot {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #eef4fb;
    font-size: 0.8rem;
    color: #3d4756;
}

.za-home__foot-icon {
    font-size: 1.6rem;
    color: var(--za-blue);
    font-variation-settings: 'FILL' 1;
}

.za-home__foot-text {
    flex: 1 1 auto;
}

.za-home__foot-tag {
    padding-left: 1rem;
    border-left: 1px solid #c9d6e6;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.6;
    color: #6b7a8f;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1500px) {
    .za-home__hero-tag {
        display: none;
    }

    .za-home__foot-tag {
        display: none;
    }
}

@media (max-width: 1200px) {
    .za-home__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .za-home__status {
        grid-column: 1 / -1;
        order: -1;
    }

    .za-home__col {
        display: grid;
        grid-template-columns: 1fr;
    }

    .za-home-card {
        min-height: 140px;
    }
}

@media (max-width: 800px) {
    .za-home__hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 1.25rem 4rem 1.25rem;
    }

    .za-home__controls {
        justify-content: flex-start;
    }

    .za-home__site {
        width: 100%;
        max-width: 320px;
    }

    .za-home__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .za-home__status-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .za-home__status-head {
        flex-direction: column;
    }

    .za-home__date {
        align-self: flex-start;
    }

    .za-home__date-text {
        align-items: flex-start;
    }
}
