/* -------------------------------------------------------------------------- */
/* STILE GENERALE */
/* -------------------------------------------------------------------------- */

body {
    background: #0b0c1a;
    color: #fff;
    font-family: 'Arial', sans-serif;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/* HEADER NEON */
/* -------------------------------------------------------------------------- */

header {
    background: #0f0f20;
    padding: 10px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    border: 3px solid #0ff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: neonGlow 2s infinite alternate;
}

@keyframes neonGlow {
    0% {
        border-color: #0ff;
        box-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    }
    100% {
        border-color: #fff;
        box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff;
    }
}

.header-logo {
    height: 80px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px #0ff) brightness(1.2);
}

h1 {
    font-size: 3.5em;
    margin: 0;
    color: #0ff;
    text-shadow: 0 0 5px #fff, 0 0 10px #0ff, 0 0 20px #0ff;
    letter-spacing: 2px;
}

/* -------------------------------------------------------------------------- */
/* TITOLI */
/* -------------------------------------------------------------------------- */

h2 {
    font-size: 2em;
    color: #0ff;
    margin-top: 40px;
    margin-bottom: 25px;
    text-shadow: 0 0 5px #0ff, 0 0 10px rgba(0, 204, 153, 0.5);
}

/* -------------------------------------------------------------------------- */
/* NAVBAR */
/* -------------------------------------------------------------------------- */

.navbar {
    margin: 20px 0 40px;
    padding: 5px 0;
    background: #0f0f20;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background: #ff0055;
    border-radius: 5px;
    margin: 0 8px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #ff0055;
    transition: all 0.3s ease-out;
}

.navbar a:hover {
    background: transparent;
    color: #0ff;
    border-color: #0ff;
    text-shadow: 0 0 5px #0ff;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* CARD GENERALI */
/* -------------------------------------------------------------------------- */

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #1a1a2e;
    width: 220px;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff0055, 0 0 30px #ff0055;
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card p {
    margin: 10px 0 0;
    font-weight: bold;
    font-size: 1.1em;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
    text-transform: uppercase;
}

.card p.subtitle {
    font-size: 0.9em;
    color: #9999ff;
    margin-top: 5px;
}

/* -------------------------------------------------------------------------- */
/* WIP BOX */
/* -------------------------------------------------------------------------- */

.wip-box {
    display: inline-block;
    background: #1a1a2e;
    padding: 30px 45px;
    border-radius: 18px;
    border: 2px solid #333;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    text-align: center;
}

.wip-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    white-space: nowrap;
    font-size: 3.5em;
    font-weight: 900;
    color: #0ff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    margin: 0 0 20px;
}

.wip-emoji {
    font-size: 1em;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px #0ff);
}

.wip-desc {
    font-size: 1.1em;
    font-weight: bold;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

/* -------------------------------------------------------------------------- */
/* CLASSIFICA LEGA – NEON */
/* -------------------------------------------------------------------------- */

.league-section {
    margin-top: 40px;
    padding: 20px;
}

.league-table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #0f0f20;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.league-table th {
    background: #1a1a2e;
    color: #0ff;
    font-size: 1.3em;
    padding: 15px;
    text-shadow: 0 0 10px #0ff;
    border-bottom: 2px solid #0ff;
}

.league-table td {
    padding: 12px 15px;
    font-size: 1.1em;
    color: #fff;
    border-bottom: 1px solid #333;
}

.league-table tr:hover {
    background-color: #ff005533;
    box-shadow: 0 0 15px #ff0055;
    transition: 0.3s;
}

/* Top 3 effetto podio */
.league-table tr:nth-child(1) td {
    color: gold;
    font-weight: bold;
    text-shadow: 0 0 12px gold;
}

.league-table tr:nth-child(2) td {
    color: silver;
    font-weight: bold;
    text-shadow: 0 0 12px silver;
}

.league-table tr:nth-child(3) td {
    color: #cd7f32;
    font-weight: bold;
    text-shadow: 0 0 12px #cd7f32;
}

/* Allineamento centrale per tutte le celle */
.league-table th,
.league-table td {
    text-align: center;
}

/* Prima colonna (#) più stretta */
.league-table td:first-child,
.league-table th:first-child {
    width: 50px;
}

/* Nome giocatore più largo */
.league-table td:nth-child(2),
.league-table th:nth-child(2) {
    width: 250px;
    text-align: left;
    padding-left: 20px;
}

/* -------------------------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------------------------- */

footer {
    background: #0f0f20;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 3px solid #0ff;
    box-shadow: 0 0 10px #0ff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9em;
}

.social-links a {
    color: #ff0055;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.social-links a:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #ff0055;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 90% !important;
    }

    .wip-box {
        width: 90% !important;
        white-space: normal;
    }

    .league-table {
        width: 100%;
    }
}
