/* FlowEsporte Landing Page Styles */
/* 🎨 Paleta de Cores Oficial:
   - Azul Principal (Escuro): #1045A1
   - Azul Médio (Vibrante): #1E73E8
   - Azul Royal: #0056D2
   - Branco Puro: #FFFFFF
   - Cinza Sutil: #EAEFF2
*/

/* ===== GRADIENT BACKGROUNDS - ULTRA MODERNOS ===== */
.gradient-wine-green, .gradient-blue-main {
    background: linear-gradient(135deg,
        #1045A1 0%,
        #1E73E8 35%,
        #0056D2 65%,
        #1045A1 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.gradient-wine, .gradient-blue {
    background: linear-gradient(135deg,
        #1E73E8 0%,
        #42A5F5 25%,
        #0056D2 50%,
        #1E73E8 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

.gradient-green, .gradient-forest, .gradient-blue-light {
    background: linear-gradient(135deg,
        #0056D2 0%,
        #1E73E8 50%,
        #42A5F5 75%,
        #1E73E8 100%);
    background-size: 200% 200%;
    animation: gradientShift 7s ease infinite;
}

/* Gradiente animado para o hero */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== HERO SECTION - GRADIENTE ÉPICO ===== */
.hero-bg {
    background:
        linear-gradient(135deg,
            rgba(16, 69, 161, 0.97) 0%,
            rgba(30, 115, 232, 0.93) 25%,
            rgba(0, 86, 210, 0.95) 50%,
            rgba(16, 69, 161, 0.93) 75%,
            rgba(30, 115, 232, 0.97) 100%),
        radial-gradient(circle at 20% 20%, rgba(66, 165, 245, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 69, 161, 0.3) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1000" height="1000" fill="%231E73E8"/><rect width="1000" height="1000" fill="url(%23dots)"/></svg>');
    background-size: 200% 200%, cover, cover, 20px 20px;
    background-position: 0% 50%, center, center, center;
    animation: heroGradientMove 15s ease infinite;
}

@keyframes heroGradientMove {
    0%, 100% {
        background-position: 0% 50%, center, center, 0 0;
    }
    50% {
        background-position: 100% 50%, center, center, 10px 10px;
    }
}

.hero-pattern {
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
}

/* ===== GLASS MORPHISM ===== */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== CARD EFFECTS ===== */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== GLOW EFFECTS - ULTRA MODERNOS ===== */
.glow-effect {
    box-shadow:
        0 0 20px rgba(30, 115, 232, 0.3),
        0 0 40px rgba(16, 69, 161, 0.2),
        0 10px 30px rgba(0, 86, 210, 0.15);
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        #1E73E8,
        #42A5F5,
        #0056D2,
        #1045A1);
    background-size: 300% 300%;
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    z-index: -1;
    animation: glowPulse 3s ease infinite;
}

.glow-effect:hover {
    box-shadow:
        0 0 40px rgba(30, 115, 232, 0.5),
        0 0 60px rgba(16, 69, 161, 0.3),
        0 15px 50px rgba(0, 86, 210, 0.25);
    transform: translateY(-2px);
}

.glow-effect:hover::before {
    opacity: 0.7;
}

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

/* ===== MODAL STYLES ===== */
.modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== UTILITY CLASSES ===== */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== CUSTOM SCROLLBAR COM GRADIENTE ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #EAEFF2;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        #1E73E8 0%,
        #0056D2 50%,
        #1045A1 100%);
    border-radius: 10px;
    border: 2px solid #EAEFF2;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        #42A5F5 0%,
        #1E73E8 50%,
        #0056D2 100%);
    border-color: #fff;
}

/* ===== GRADIENTES ESPECIAIS PARA BOTÕES E CARDS ===== */
.gradient-button-primary {
    background: linear-gradient(135deg,
        #1E73E8 0%,
        #0056D2 100%);
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.gradient-button-primary:hover {
    background-position: 100% 0;
    box-shadow:
        0 10px 30px rgba(30, 115, 232, 0.4),
        0 0 50px rgba(16, 69, 161, 0.2);
    transform: translateY(-2px);
}

.gradient-card-hover {
    position: relative;
    overflow: hidden;
}

.gradient-card-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(30, 115, 232, 0.1) 50%,
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Gradiente de texto animado */
.gradient-text-animated {
    background: linear-gradient(90deg,
        #1E73E8 0%,
        #42A5F5 25%,
        #0056D2 50%,
        #1045A1 75%,
        #1E73E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ===== ANIMAÇÃO DE BOLA DE FUTEBOL ⚽ ===== */
.soccer-ball-animation {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: visible;
    pointer-events: none;
}

.soccer-ball {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%,
        #ffffff 0%,
        #e0e0e0 50%,
        #ffffff 100%);
    border-radius: 50%;
    box-shadow:
        inset -5px -5px 15px rgba(0, 0, 0, 0.2),
        5px 5px 20px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(0, 0, 0, 0.8);
    animation: kickBall 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    left: -60px;
    bottom: 20px;
}

/* Padrão da bola de futebol */
.soccer-ball::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 50% 40%, transparent 15%, #000 15%, #000 17%, transparent 17%),
        radial-gradient(circle at 25% 70%, transparent 10%, #000 10%, #000 12%, transparent 12%),
        radial-gradient(circle at 75% 70%, transparent 10%, #000 10%, #000 12%, transparent 12%);
    border-radius: 50%;
    animation: rotateBall 1s linear infinite;
}

/* Sombra da bola */
.soccer-ball::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 15px;
    background: radial-gradient(ellipse,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 70%);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation: shadowScale 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes kickBall {
    0% {
        left: -60px;
        bottom: 20px;
        transform: scale(1) rotate(0deg);
    }
    15% {
        left: 10%;
        bottom: 150px;
        transform: scale(1.2) rotate(180deg);
    }
    30% {
        left: 25%;
        bottom: 200px;
        transform: scale(1.3) rotate(360deg);
    }
    45% {
        left: 45%;
        bottom: 220px;
        transform: scale(1.4) rotate(540deg);
    }
    60% {
        left: 70%;
        bottom: 180px;
        transform: scale(1.3) rotate(720deg);
    }
    75% {
        left: 85%;
        bottom: 100px;
        transform: scale(1.1) rotate(900deg);
    }
    90% {
        left: 95%;
        bottom: 30px;
        transform: scale(0.9) rotate(1080deg);
        opacity: 1;
    }
    100% {
        left: 110%;
        bottom: 20px;
        transform: scale(0.7) rotate(1260deg);
        opacity: 0;
    }
}

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

@keyframes shadowScale {
    0%, 100% {
        width: 60px;
        opacity: 0.4;
    }
    45% {
        width: 80px;
        opacity: 0.2;
    }
}

/* Rede do gol */
.goal-net {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 150px;
    height: 150px;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 14px,
            rgba(255, 255, 255, 0.3) 14px,
            rgba(255, 255, 255, 0.3) 15px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 14px,
            rgba(255, 255, 255, 0.3) 14px,
            rgba(255, 255, 255, 0.3) 15px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-left: none;
    border-bottom: none;
    opacity: 0.6;
    pointer-events: none;
}

/* Efeito de gol! */
.goal-celebration {
    position: absolute;
    right: 10%;
    top: 50%;
    font-size: 60px;
    font-weight: bold;
    color: #FFD700;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.8);
    animation: goalPop 4s ease-in-out infinite;
    opacity: 0;
    transform: scale(0);
}

@keyframes goalPop {
    0%, 85% {
        opacity: 0;
        transform: scale(0) rotate(-15deg);
    }
    90% {
        opacity: 1;
        transform: scale(1.5) rotate(5deg);
    }
    95% {
        transform: scale(1.3) rotate(-3deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
}

/* Partículas de comemoração */
.celebration-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: particleFall 2s ease-out infinite;
}

.particle:nth-child(1) {
    background: #1E73E8;
    left: 85%;
    animation-delay: 3.2s;
}

.particle:nth-child(2) {
    background: #0056D2;
    left: 88%;
    animation-delay: 3.3s;
}

.particle:nth-child(3) {
    background: #42A5F5;
    left: 91%;
    animation-delay: 3.4s;
}

.particle:nth-child(4) {
    background: #FFD700;
    left: 94%;
    animation-delay: 3.5s;
}

@keyframes particleFall {
    0% {
        top: 20%;
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        top: 80%;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    ::-webkit-scrollbar {
        width: 8px;
    }

    .soccer-ball {
        width: 35px;
        height: 35px;
    }

    .goal-net {
        width: 100px;
        height: 100px;
    }

    .goal-celebration {
        font-size: 40px;
    }
}
