/* Estilos gerais */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #6ab7ff 0%, #4361ee 100%);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.setup-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f8f9fa;
}

.setup-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.setup-card h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Seção de jogadores */
.player-setup {
    margin-bottom: 2rem;
}

.player-setup h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.player-avatar {
    position: relative;
    width: 60px;
    height: 60px;
}

.current-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.change-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.player-avatar:hover .change-avatar {
    opacity: 1;
}

.change-avatar:hover {
    transform: scale(1.1);
    background-color: var(--primary-color-dark);
}

.player-details {
    flex: 1;
}

.player-name {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.character-name {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.player-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-picker {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.remove-player {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.remove-player:hover {
    color: #c82333;
}

/* Seção de dificuldade */
.difficulty-setup {
    margin-bottom: 2rem;
}

.difficulty-setup h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.difficulty-options {
    display: grid;
    gap: 1rem;
}

.difficulty-option {
    position: relative;
    cursor: pointer;
}

.difficulty-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.difficulty-content {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.difficulty-option input[type="radio"]:checked + .difficulty-content {
    border-color: #28a745;
    background: #f8fff9;
}

.difficulty-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.difficulty-label {
    font-weight: 600;
    color: #2c3e50;
}

.difficulty-content p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Botões de ação */
.setup-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.setup-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.setup-button.primary {
    background: #28a745;
    color: white;
}

.setup-button.primary:hover {
    background: #218838;
}

.setup-button.secondary {
    background: #6c757d;
    color: white;
}

.setup-button.secondary:hover {
    background: #5a6268;
}

.setup-button:disabled {
    background: #dee2e6;
    cursor: not-allowed;
}

/* Modal de seleção de personagem */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.character-option {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.character-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.character-option img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.character-option h3 {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.character-option p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.character-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.bonus-icon {
    font-size: 1.2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .setup-container {
        padding: 1rem;
    }

    .setup-card {
        padding: 1rem;
    }

    .player-item {
        flex-direction: column;
        gap: 1rem;
    }

    .player-info {
        width: 100%;
    }

    .setup-actions {
        flex-direction: column;
    }

    .setup-button {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }

    .characters-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .character-option {
        padding: 1rem;
    }

    .character-option img {
        width: 80px;
        height: 80px;
    }

    .character-option h3 {
        font-size: 1rem;
    }

    .character-option p {
        font-size: 0.8rem;
    }
} 