/*Principal */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0b0b0b;
    color: #eee;
    min-height: 100vh;
}

/* Contenedor general */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Header*/
.header {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo {
    font-size: 22px;
    font-weight: 800;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header .user-info {
    font-size: 14px;
    color: #ccc;
}

.main {
    padding: 20px;
}

/* Links y Botones*/
a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

button:hover {
    background: #43a047;
}

input, select, textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #181818;
    color: #eee;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

.form-group {
    margin-bottom: 15px;
}

.form-card {
    background: #141414;
    padding: 25px;
    border-radius: 12px;
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.form-card h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 22px;
}

/*Tablas*/
table {
    width: 100%;
    border-collapse: collapse;
    background: #151515;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

table th {
    background: #1f1f1f;
    padding: 10px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbb;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #222;
    font-size: 14px;
}

table tr:hover {
    background: #202020;
}

table img {
    border-radius: 6px;
}

/*Botones*/
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
}

.badge-verde {
    background: #00e676;
    color: #000;
}

.badge-rojo {
    background: #ff1744;
    color: #fff;
}

.btn-danger {
    background: #e53935;
}

.btn-danger:hover {
    background: #c62828;
}

.btn-warning {
    background: #fbc02d;
    color: #000;
}

.btn-warning:hover {
    background: #f9a825;
}

/*Dashboard*/
.dashboard {
    max-width: 900px;
    margin: 20px auto;
}

.dashboard h2 {
    font-size: 26px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.dashboard ul {
    list-style: none;
    padding: 0;
}

.dashboard li {
    background: #181818;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard li:hover {
    background: #222;
}

/*Tarjeta Jugador*/
.perfil-jugador {
    display: flex;
    justify-content: center;
    padding: 30px 10px;
}

.tarjeta-jugador {
    width: 100%;
    max-width: 900px;
    background: radial-gradient(circle at top left, #1b5e20 0, #0b0b0b 40%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

.cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.foto img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid #4CAF50;
}

.placeholder-foto {
    width: 220px;
    height: 220px;
    background: #333;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 18px;
    border: 4px solid #555;
}

.datos-principales {
    flex: 1;
}

.datos-principales h1 {
    font-size: 34px;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.datos-principales .categoria {
    font-size: 16px;
    color: #a5d6a7;
    margin-top: 5px;
}

.datos-principales .posicion {
    font-size: 18px;
    margin-top: 10px;
}

.datos-principales .equipo {
    font-size: 16px;
    margin-top: 5px;
    color: #ccc;
}

.escudo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px #000);
}

.estado {
    margin-top: 20px;
    text-align: center;
}

.detalle {
    margin-top: 25px;
    background: rgba(0,0,0,0.5);
    padding: 18px;
    border-radius: 12px;
}

.detalle .campo {
    margin-bottom: 10px;
    font-size: 16px;
}

.acciones {
    margin-top: 20px;
    text-align: center;
}

.acciones button {
    font-size: 16px;
    padding: 8px 18px;
}

/*Equipo*/
.perfil-equipo {
    max-width: 900px;
    margin: 30px auto;
    background: #141414;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.perfil-equipo h1 {
    font-size: 32px;
    color: #4CAF50;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.perfil-equipo img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 20px;
}

.perfil-equipo p {
    font-size: 16px;
    margin: 8px 0;
}

/*Login*/
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background: #141414;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.login-card h2 {
    margin-bottom: 15px;
    color: #4CAF50;
    text-align: center;
}

.login-card button {
    width: 100%;
    margin-top: 10px;
}

/*Reponsive*/
@media (max-width: 768px) {
    .cabecera {
        flex-direction: column;
        align-items: flex-start;
    }

    .foto img,
    .placeholder-foto {
        width: 180px;
        height: 180px;
    }

    .escudo img {
        width: 120px;
        height: 120px;
    }

    .tarjeta-jugador {
        padding: 20px;
    }

    .perfil-equipo {
        padding: 20px;
    }

    table th, table td {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .tarjeta-jugador {
        border-radius: 0;
        max-width: 100%;
    }

    .perfil-equipo {
        border-radius: 0;
        max-width: 100%;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
