/* ===== Livrizi Client — Splash Screen ===== */

#splash-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #FAFAF8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#splash-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.splash-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px)
             env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 20px);
}

.splash-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    animation: splash-pulse 2s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.splash-loading {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.splash-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #3730A3; /* Indigo — client primary */
    animation: splash-loading 1.4s ease-in-out infinite both;
}

.splash-dot:nth-child(1) { animation-delay: -0.32s; }
.splash-dot:nth-child(2) { animation-delay: -0.16s; }
.splash-dot:nth-child(3) { animation-delay: 0s; }

@keyframes splash-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes splash-loading {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Prevent scroll while splash is visible */
body.splash-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (max-width: 480px) {
    .splash-icon { width: 100px; height: 100px; border-radius: 20px; }
    .splash-loading { margin-top: 28px; }
}

@media (max-width: 360px) {
    .splash-icon { width: 80px; height: 80px; border-radius: 16px; }
    .splash-loading { margin-top: 24px; }
}

@media (orientation: landscape) and (max-height: 480px) {
    .splash-icon { width: 80px; height: 80px; }
    .splash-loading { margin-top: 20px; }
}
