﻿/* Sett loading splash — shown while the WebAssembly runtime boots, then hidden
   by the framework (it adds `splash-close` once the Avalonia app is attached).
   Themed to match the app: green "hero" gradient + soft sage accents. */
.avalonia-splash {
    position: absolute;
    height: 100%;
    width: 100%;
    /* Mirrors the in-app HeroGradient (see Sett/Styles.axaml). */
    background: linear-gradient(135deg, #2E8B5E 0%, #15663F 55%, #0A3522 100%);
    font-family: system-ui, 'Segoe UI', sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    pointer-events: none;
}

.sett-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    animation: sett-fade-in 600ms ease-out both;
}

.sett-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 14px 40px rgba(6, 52, 37, 0.45);
    /* Gentle "breathing" so the screen feels alive while loading. */
    animation: sett-pulse 2.4s ease-in-out infinite;
}

.sett-wordmark {
    margin-top: 1.25rem;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.sett-tagline {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 400;
    color: #CFE3D8;
}

/* Three "tracks" trailing across the screen — a nod to the app's icon. */
.sett-tracks {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.sett-tracks span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CFE3D8;
    opacity: 0.35;
    animation: sett-track 1.4s ease-in-out infinite;
}

.sett-tracks span:nth-child(2) { animation-delay: 0.2s; }
.sett-tracks span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sett-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@keyframes sett-track {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(-6px); }
}

@keyframes sett-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Respect users who prefer no motion. */
@media (prefers-reduced-motion: reduce) {
    .sett-splash,
    .sett-logo,
    .sett-tracks span {
        animation: none;
    }
}

.avalonia-splash.splash-close {
    transition: opacity 300ms ease;
    opacity: 0;
    pointer-events: none;
}
