/* =========================================================
   Get Set Glow — branded page loader
   Markup is built in Content/js/loading.js ($.loading.start/end)
   ========================================================= */
.spin {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 13000;
    background: radial-gradient(circle at center, rgba(251,247,238,0.92) 0%, rgba(243,237,226,0.86) 55%, rgba(236,226,206,0.82) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: gsgFadeIn .25s ease-out;
    text-align: center;
}

.gsg-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* ---- logo + rings ---- */
.gsg-loader-mark {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.gsg-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(200,162,77,0.18);
    border-top-color: #c8a24d;
    border-right-color: #e3c987;
    animation: gsgSpin 1.4s cubic-bezier(.55,.15,.45,.85) infinite;
}

.gsg-loader-ring--inner {
    inset: 10px;
    border-width: 1px;
    border-color: rgba(166,124,47,0.12);
    border-bottom-color: #a67c2f;
    animation-duration: 2.2s;
    animation-direction: reverse;
}

/* logo PNG used as a mask so it renders in the theme gold */
.gsg-loader-logo {
    width: 56px;
    height: 60px;
    background: linear-gradient(135deg, #e3c987 0%, #c8a24d 45%, #8a6522 100%);
    -webkit-mask: url('../Images/GSGLogo-mark.png') center / contain no-repeat;
    mask: url('../Images/GSGLogo-mark.png') center / contain no-repeat;
    filter: drop-shadow(0 2px 6px rgba(138,101,34,0.25));
    animation: gsgPulse 1.8s ease-in-out infinite;
}

/* ---- salon name ---- */
.gsg-loader-name {
    font-family: 'Marcellus', 'Playfair Display', Georgia, serif;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #8a6522 0%, #c8a24d 30%, #f3e2b3 50%, #c8a24d 70%, #8a6522 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gsgShimmer 2.4s linear infinite;
}

.gsg-loader-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #a67c2f;
    padding-left: 4px; /* balance trailing letter-spacing */
}

    .gsg-loader-tagline::before,
    .gsg-loader-tagline::after {
        content: '';
        width: 28px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #c8a24d);
    }

    .gsg-loader-tagline::after {
        background: linear-gradient(90deg, #c8a24d, transparent);
    }

/* ---- bouncing dots ---- */
.gsg-loader-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

    .gsg-loader-dots i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #c8a24d;
        animation: gsgDot 1.2s ease-in-out infinite;
    }

        .gsg-loader-dots i:nth-child(2) { animation-delay: .15s; }
        .gsg-loader-dots i:nth-child(3) { animation-delay: .3s; }

.spin .tips {
    font-family: 'Jost', 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    color: #8a6522;
    margin-top: 6px;
}

    .spin .tips:empty {
        display: none;
    }

/* ---- keyframes ---- */
@keyframes gsgSpin {
    to { transform: rotate(360deg); }
}

@keyframes gsgPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.08); opacity: .85; }
}

@keyframes gsgShimmer {
    to { background-position: -200% center; }
}

@keyframes gsgDot {
    0%, 80%, 100% { transform: translateY(0);    opacity: .35; }
    40%           { transform: translateY(-6px); opacity: 1; }
}

@keyframes gsgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 480px) {
    .gsg-loader-mark { width: 96px; height: 96px; }
    .gsg-loader-logo { width: 46px; height: 49px; }
    .gsg-loader-name { font-size: 22px; letter-spacing: 3px; }
    .gsg-loader-tagline { font-size: 9px; letter-spacing: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .spin,
    .gsg-loader-ring,
    .gsg-loader-logo,
    .gsg-loader-name,
    .gsg-loader-dots i {
        animation: none !important;
    }
}
