@use "../abstracts/variables" as vars;

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: vars.$footer-bg;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;

    &__content {
        position: relative;
        text-align: center;
    }

    &__spinner {
        width: vars.rem(60);
        height: vars.rem(60);
        border: 3px solid rgba(255, 255, 255, 0.1);
        border-top-color: vars.$footer-accent;
        border-radius: 50%;
        margin: 0 auto vars.rem(20);
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    &__text {
        font-family: vars.$font-family-base;
        font-weight: 700;
        font-size: clamp(18px, 2vw + 0.5rem, 24px);
        letter-spacing: vars.rem(2);
        color: #fff;
        text-transform: uppercase;
        display: block;
        opacity: 0.8;
    }
}
