/* ===== SPLASH SCREEN =====
 * GetAdvice v5.7 — Gradient text, larger icon, richer glow, gradient loader.
 * File: css/splash.css
 */

.splash {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.splash.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-icon {
    width: 88px; height: 88px;
    border-radius: var(--radius-3xl);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashPulse 2s ease-in-out infinite, splashEntry 0.8s var(--ease-spring) forwards;
    transform: scale(0);
    box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(124, 92, 252, 0.15);
}

.splash-icon svg { width: 44px; height: 44px; fill: white; }

@keyframes splashEntry { to { transform: scale(1); } }

@keyframes splashPulse {
    0%, 100% { box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(124, 92, 252, 0.15); }
    50% { box-shadow: 0 0 80px rgba(124, 92, 252, 0.5), 0 0 160px rgba(224, 64, 251, 0.2); }
}

/* ── v5.1: Gradient text on splash title ── */
.splash-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-top: var(--space-xl);
    opacity: 0;
    transform: translateY(12px);
    animation: splashFadeUp 0.6s 0.3s var(--ease-out) forwards;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.splash-sub {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    opacity: 0;
    transform: translateY(12px);
    animation: splashFadeUp 0.6s 0.5s var(--ease-out) forwards;
}

/* ── v5.1: Gradient loader bar ── */
.splash-loader {
    margin-top: var(--space-2xl);
    width: 48px; height: 3px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    animation: splashFadeUp 0.6s 0.7s var(--ease-out) forwards;
}

.splash-loader::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hot));
    border-radius: 3px;
    animation: splashLoad 1.2s ease-in-out infinite;
}

@keyframes splashFadeUp { to { opacity: 1; transform: translateY(0); } }

@keyframes splashLoad {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
    100% { transform: translateX(-100%); }
}
