/* Estilos adicionales para el modal de edición de equipos */

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Estilos para el modal */
.edit-modal {
    animation: fadeInUp 0.3s ease-out;
}

.edit-modal .player-card {
    animation: fadeInUp 0.4s ease-out;
}

.edit-modal .player-card:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Estilos para los botones de acción */
.edit-modal button[onclick*="saveTeamChanges"] {
    animation: glow 2s ease-in-out infinite;
}

.edit-modal button[onclick*="saveTeamChanges"]:hover {
    animation: none;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.6) !important;
}

/* Estilos para las tarjetas de jugadores */
.edit-modal .player-card {
    position: relative;
    overflow: hidden;
}

.edit-modal .player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.edit-modal .player-card:hover::before {
    left: 100%;
}

/* Estilos para los badges de rareza */
.rarity-common {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    color: white;
}

.rarity-uncommon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.rarity-rare {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
}

.rarity-epic {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
}

.rarity-legendary {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
}

/* Estilos para los scrollbars personalizados */
.edit-modal ::-webkit-scrollbar {
    width: 10px;
}

.edit-modal ::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.5);
    border-radius: 5px;
}

.edit-modal ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 5px;
    border: 2px solid rgba(51, 51, 51, 0.5);
}

.edit-modal ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

/* Estilos para los inputs */
.edit-modal input:focus {
    outline: none;
    border-color: #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Estilos para los botones de cerrar */
.edit-modal button[onclick*="closeEditModal"]:hover {
    background: #c0392b !important;
    transform: scale(1.1) rotate(90deg) !important;
    transition: all 0.3s ease;
}

/* Estilos para los botones de acción de jugadores */
.edit-modal .player-card button:hover,
.edit-modal .player-card div[onclick*="removePlayerFromTeam"]:hover,
.edit-modal .player-card div[onclick*="addPlayerToTeam"]:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Estilos para el estado de carga */
.edit-modal .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.edit-modal .loading span {
    animation: spin 1s linear infinite;
}

/* Estilos para mensajes de estado */
.edit-modal .status-message {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #999;
}

.edit-modal .status-message.error {
    color: #e74c3c;
}

.edit-modal .status-message.success {
    color: #27ae60;
}

/* Estilos para el header del modal */
.edit-modal .modal-header {
    position: relative;
    overflow: hidden;
}

.edit-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: glow 2s ease-in-out infinite;
}

/* Estilos para los paneles de jugadores */
.edit-modal .player-panel {
    position: relative;
    overflow: hidden;
}

.edit-modal .player-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1), transparent);
    pointer-events: none;
}

/* Estilos para las imágenes de jugadores */
.edit-modal .player-card img {
    transition: all 0.3s ease;
}

.edit-modal .player-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Estilos para los nombres de jugadores */
.edit-modal .player-card span:first-of-type {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.edit-modal .player-card:hover span:first-of-type {
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

/* Estilos para los contadores */
.edit-modal .player-count {
    background: rgba(255, 215, 0, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Estilos para los botones de acción principales */
.edit-modal .action-buttons {
    position: relative;
}

.edit-modal .action-buttons::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #444, transparent);
}

/* Estilos para el responsive */
@media (max-width: 768px) {
    .edit-modal {
        padding: 10px;
    }
    
    .edit-modal .player-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .edit-modal .player-card {
        padding: 10px;
    }
    
    .edit-modal .player-card img {
        width: 60px;
        height: 60px;
    }
}

/* Estilos para el modo oscuro mejorado */
.edit-modal {
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(26,26,26,0.95));
}

/* Estilos para las notificaciones dentro del modal */
.edit-modal .notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1001;
    animation: fadeInUp 0.3s ease-out;
}

.edit-modal .notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.edit-modal .notification.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
} 