/* Page Loader - Animação Moderna de Carregamento */

/* Container do loader - ocupa tela inteira */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #0F0F0F 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo/Ícone animado - Minimalista */
.loader-logo {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Container da animação principal - Reduzido */
.loader-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

/* Círculos animados - Minimalista */
.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.8);
    animation: spin 1.5s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

.loader-circle:nth-child(2) {
    width: 70%;
    height: 70%;
    border-top-color: rgba(255, 255, 255, 0.5);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-circle:nth-child(3) {
    display: none; /* Removido para minimalismo */
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Dots animados no centro - Minimalista */
.loader-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 6px;
}

.loader-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: bounce 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Texto de loading - Minimalista */
.loader-text {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Partículas de fundo - Removidas para minimalismo */
.loader-particles {
    display: none;
}

.particle {
    display: none;
}

/* Barra de progresso - Minimalista */
.loader-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    animation: progress-animation 1.8s ease-in-out infinite;
}

@keyframes progress-animation {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Responsividade - Minimalista */
@media (max-width: 768px) {
    .loader-logo {
        font-size: 2rem;
    }

    .loader-animation {
        width: 70px;
        height: 70px;
    }

    .loader-text {
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }

    .loader-progress {
        width: 70%;
        bottom: 60px;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .loader-animation {
        width: 60px;
        height: 60px;
    }

    .loader-text {
        font-size: 0.75rem;
        margin-top: 1.5rem;
    }

    .loader-dot {
        width: 5px;
        height: 5px;
    }

    .loader-progress {
        width: 60%;
    }
}

/* Animação de saída suave */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.loader-fade-out {
    animation: fadeOut 0.5s ease forwards;
}
