/* Skill Trees Loading Animation CSS with Autoprefixer Support */

/* Import the logo animation */
@import url('../images/animations/logo-animation.css');

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

/* Loader Container */
.loader-container {
    text-align: center;
    -webkit-animation: fade-in 0.5s ease-out;
    animation: fade-in 0.5s ease-out;
}

/* SVG Logo Styling */
.loader-logo {
    width: 300px;
    height: auto;
    max-width: 80vw;
}

/* Loading Text */
.loader-text {
    margin-top: 20px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #ffffff;
    opacity: 0;
    -webkit-animation: fade-in 0.5s ease-out 1.2s forwards;
    animation: fade-in 0.5s ease-out 1.2s forwards;
}

/* Hidden State */
.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Fade In Animation */
@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loader-logo {
        width: 250px;
    }

    .loader-text {
        font-size: 16px;
    }

    .loader-progress {
        width: 150px;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .loader-container {
        -webkit-animation: none;
        animation: none;
    }

    .loader-text,
    .loader-progress {
        -webkit-animation: none;
        animation: none;
        opacity: 1;
    }

    .loader-overlay {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}