﻿#app {

}

.loading {
    margin-top: 15rem;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.swipe-container {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-x;
}

.swipe-overlay {
    position: absolute;
    padding: 100px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

/*Loading*/
.simple-loader {
    display: block;
    width: 11rem;
    height: 11rem;
    /*margin: 20vh auto 0 auto;*/
}

.loader-circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    /* cor do MudBlazor */
    stroke: var(--mud-palette-primary, #F4EFEA);
    /* apenas um arco visível */
    stroke-dasharray: 90 160;
    transform-origin: 50% 50%;
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Startup loader (index.html only) */
.startup-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 9999;
    background: var(--mud-palette-background, #0E0E11);
}

.startup-liquid {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.startup-liquid::before {
    content: "";
    position: absolute;
    inset: -35%;
    pointer-events: none;
    background:
        radial-gradient(46% 46% at 18% 28%, var(--mud-palette-primary, #4B0983) 0%, var(--mud-palette-primary, #4B0983) 36%, transparent 58%),
        radial-gradient(48% 48% at 62% 22%, var(--mud-palette-primary, #4B0983) 0%, var(--mud-palette-primary, #4B0983) 35%, transparent 57%),
        radial-gradient(44% 44% at 78% 30%, var(--mud-palette-secondary, #2A1DA8) 0%, var(--mud-palette-secondary, #2A1DA8) 34%, transparent 56%),
        radial-gradient(50% 50% at 85% 70%, var(--mud-palette-secondary, #2A1DA8) 0%, var(--mud-palette-secondary, #2A1DA8) 36%, transparent 58%),
        radial-gradient(52% 52% at 30% 75%, var(--mud-palette-surface, #1A1A20) 0%, var(--mud-palette-surface, #1A1A20) 35%, transparent 57%),
        radial-gradient(45% 45% at 55% 85%, var(--mud-palette-surface, #1A1A20) 0%, var(--mud-palette-surface, #1A1A20) 34%, transparent 56%),
        radial-gradient(47% 47% at 22% 55%, var(--mud-palette-primary-text, #FFFFFF) 0%, var(--mud-palette-primary-text, #FFFFFF) 33%, transparent 55%),
        radial-gradient(49% 49% at 70% 50%, var(--mud-palette-primary-text, #FFFFFF) 0%, var(--mud-palette-primary-text, #FFFFFF) 34%, transparent 56%);
    background-size: 135% 135%, 140% 140%, 138% 138%, 145% 145%, 142% 142%, 137% 137%, 140% 140%, 143% 143%;
    background-position: 10% 20%, 60% 10%, 85% 25%, 95% 70%, 25% 85%, 55% 90%, 15% 55%, 70% 50%;
    filter: saturate(190%) contrast(155%) brightness(112%) blur(6px);
    opacity: 0.9;
    animation: startupLiquidMove 8s ease-in-out infinite, startupLiquidDrift 11s ease-in-out infinite;
}

.startup-logo {
    position: relative;
    z-index: 1;
    max-height: 300px;
    max-width: 400px;
}

.img-pulsar {
    animation: pulsar-brilho 1.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes pulsar-brilho {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255,255,255,0.0));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px rgba(255,255,255,0.45));
    }
}

@keyframes startupLiquidMove {
    0% {
        background-position: 10% 20%, 60% 10%, 85% 25%, 95% 70%, 25% 85%, 55% 90%, 15% 55%, 70% 50%;
    }
    25% {
        background-position: 80% 35%, 15% 55%, 20% 80%, 70% 40%, 40% 20%, 85% 60%, 55% 75%, 25% 30%;
    }
    50% {
        background-position: 20% 70%, 90% 30%, 60% 85%, 15% 55%, 75% 25%, 35% 80%, 85% 45%, 30% 65%;
    }
    75% {
        background-position: 85% 60%, 25% 35%, 15% 75%, 80% 25%, 55% 15%, 95% 65%, 40% 85%, 10% 45%;
    }
    100% {
        background-position: 10% 20%, 60% 10%, 85% 25%, 95% 70%, 25% 85%, 55% 90%, 15% 55%, 70% 50%;
    }
}

@keyframes startupLiquidDrift {
    0% {
        background-size: 135% 135%, 140% 140%, 138% 138%, 145% 145%, 142% 142%, 137% 137%, 140% 140%, 143% 143%;
        transform: translate(-2.5%, -1.5%) scale(1.02) rotate(-1.2deg);
    }
    50% {
        background-size: 142% 142%, 145% 145%, 140% 140%, 148% 148%, 145% 145%, 140% 140%, 144% 144%, 147% 147%;
        transform: translate(2.8%, 2.2%) scale(1.04) rotate(1.6deg);
    }
    100% {
        background-size: 135% 135%, 140% 140%, 138% 138%, 145% 145%, 142% 142%, 137% 137%, 140% 140%, 143% 143%;
        transform: translate(-2.5%, -1.5%) scale(1.02) rotate(-1.2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-liquid::before {
        animation: none;
    }
}

/* Skeleton gradient loading background */
.skeleton-gradient {
    background: linear-gradient(
        120deg,
        var(--mud-palette-primary-lighten, var(--mud-palette-primary, #4B0983)) 0%,
        var(--mud-palette-secondary, #2A1DA8) 35%,
        var(--mud-palette-surface, #1A1A20) 70%,
        var(--mud-palette-background, #0E0E11) 100%
    );
    background-size: 300% 300%;
    animation: skeletonGradientShift 14s ease-in-out infinite;
}

/* Optional premium variant using pseudo-element to soften banding */
.skeleton-gradient--before {
    position: relative;
    isolation: isolate;
}

.skeleton-gradient--before::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        120deg,
        var(--mud-palette-primary-lighten, var(--mud-palette-primary, #4B0983)) 0%,
        var(--mud-palette-secondary, #2A1DA8) 35%,
        var(--mud-palette-surface, #1A1A20) 70%,
        var(--mud-palette-background, #0E0E11) 100%
    );
    background-size: 300% 300%;
    animation: skeletonGradientShift 14s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.9;
}

.skeleton-gradient--before > * {
    position: relative;
    z-index: 1;
}

@keyframes skeletonGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-gradient,
    .skeleton-gradient--before::before {
        animation: none;
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
}

/* Skeleton liquid motion background (applied to MudSkeleton) */
.mud-skeleton.skeleton-liquid {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.mud-skeleton.mud-skeleton-circle.skeleton-liquid {
    border-radius: 50%;
}

.mud-skeleton.skeleton-liquid::before {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(46% 46% at 18% 28%, var(--mud-palette-primary) 0%, var(--mud-palette-primary) 36%, transparent 58%),
        radial-gradient(48% 48% at 62% 22%, var(--mud-palette-primary) 0%, var(--mud-palette-primary) 35%, transparent 57%),
        radial-gradient(44% 44% at 78% 30%, var(--mud-palette-secondary) 0%, var(--mud-palette-secondary) 34%, transparent 56%),
        radial-gradient(50% 50% at 85% 70%, var(--mud-palette-secondary) 0%, var(--mud-palette-secondary) 36%, transparent 58%),
        radial-gradient(52% 52% at 30% 75%, var(--mud-palette-surface) 0%, var(--mud-palette-surface) 35%, transparent 57%),
        radial-gradient(45% 45% at 55% 85%, var(--mud-palette-surface) 0%, var(--mud-palette-surface) 34%, transparent 56%),
        radial-gradient(47% 47% at 22% 55%, var(--mud-palette-primary-text) 0%, var(--mud-palette-primary-text) 33%, transparent 55%),
        radial-gradient(49% 49% at 70% 50%, var(--mud-palette-primary-text) 0%, var(--mud-palette-primary-text) 34%, transparent 56%);
    background-size: 135% 135%, 140% 140%, 138% 138%, 145% 145%, 142% 142%, 137% 137%, 140% 140%, 143% 143%;
    background-position: 10% 20%, 60% 10%, 85% 25%, 95% 70%, 25% 85%, 55% 90%, 15% 55%, 70% 50%;
    filter: saturate(190%) contrast(155%) brightness(112%) blur(6px);
    opacity: 0.9;
    animation:
        liquidMove 8s ease-in-out infinite,
        liquidDrift 11s ease-in-out infinite;
}

@keyframes liquidMove {
    0% {
        background-position: 10% 20%, 60% 10%, 85% 25%, 95% 70%, 25% 85%, 55% 90%, 15% 55%, 70% 50%;
    }
    25% {
        background-position: 80% 35%, 15% 55%, 20% 80%, 70% 40%, 40% 20%, 85% 60%, 55% 75%, 25% 30%;
    }
    50% {
        background-position: 20% 70%, 90% 30%, 60% 85%, 15% 55%, 75% 25%, 35% 80%, 85% 45%, 30% 65%;
    }
    75% {
        background-position: 85% 60%, 25% 35%, 15% 75%, 80% 25%, 55% 15%, 95% 65%, 40% 85%, 10% 45%;
    }
    100% {
        background-position: 10% 20%, 60% 10%, 85% 25%, 95% 70%, 25% 85%, 55% 90%, 15% 55%, 70% 50%;
    }
}

@keyframes liquidDrift {
    0% {
        background-size: 135% 135%, 140% 140%, 138% 138%, 145% 145%, 142% 142%, 137% 137%, 140% 140%, 143% 143%;
        transform: translate(-2.5%, -1.5%) scale(1.02) rotate(-1.2deg);
    }
    50% {
        background-size: 142% 142%, 145% 145%, 140% 140%, 148% 148%, 145% 145%, 140% 140%, 144% 144%, 147% 147%;
        transform: translate(2.8%, 2.2%) scale(1.04) rotate(1.6deg);
    }
    100% {
        background-size: 135% 135%, 140% 140%, 138% 138%, 145% 145%, 142% 142%, 137% 137%, 140% 140%, 143% 143%;
        transform: translate(-2.5%, -1.5%) scale(1.02) rotate(-1.2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mud-skeleton.skeleton-liquid::before {
        animation: none;
    }
}

@media (max-width: 600px) {
    .mud-skeleton.skeleton-liquid::before {
        filter: saturate(190%) contrast(155%) brightness(112%) blur(5px);
    }
}
