/* ═══════════════════════════════════════════════════════
   Splash Screen — Pulse Ring Spinner (Manager Approved)
   ThinkTac: #272B66 bg, #169CD8 ring
   ISPF:     #333333 bg, #3E9DA3 ring
   ═══════════════════════════════════════════════════════ */

body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #272B66;
    color: #F9FAFB;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ISPF background: Charcoal Grey */
body.theme-ispf fuse-splash-screen {
    background: #333333;
}

/* ─── Logo ─── */
body fuse-splash-screen .splash-logo {
    width: 180px;
    max-width: 180px;
    margin-bottom: 32px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    animation: splashFadeInUp 0.6s ease-out;
}

/* ThinkTac logo (default): show */
body fuse-splash-screen .splash-logo-thinktac {
    display: block;
}
body fuse-splash-screen .splash-logo-ispf {
    display: none;
    width: 200px;
    max-width: 200px;
}

/* ISPF: swap logos */
body.theme-ispf fuse-splash-screen .splash-logo-thinktac {
    display: none;
}
body.theme-ispf fuse-splash-screen .splash-logo-ispf {
    display: block;
}

/* ─── Tagline ─── */
body fuse-splash-screen .splash-tagline {
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 48px;
    animation: splashFadeInUp 0.6s ease-out 0.2s both;
}

/* ─── Pulse Ring Spinner ─── */
body fuse-splash-screen .splash-pulse-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: splashFadeInUp 0.6s ease-out 0.4s both;
}

body fuse-splash-screen .splash-pulse-ring::before,
body fuse-splash-screen .splash-pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(22, 156, 216, 0.6);
    animation: splashPulseRing 1.5s infinite ease-out;
}

body fuse-splash-screen .splash-pulse-ring::after {
    animation-delay: 0.5s;
}

/* ISPF pulse ring color: Aqua Teal */
body.theme-ispf fuse-splash-screen .splash-pulse-ring::before,
body.theme-ispf fuse-splash-screen .splash-pulse-ring::after {
    border-color: rgba(62, 157, 163, 0.6);
}

/* ─── Animations ─── */
@keyframes splashFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes splashPulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ─── Hide/show splash ─── */
body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
