﻿.loading-indicator {
    text-align: center;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #ff8006;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem auto;
    box-shadow: 0 2px 10px rgba(255, 128, 6, 0.1);
}

.loading-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    animation: fade 2s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fade {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}



.custom-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 140px;
    position: relative;
}

.custom-spinner-logo {
    width: 70px;
    height: 70px;
    position: relative;
}

.custom-spinner-logo-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.15s ease;
}

    .custom-spinner-logo-face.front {
        background-image: url('/assets/img/promopazar-turuncu-icon.png');
        z-index: 2;
    }

    .custom-spinner-logo-face.back {
        background-image: url('/assets/img/promopazar-mor-icon.png');
        z-index: 1;
        transform-origin: 82% 18%;
        animation: orbitSpin 3.5s cubic-bezier(0.35, 0, 0.2, 0.8) infinite;
    }

@keyframes orbitSpin {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    2% {
        opacity: 0;
    }

    6% {
        opacity: 0.5;
    }

    10% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    90% {
        opacity: 0.7;
    }

    94% {
        opacity: 0.4;
    }

    97% {
        opacity: 0.15;
    }

    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}
