/*
 * De ce exista:
 * Acest fisier contine ajustari vizuale specifice ecranului Splash.
 *
 * Responsabilitate:
 * Pastreaza aerisirea si ritmul pentru primul contact cu shell-ul V2.
 *
 * Ce NU face:
 * Nu stilizeaza alte ecrane sau componente comune.
 *
 * Depinde de:
 * tpl-screen-splash si CSS-ul shared.
 */

.v2-screen--splash .v2-screen-card {
    overflow: hidden;
}

.v2-screen--splash {
    align-items: center;
}

.v2-splash-brand-card,
.v2-splash-status-card {
    width: min(100%, 540px);
}

.v2-splash-brand-card {
    padding: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.76), transparent 36%),
        radial-gradient(circle at bottom left, rgba(254, 240, 138, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.v2-splash-brand-card img {
    width: 52px;
    height: 52px;
}

.v2-splash-brand-card .v2-brand-copy strong {
    font-size: 1.06rem;
}

.v2-splash-brand-card .v2-brand-copy span {
    font-size: 0.92rem;
    line-height: 1.5;
}

.v2-splash-status-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.v2-splash-status-card .v2-screen-head {
    margin-bottom: 0;
    gap: 10px;
    max-width: 440px;
}

.v2-splash-stage {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px 18px 18px;
    border-radius: 26px;
    border: 1px solid rgba(220, 252, 231, 0.78);
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.72), transparent 34%),
        radial-gradient(circle at bottom left, rgba(254, 240, 138, 0.20), transparent 30%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
    overflow: hidden;
    isolation: isolate;
}

.v2-splash-stage-glow {
    position: absolute;
    inset: auto -48px -72px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.v2-splash-loading-shell {
    display: grid;
    justify-items: center;
    position: relative;
    z-index: 1;
}

.v2-splash-loader {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(100%, 280px);
    padding: 24px 18px 18px;
    border-radius: 24px;
    border: 1px solid rgba(209, 213, 219, 0.72);
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.42), transparent 42%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(10px);
}

.v2-splash-loader-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
}

.v2-splash-loader-mark-glow {
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.16), transparent 72%);
    animation: z-splash-breathe 1.9s ease-in-out infinite;
}

.v2-splash-loader-mark-frame {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    border: 1px solid rgba(209, 213, 219, 0.78);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 12px 24px rgba(15, 23, 42, 0.08);
}

.v2-splash-loader-mark-frame img {
    width: 34px;
    height: 34px;
}

.v2-splash-loader-copy {
    justify-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 0;
}

.v2-splash-loader-bar {
    width: min(100%, 188px);
    height: 8px;
    padding: 1px;
    border-radius: 999px;
    background: rgba(220, 252, 231, 0.72);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.v2-splash-loader-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.32), rgba(22, 163, 74, 0.92), rgba(250, 204, 21, 0.55));
    animation: z-splash-progress 1.4s ease-in-out infinite;
}

.v2-splash-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.v2-splash-preview-card {
    display: block;
    min-height: 42px;
    border-radius: 18px;
    border: 1px solid rgba(220, 252, 231, 0.82);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.78), rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 24px rgba(15, 23, 42, 0.06);
    animation: z-splash-sheen 2.6s ease-in-out infinite;
}

.v2-splash-preview-card.is-wide {
    min-height: 54px;
}

.v2-splash-progress-dots {
    display: inline-flex;
    justify-self: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.v2-splash-progress-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.26);
    animation: z-splash-dot 1.2s ease-in-out infinite;
}

.v2-splash-progress-dots span:nth-child(2) {
    animation-delay: 120ms;
}

.v2-splash-progress-dots span:nth-child(3) {
    animation-delay: 240ms;
}

@keyframes z-splash-sheen {
    0%,
    100% {
        opacity: 0.82;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes z-splash-breathe {
    0%,
    100% {
        opacity: 0.54;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes z-splash-progress {
    0% {
        transform: translateX(-115%);
    }

    100% {
        transform: translateX(245%);
    }
}

@keyframes z-splash-dot {
    0%,
    100% {
        opacity: 0.42;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.16);
    }
}

@media (max-width: 430px) {
    .v2-splash-brand-card,
    .v2-splash-status-card {
        width: 100%;
    }

    .v2-splash-stage {
        padding: 20px 16px 16px;
    }

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

    .v2-splash-preview-card.is-wide {
        grid-column: 1 / -1;
    }
}
