/* (C) The CollabGadget Co., All Rights Reserved */
/* License: Proprietary */
/* File: cg_splashloader.css */
/* Purpose: Full-screen splash loader */

/* ----------------------------------------
   SPLASH - ALWAYS VISIBLE ON PAGE LOAD
   No class needed - visible by default,
   JS removes it when done.
---------------------------------------- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #4401FF 0%, #9606E6 50%, #E6067A 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999999;
    pointer-events: all;
    opacity: 1;
    /* NO overflow:hidden here - it clips position:absolute children */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: opacity 0.6s ease;
}

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

/* ----------------------------------------
   CENTERED CONTENT WRAPPER
---------------------------------------- */
#splash-screen .splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* ----------------------------------------
   LOGO
---------------------------------------- */
#splash-screen .splash-content img {
    width: 150px;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s eas-in-out;
}

#splash-screen.splash-ready .splash-content img {
    opacity: 1;
    transform: scale(1);
}

/* ----------------------------------------
   TITLE TEXT
---------------------------------------- */
#splash-screen .splash-content .splash-title {
    display: block;
    width: 100%;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    margin: 0 auto 15px auto;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0,0,0,0.4);
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

#splash-screen.splash-ready .splash-content .splash-title {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   CYCLING LOAD TEXT
---------------------------------------- */
#splash-screen .splash-content .splash-loadtext {
    display: block;
    width: 100%;
    max-width: 350px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    margin: 0 auto 25px auto;
    min-height: 22px;
    line-height: 1.5;
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

#splash-screen.splash-ready .splash-content .splash-loadtext {
    opacity: 1;
}

/* ----------------------------------------
   COPYRIGHT AT BOTTOM
   Uses position:absolute inside the fixed
   container - overflow must NOT be hidden
---------------------------------------- */
#splash-screen .splash-copyright {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin: 0;
    padding: 0;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
}

#splash-screen.splash-ready .splash-copyright {
    opacity: 1;
}

/* ----------------------------------------
   MAIN CONTENT - HIDDEN UNTIL SPLASH DONE
---------------------------------------- */
#main-content {
    display: none;
}

/* ----------------------------------------
   RESPONSIVE - TABLET
---------------------------------------- */
@media (max-width: 768px) {
    #splash-screen .splash-content img {
        width: 130px;
        max-width: 130px;
        margin-bottom: 18px;
    }
    #splash-screen .splash-content .splash-title {
        font-size: 24px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }
    #splash-screen .splash-content .splash-loadtext {
        font-size: 13px;
        padding: 8px 16px;
        max-width: 300px;
        margin-bottom: 20px;
    }
    #splash-screen .splash-copyright {
        font-size: 10px;
        bottom: 20px;
    }
}

/* ----------------------------------------
   RESPONSIVE - MOBILE
---------------------------------------- */
@media (max-width: 480px) {
    #splash-screen .splash-content {
        padding: 25px 15px;
    }
    #splash-screen .splash-content img {
        width: 110px;
        max-width: 110px;
        margin-bottom: 15px;
    }
    #splash-screen .splash-content .splash-title {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    #splash-screen .splash-content .splash-loadtext {
        font-size: 12px;
        padding: 8px 14px;
        max-width: 280px;
        margin-bottom: 18px;
    }
    #splash-screen .splash-copyright {
        font-size: 9px;
        bottom: 15px;
    }
}

/* ----------------------------------------
   REDUCED MOTION
---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    #splash-screen,
    #splash-screen .splash-content img,
    #splash-screen .splash-content .splash-title,
    #splash-screen .splash-content .splash-loadtext,
    #splash-screen .splash-copyright {
        transition: none;
        transform: none;
    }
    #splash-screen.splash-ready .splash-content img,
    #splash-screen.splash-ready .splash-content .splash-title,
    #splash-screen.splash-ready .splash-content .splash-loadtext,
    #splash-screen.splash-ready .splash-copyright {
        opacity: 1;
    }
}