/* ============================================
   LOADING SCREEN – FRONTEND CSS
   ============================================ */

/* Overlay toàn màn hình */
#ls-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
    /* Ngăn scroll khi loading */
    overflow: hidden;
}

#ls-loading-screen.ls-fade-out {
    opacity: 0;
    pointer-events: none;
}

#ls-loading-screen.ls-hidden {
    display: none;
}

/* Content wrapper */
.ls-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    text-align: center;
}

/* Logo/Ảnh trung tâm */
.ls-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    animation: ls-logo-appear 0.8s ease-out;
}

@keyframes ls-logo-appear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Spinner */
.ls-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: ls-spin 0.8s linear infinite;
}

@keyframes ls-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ls-logo {
        max-width: 60vw !important;
        max-height: 40vh;
    }

    .ls-spinner {
        width: 30px;
        height: 30px;
    }

    .ls-content {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .ls-logo {
        max-width: 70vw !important;
        max-height: 35vh;
    }

    .ls-spinner {
        width: 26px;
        height: 26px;
        border-width: 2.5px;
    }

    .ls-content {
        gap: 20px;
    }
}
