/* Anubis Store - Loading Animation */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-text {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 1.2rem;
    margin-top: 20px;
    animation: fadeInOut 2s infinite ease-in-out;
}

.pyramid-loader {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    perspective: 200px;
}

.pyramid {
    position: absolute;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: rotate 3s infinite linear;
}

.pyramid-side {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid;
    opacity: 0.9;
}

.pyramid-side:nth-child(1) {
    transform: rotateY(0deg) translateZ(17.3px);
    border-bottom-color: #d4af37;
}

.pyramid-side:nth-child(2) {
    transform: rotateY(120deg) translateZ(17.3px);
    border-bottom-color: #9e8128;
}

.pyramid-side:nth-child(3) {
    transform: rotateY(240deg) translateZ(17.3px);
    border-bottom-color: #f2d675;
}

.pyramid-base {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #d4af37;
    transform: rotateX(90deg) translateZ(-26px);
    opacity: 0.9;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.loader-progress {
    width: 200px;
    height: 3px;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    margin-top: 30px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background-color: #d4af37;
    width: 0%;
    border-radius: 3px;
    animation: progress 3s ease-in-out forwards;
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg) rotateX(20deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(20deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.hieroglyph-trail {
    position: absolute;
    width: 100%;
    bottom: 20px;
    text-align: center;
    font-size: 20px;
    letter-spacing: 10px;
    color: #d4af37;
    opacity: 0.5;
} 