/* Tournaments Page Styles - Landing Page Version */

/* Hero Section */
.tournaments-hero {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, var(--darker) 100%);
    text-align: center;
    border-bottom: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.tournaments-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    top: -250px;
    left: -250px;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.tournaments-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.hero-cta {
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

.btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.7);
}

.cta-info {
    margin-top: 1.5rem;
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Platform Stats Section */
.platform-stats {
    padding: 4rem 5%;
    background: var(--dark);
    border-bottom: 1px solid var(--gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--gray) 0%, var(--darker) 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.stat-item:hover::before {
    opacity: 0.1;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-label {
    color: var(--light-gray);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
}

/* Games Showcase Section */
.games-showcase {
    padding: 4rem 5%;
    background: var(--darker);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tournament Cards Públicos - CORRIGIDO */
.tournament-card-public {
    background: var(--gray);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 2px solid transparent;
    position: relative;
}

.tournament-card-public:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.5);
}

.tournament-header {
    position: relative;
    pointer-events: none;
}

.game-info {
    padding: 1.5rem;
    position: relative;
}

/* Botão Participar - CRÍTICO */
.btn-participate {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-participate:not(:disabled) {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-participate:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

.btn-participate:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn-participate:disabled {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    cursor: not-allowed;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 5%;
    background: var(--dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--darker);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--gray);
    transition: all 0.4s;
    position: relative;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.step-icon {
    font-size: 4rem;
    margin: 1rem 0 1.5rem;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.step-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 5rem 5%;
    background: var(--darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--gray);
    transition: all 0.4s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, var(--dark) 100%);
    border-top: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-content > p {
    font-size: 1.3rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-benefits {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-item {
    color: var(--light-gray);
    font-size: 1rem;
    font-weight: 600;
}

/* Filtros de Torneio */
.tournament-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--gray);
}

.filter-btn:not(.active):hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

/* Active Nav Link */
.nav-menu a.active {
    color: var(--secondary);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Animação de entrada dos cards */
.tournament-card-public {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.8rem;
    }

    .page-subtitle {
        font-size: 1.2rem;
    }

    .btn-large {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        padding: 2rem 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tournament-card-public {
        margin-bottom: 1rem;
    }
    
    .tournament-header {
        padding: 1rem !important;
    }
    
    .tournament-header h3 {
        font-size: 1.2rem !important;
    }
    
    .game-info {
        padding: 1rem !important;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-content > p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tournaments-hero {
        padding: 4rem 5%;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .step-icon {
        font-size: 3rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .cta-section {
        padding: 4rem 5%;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}
