/* ============================== */
/* CONFIGURAÇÃO BASE */
/* ============================== */
.tournament-system {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: #2c3e50;
}

/* ============================== */
/* MENU SUPERIOR */
/* ============================== */
.system-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 14px;

    background: linear-gradient(135deg, #1e2a38, #2c3e50);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.nav-btn {
    padding: 12px 24px;
    background: #34495e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
    font-weight: 500;
    font-size: 15px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.nav-btn.active {
    background: linear-gradient(135deg, #2980b9, #3498db);
    box-shadow: 0 4px 12px rgba(52,152,219,0.5);
    transform: translateY(-2px);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #3498db, #4aa3e0);
    transform: scale(1.05);
}

/* ============================== */
/* SEÇÕES */
/* ============================== */
.section {
    display: none;
    animation: fade 0.45s ease-in-out;
}

.section.active {
    display: block;
}

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

/* ============================== */
/* CARDS DE RESUMO */
/* ============================== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff, #f3f7fb);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    border-left: 6px solid #3498db;
    transition: 0.3s;
    text-align: center;
}

.summary-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.summary-card h3 {
    margin: 0;
    font-size: 2.4em;
    color: #2c3e50;
    font-weight: 900;
}

.summary-card p {
    margin-top: 8px;
    color: #7f8c8d;
    font-size: 15px;
}

/* ============================== */
/* GRID PADRÃO */
/* ============================== */
.tournament-grid,
.teams-grid,
.players-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 20px;
}

/* ============================== */
/* CARDS DE TORNEIO */
/* ============================== */
.tournament-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    transition: 0.25s;
    border: 2px solid transparent;
}

.tournament-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.16);
    border-color: #3498db;
}

.tournament-card.status-active { border-left: 6px solid #2ecc71; }
.tournament-card.status-completed { border-left: 6px solid #95a5a6; }
.tournament-card.status-upcoming { border-left: 6px solid #3498db; }

/* Cabeçalho do card */
.tournament-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
    font-weight: 600;
}

.tournament-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    box-shadow: 0 3px 10px rgba(52,152,219,0.4);
}

/* Barra de progresso */
.progress-bar {
    width: 100%;
    height: 9px;
    margin: 15px 0;
    background: #eaecef;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transition: width .4s ease;
}

/* ============================== */
/* BOTÕES */
/* ============================== */
.btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* ============================== */
/* CARDS FIFA */
/* ============================== */
.fifa-card-player {
    background: linear-gradient(160deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    border-radius: 20px;
    padding: 25px;
    border: 3px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    transition: 0.25s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.fifa-card-player:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}

.player-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.6);
}

.player-position {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: .85em;
    font-weight: bold;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
}

.player-name {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 65px;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin-top: 18px;
    gap: 12px;
}

.stat-label {
    opacity: 0.7;
    font-size: 0.8em;
}

.stat-value {
    font-size: 1.4em;
    font-weight: bold;
}

/* ============================== */
/* RESPONSIVIDADE */
/* ============================== */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .system-nav .nav-btn {
        flex: 1;
    }

    .inline-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .system-nav {
        justify-content: center;
    }
}
