/* css/loader.css - Splash screen preloader Ariston TV */

/* Overlay fullscreen latar merah Ariston */
#app-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(160deg, #c8102e 0%, #9e0a22 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99999;
    /* Fade-out saat selesai */
    transition: opacity 0.5s ease-out;
}

/* Saat kelas 'hidden' ditambahkan: fade keluar */
#app-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Logo berdenyut pelan */
#app-loader .loader-logo {
    height: 80px;
    object-fit: contain;
    /* Ubah ke putih */
    filter: brightness(0) invert(1) drop-shadow(0 4px 24px rgba(0,0,0,0.2));
    animation: loader-pulse 2.5s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.75; transform: scale(0.96); }
}

/* Wrapper bar + persentase */
.loader-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: min(420px, 70vw);
}

/* Track progress bar */
.loader-bar-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

/* Fill bar putih */
.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
    transition: width 0.3s ease-out;
}

/* Teks persentase */
.loader-percent {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Proxima Nova', 'Segoe UI', sans-serif;
    letter-spacing: 0.1em;
    margin: 0;
}
