/* Estructura principal */
.jugadores-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.titulo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.titulo-container h1 {
    color: #ffffffdd;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
}

/* Filtro de búsqueda */
.jugadores-filter-form {
    margin: 2rem 0;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 30px;
    border: 2px solid #094c79;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.search-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #094c79;
    cursor: pointer;
}

/* Grid de jugadores */
.jugadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.jugador-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.jugador-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.avatar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.jugador-info h3 {
    color: #094c79;
    margin: 0;
    font-size: 1.2rem;
}

.jugador-info .equipo {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.badges-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-badge.activo {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.suspendido {
    background: #ffebee;
    color: #c62828;
}

.badge.serie {
    background: #e3f2fd;
    color: #094c79;
}

/* Paginación */
.pagination-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-pagination {
    background: #094c79;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination:hover {
    background: #08355a;
    transform: translateY(-2px);
}

.current-page {
    color: #ffffffdd;
    font-weight: 500;
}

/* Modal (Consistente con equipos.css) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

.modal-content {
    background: white;
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem
}

.modal-avatar {
    width: 80px;
    height: 80px;
    background: #094c79;
    border-radius: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Estilos para el avatar femenino */
.modal-avatar.female {
    background: #e83e8c; /* Color rosa para distinguir el avatar femenino */
}

.modal-avatar.female i {
    position: relative;
}

.modal-avatar.female i:after {
    content: '';
    position: absolute;
    bottom: -0.2rem;
    right: -0.2rem;
    width: 0.8rem;
    height: 0.8rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e83e8c;
}

.modal-titles h2 {
    color: #094c79;
    margin: 0;
}

.modal-body {
    color: #555;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.info-label {
    font-weight: 600;
    color: #094c79;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #094c79;
}

/* Animaciones */
@keyframes modalEntrada {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    animation: modalEntrada 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.closing .modal-content {
    animation: modalSalida 0.3s ease;
}

/* Nueva sección de estadísticas */
.info-section {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.section-title {
    color: #094c79;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stats-container {
    display: grid;
    gap: 0.8rem;
}

.stat-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.stat-campeonato {
    font-weight: 600;
    color: #094c79;
}

.stat-values {
    display: flex;
    gap: 1.5rem;
}

.stat-value {
    text-align: center;
}

.stat-value span:first-child {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.3rem;
}

.stat-value span:last-child {
    font-weight: 600;
    font-size: 1.1em;
}

/* Estilos para el logo en el modal */
.equipo-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.equipo-logo-modal {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 10%;
    padding: 2px;
    background: white;
}

.equipo-nombre {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}