/*
|--------------------------------------------------------------------------
| Meezzo — Splash Screen Styles
|--------------------------------------------------------------------------
| Beautiful branded splash animation
| Shows on every app open for 1.5 seconds
|--------------------------------------------------------------------------
*/

/* =========================================================
   SPLASH OVERLAY
========================================================= */

#meezzoSplash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

#meezzoSplash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =========================================================
   BACKGROUND — PINK GRADIENT WITH ANIMATED BLOBS
========================================================= */

.splash-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, #c2185b 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, #9f2089 0%, transparent 55%),
        linear-gradient(135deg, #7a1568 0%, #9f2089 45%, #c2185b 100%);
    background-size: 200% 200%;
    animation: splashBgShift 6s ease-in-out infinite;
}

@keyframes splashBgShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Floating decorative circles */
.splash-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: splashFloat 7s ease-in-out infinite;
}

.splash-blob.b1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.splash-blob.b2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -60px;
    animation-delay: 1.5s;
    background: rgba(255, 212, 0, 0.1);
}

.splash-blob.b3 {
    width: 140px;
    height: 140px;
    top: 30%;
    left: -60px;
    animation-delay: 3s;
}

.splash-blob.b4 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    right: -40px;
    animation-delay: 2s;
    background: rgba(255, 212, 0, 0.08);
}

@keyframes splashFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -20px) scale(1.08); }
    66%      { transform: translate(-15px, 15px) scale(0.95); }
}

/* =========================================================
   CONTENT WRAPPER
========================================================= */

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px;
    text-align: center;
    max-width: 90%;
}

/* =========================================================
   LOGO
========================================================= */

.splash-logo-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashLogoEntry 0.8s cubic-bezier(.25,.8,.3,1);
}

.splash-logo-wrap::before,
.splash-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    animation: splashRingPulse 2.2s ease-out infinite;
}

.splash-logo-wrap::after {
    animation-delay: 1.1s;
}

@keyframes splashRingPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.splash-logo {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    animation: splashLogoBounce 1.8s ease-in-out infinite;
}

@keyframes splashLogoBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes splashLogoEntry {
    0% {
        transform: scale(0.3) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 22px;
}

.splash-logo .splash-emoji {
    font-size: 42px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(159, 32, 137, 0.3));
}

/* =========================================================
   BRAND NAME
========================================================= */

.splash-brand {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #ffffff;
    line-height: 1;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(255, 255, 255, 0.15);
    animation: splashBrandEntry 0.7s ease both;
    animation-delay: 0.2s;
}

@keyframes splashBrandEntry {
    0% {
        transform: translateY(20px);
        opacity: 0;
        letter-spacing: 20px;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        letter-spacing: -2px;
    }
}

.splash-tagline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -14px;
    animation: splashBrandEntry 0.7s ease both;
    animation-delay: 0.4s;
}

/* =========================================================
   LOADING BAR
========================================================= */

.splash-loader {
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
    animation: splashLoaderEntry 0.6s ease both;
    animation-delay: 0.6s;
}

@keyframes splashLoaderEntry {
    from { opacity: 0; transform: scaleX(0.5); }
    to   { opacity: 1; transform: scaleX(1); }
}

.splash-loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #ffd400, #ffffff, #ffd400);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: splashLoaderMove 1.3s ease-in-out infinite;
}

@keyframes splashLoaderMove {
    0% {
        left: -40%;
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        left: 100%;
        background-position: 0% 50%;
    }
}

/* =========================================================
   STATUS TEXT
========================================================= */

.splash-status {
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    animation: splashStatusPulse 1.6s ease-in-out infinite;
    min-height: 18px;
}

@keyframes splashStatusPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

/* =========================================================
   BOTTOM TRUST STRIP
========================================================= */

.splash-trust {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
    animation: splashBrandEntry 0.7s ease both;
    animation-delay: 0.8s;
}

.splash-trust-text {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.splash-trust-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.splash-trust-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    animation: splashDotBlink 1.4s ease-in-out infinite;
}

.splash-trust-dots span:nth-child(1) { animation-delay: 0s; }
.splash-trust-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-trust-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes splashDotBlink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        background: #ffd400;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 400px) {

    .splash-brand {
        font-size: 36px;
    }

    .splash-logo-wrap {
        width: 95px;
        height: 95px;
    }

    .splash-logo {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .splash-logo .splash-emoji {
        font-size: 36px;
    }

    .splash-tagline {
        font-size: 11px;
        letter-spacing: 2.4px;
    }

    .splash-loader {
        width: 130px;
    }
}

/* =========================================================
   REDUCED MOTION — Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .splash-bg,
    .splash-blob,
    .splash-logo,
    .splash-logo-wrap::before,
    .splash-logo-wrap::after,
    .splash-loader-bar,
    .splash-trust-dots span,
    .splash-status {
        animation: none !important;
    }
}