﻿/**
 * ════════════════════════════════════════════════════════════════
 * YIBEN B2B - Loader CSS (OVERLAY - ALWAYS CENTERED)
 * ════════════════════════════════════════════════════════════════
 */

.yiben-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
    overflow: hidden; /* Scroll engelle */
}

.yiben-loader-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    animation: yiben-spin 1.5s linear infinite;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.yiben-loader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yiben-loader-text {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes yiben-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Body scroll engelleme (loader görünürken) */
body.loader-active {
    overflow: hidden;
}

/* Alternative: Pulsing effect */
@keyframes yiben-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Use this class for pulsing instead of spinning */
.yiben-loader-pulse .yiben-loader-spinner {
    animation: yiben-pulse 1.5s ease-in-out infinite;
}
