/* FuteMAX - CSS Otimizado para Performance */

/* Seção Principal de Jogos */
.games-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    position: relative;
    min-height: 100vh;
}

/* Header da Seção */
.games-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.games-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: 2px;
}

.games-title i {
    font-size: 4rem;
    color: #00ff41;
}

.games-subtitle {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 35px;
    font-weight: 600;
}

.games-status {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.status-indicator {
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.status-indicator.loading {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.status-indicator.loading i {
    animation: spin 1s linear infinite;
}

.status-indicator.success {
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid rgba(0, 255, 65, 0.5);
    color: var(--primary-green);
}

.status-indicator.error {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

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

/* Container dos Jogos */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
    padding: 40px 0;
    position: relative;
}

/* Wrapper do Jogo com Tag */
.game-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tags Promocionais */
.promotional-tag {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
    z-index: 4;
}

.tag-text {
    background: linear-gradient(135deg, #ff0040, #ffffff, #00ff41);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 15px 30px;
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.8);
}

.tag-text.h1,
.promotional-tag h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ff0040, #ffffff, #00ff41);
}

.tag-text.h2,
.promotional-tag h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #00ff41, #ffffff, #ff4081);
}

.tag-text.h3,
.promotional-tag h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #39ff14, #ffffff, #ff0040);
}



.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card do Jogo */
.game-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: #00ff41;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 65, 0.3);
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
}

/* Header do Card */
.game-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}



.game-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 15px;
    border: 1px solid #444;
}

.game-time i {
    color: #00ff41;
}

/* Times */
.game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 120px;
}

.team-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #444;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-badge img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-badge:hover {
    transform: scale(1.1);
    border-color: #00ff41;
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.3);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
}

.team:hover .team-name {
    color: #00ff41;
}

/* VS Section */
.game-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.vs-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.game-title {
    font-size: 0.85rem;
    color: #ccc;
    text-align: center;
    font-weight: 500;
    max-width: 100px;
    line-height: 1.3;
}

/* Ações do Jogo */
.game-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.watch-btn {
    background: linear-gradient(135deg, #00ff41, #39ff14);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
    min-width: 140px;
    justify-content: center;
}

.watch-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #39ff14, #00ff41);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.5);
}

.watch-btn i {
    font-size: 1.1rem;
}

.no-stream {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #444;
    min-width: 140px;
}

.no-stream i {
    font-size: 1rem;
}

/* Estados Especiais */
.games-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 65, 0.2);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

.games-loading p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.no-games, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.no-games-icon, .error-icon {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 30px;
    animation: iconFloat 3s ease-in-out infinite;
}

.error-icon {
    color: #dc3545;
}

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

.no-games h3, .error-state h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.no-games p, .error-state p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.retry-btn {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.4);
}

/* Modal de Stream */
.stream-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.stream-modal.active {
    opacity: 1;
    visibility: visible;
}

.stream-modal-content {
    background: var(--dark-bg);
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    max-height: 700px;
    overflow: hidden;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 255, 65, 0.3);
}

.stream-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--gradient-primary);
    color: #000;
}

.stream-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-stream-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-stream-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.stream-modal-body {
    height: calc(100% - 80px);
    padding: 0;
}

.stream-container {
    width: 100%;
    height: 100%;
}

.stream-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .game-card {
        padding: 25px 20px;
    }
    
    .game-teams {
        flex-direction: column;
        gap: 30px;
    }
    
    .game-vs {
        order: 2;
    }
    
    .team {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .team-badge {
        width: 60px;
        height: 60px;
        padding: 10px;
    }
    
    .stream-modal-content {
        width: 95%;
        height: 85%;
    }
    
    .stream-modal-header {
        padding: 15px 20px;
    }
    
    .stream-modal-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .games-section {
        padding: 60px 0;
    }
    
    .games-header {
        margin-bottom: 50px;
    }
    
    .games-title {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-card {
        padding: 20px 15px;
    }
    
    .team-badge {
        width: 50px;
        height: 50px;
        padding: 8px;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .watch-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}