/* ══════════════════════════════════════════════════════════════════
   GymGo betöltő-képernyő — QClay-stílusú hexagon loader, GymGo-zöldre húzva.
   A #app-ba renderel; a Blazor boot lecseréli, a JS a scene leválásakor leáll.
   ══════════════════════════════════════════════════════════════════ */
#app { margin: 0; padding: 0; }

.gg-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(ellipse at center, #f5f6f8 0%, #e5e7ec 100%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    z-index: 99999;
}

.gg-loader-scene {
    position: relative;
    width: 1184px;
    height: 799.5px;
    -webkit-mask-image: radial-gradient(ellipse 45% 55% at center, #000 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.35) 60%, transparent 90%);
    mask-image: radial-gradient(ellipse 45% 55% at center, #000 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.35) 60%, transparent 90%);
}

.gg-hex {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 141px;
    height: 155px;
}
.gg-hex-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 141px;
    height: auto;
    transform-origin: center center;
    will-change: transform;
}

/* Középső semleges izzás a center-sor mögött (fekete hexagon köré, finom) */
.gg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(20, 22, 25, 0.28);
    filter: blur(40px);
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

/* Ikon-slot */
.gg-hex-iconslot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.gg-hex-iconslot--dark { color: #1b1d22; }
.gg-hex-iconslot--white { color: #ffffff; }

.hex-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 32px;
    height: 32px;
    opacity: 1;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: opacity, transform;
    pointer-events: none;
}
.hex-icon svg { width: 32px; height: 32px; display: block; }
.hex-icon-current { animation: none; }
.hex-icon-in { animation: hexFadeInRight 0.5s ease-out forwards; }
.hex-icon-out { animation: hexFadeOutLeft 0.5s ease-in forwards; }

@keyframes hexFadeInRight {
    0% { opacity: 0; transform: translate(-50%, -50%) translateX(20px); }
    100% { opacity: 1; transform: translate(-50%, -50%) translateX(0); }
}
@keyframes hexFadeOutLeft {
    0% { opacity: 1; transform: translate(-50%, -50%) translateX(0); }
    100% { opacity: 0; transform: translate(-50%, -50%) translateX(-20px); }
}

/* Betöltő-szöveg + progress a képernyő alján */
.gg-loader-foot {
    position: absolute;
    bottom: calc(48px + 7vh);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(360px, 70vw);
    z-index: 100000;
}

.gg-loading-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(40, 42, 48, 0.42);
    background: linear-gradient(115deg,
        rgba(40, 42, 48, 0.42) 0%,
        rgba(40, 42, 48, 0.42) 40%,
        rgba(15, 17, 20, 1) 50%,
        rgba(40, 42, 48, 0.42) 60%,
        rgba(40, 42, 48, 0.42) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loadingShimmer 2.4s ease-in infinite;
}
@keyframes loadingShimmer {
    0% { background-position: 250% 0; }
    100% { background-position: -150% 0; }
}

.gg-progress {
    width: 100%;
    height: 3px;
    background: rgba(20, 22, 28, 0.12);
    overflow: hidden;
}
.gg-progress-fill {
    height: 100%;
    width: 0%;
    background: rgba(15, 17, 20, 0.92);
    transition: width 0.35s ease-out;
}

/* Kisebb kijelzőn a scene arányosan kicsinyítve (a mask miatt a széle úgyis elhalványul) */
@media (max-width: 1200px) { .gg-loader-scene { transform: scale(0.9); } }
@media (max-width: 820px)  { .gg-loader-scene { transform: scale(0.68); } }
@media (max-width: 560px)  { .gg-loader-scene { transform: scale(0.5); } }
@media (max-width: 400px)  { .gg-loader-scene { transform: scale(0.42); } }
