@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Animações personalizadas */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards;
    /* A animação 'fade-in' já existe, então apenas aplicamos a classe
       e controlamos o delay inline no HTML */
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8B5CF6, #EC4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7C3AED, #DB2777);
}

/* Efeitos hover */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Glassmorphism effect */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botões personalizados */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Cards com efeito */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Animação de entrada */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* Ajuste para a seção de conteúdo no mobile */
@media (max-width: 767px) {
    #content .group .absolute {
        /* Força a opacidade para 1, tornando o texto visível */
        opacity: 1 !important; 
    }
}


/* Loading spinner */
.spinner {
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Small spinner for inline loading */
.spinner-small {
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

/* Navbar effects */
.nav-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Testimonial card */
.testimonial-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: rgba(139, 92, 246, 0.2);
    font-family: Georgia, serif;
}

/* Plan cards */
.plan-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.plan-card:hover::before {
    left: 100%;
}

/* Price animation on plan card */
.price-container {
    position: relative;
    height: 48px; /* Altura do preço maior para evitar pulos de layout */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.price-old, .price-new {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform; /* Otimização para a animação */
}

.price-old {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    right: 0;
    opacity: 1;
    transform: translate(0, 0) scale(1);
    /* Cor inicial do preço antigo (gradient) */
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* A transição de cor/fundo será tratada na classe de animação */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s, opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.price-old > span {
    position: relative;
}

/* Efeito de riscado animado */
.price-old > span::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    width: 0;
    background-color: #6B7280; /* Cor do risco (cinza) */
    transition: width 0.5s ease;
}

.price-new {
    opacity: 0;
    transform: scale(0.8);
    transition-delay: 0.5s; /* Atraso para o preço novo aparecer */
}

.price-container.is-animating .price-old {
    /* Transição para a cor cinza quando a animação começa */
    -webkit-text-fill-color: #6B7280;
    background: none; /* Remove o gradiente */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s, opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s, -webkit-text-fill-color 0.5s ease;
    transform: translate(110px, -15px) scale(0.7);
    opacity: 0.7;
}

.price-container.is-animating .price-new {
    opacity: 1;
    transform: scale(1);
}

.price-container.is-animating .price-old > span::after {
    width: 100%; /* Anima a largura do risco */
}


/* Promo Banner */
#promo-banner {
    transition: all 0.5s ease-in-out;
    overflow: hidden;
}

#promo-banner.hide {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* Games Panel Dropdown */
.dropdown-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

#league-search {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #F8FAFC;
    border-radius: 9999px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#league-search:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

#league-list {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: #1E293B;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
}

.league-option {
    padding: 0.75rem 1rem;
    color: #CBD5E1;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.league-option:hover {
    background-color: #8B5CF6;
    color: white;
}

/* Games Panel */
.game-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.game-tab-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background-color: transparent;
    color: #94A3B8;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-tab-btn:hover {
    background-color: rgba(139, 92, 246, 0.1);
    color: #F8FAFC;
}

.game-tab-btn.active {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border-color: transparent;
}

.games-list-container {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 400px;
}

.game-tab-content {
    display: none;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem; /* Espaço para a scrollbar */
}

/* Scrollbar para a lista de jogos */
.game-tab-content::-webkit-scrollbar {
    width: 8px;
}

.game-tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.game-tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8B5CF6, #EC4899);
    border-radius: 4px;
}

.game-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.game-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.team-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.team-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #F8FAFC;
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94A3B8;
}

.game-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F8FAFC;
}

.game-date {
    font-size: 0.875rem;
}

.spinner-games {
    border: 4px solid rgba(139, 92, 246, 0.1);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 10rem auto;
}

/* Exit Intent Popup Styles */
@keyframes sad-face-wobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.05); }
    75% { transform: rotate(8deg) scale(1.05); }
}

.sad-face-animation {
    animation: sad-face-wobble 2.5s ease-in-out infinite;
    display: inline-block;
}

#exit-intent-popup.visible {
    opacity: 1;
    pointer-events: auto;
}

#exit-intent-popup.visible #exit-popup-modal {
    transform: scale(1);
    opacity: 1;
}

/* Estilos para o aviso de JavaScript desativado */
noscript .noscript-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0F172A; /* Cor de fundo principal do site */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Garante que fique acima de tudo */
    text-align: center;
    color: #F8FAFC;
    padding: 1rem;
}

noscript .noscript-content {
    max-width: 500px;
}

noscript .noscript-icon svg {
    width: 60px;
    height: 60px;
    color: #EC4899; /* Cor secundária */
    margin: 0 auto 1.5rem auto;
}

noscript .noscript-title {
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

noscript .noscript-text {
    font-size: 1.125rem; /* 18px */
    color: #94A3B8;
    line-height: 1.6;
}

noscript .noscript-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

noscript .noscript-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}